Z - the source typeC - the collection typeE - the destination typepublic interface PluralMapping<Z,C,E> extends JoinedMapping<Z,C,E>
EmbeddedMapping and BasicMapping.JoinedMapping.MappingType| Modifier and Type | Method and Description |
|---|---|
void |
attach(ConnectionImpl connection,
ManagedInstance<?> instance,
Object key,
Object child,
int index)
Attaches the child.
|
boolean |
cascadesMerge()
Returns if merges are cascaded.
|
void |
detach(ConnectionImpl connection,
ManagedInstance<?> instance,
Object key,
Object child)
detaches the child.
|
void |
detachAll(ConnectionImpl connection,
ManagedInstance<?> instance)
Details all the children.
|
void |
enhance(ManagedInstance<?> instance)
Enhances the collection to the managed collection
|
Object |
get(Object instance)
Returns the values of the mapping.
|
TypeImpl<?> |
getMapKeyClass()
Returns the class of the map key.
|
Mapping<?,?,?> |
getMapping(String path)
Returns child mapping of the
type. |
String |
getOrderBy()
Returns the order by of the association.
|
OrderColumn |
getOrderColumn()
Returns the order column.
|
String |
getPath()
Returns the path of the mapping.
|
RootMapping<?> |
getRoot()
Returns the root mapping.
|
void |
load(ManagedInstance<?> instance)
Loads the collection eagerly.
|
Collection<? extends E> |
loadCollection(ManagedInstance<?> instance)
Loads and returns the collection.
|
<K> Map<? extends K,? extends E> |
loadMap(ManagedInstance<?> instance)
Loads and returns the map
|
void |
setCollection(ManagedInstance<?> instance,
Collection<? extends E> children)
Sets the collection manually for the mapping.
|
void |
setLazy(ManagedInstance<?> instance)
Sets the lazy instance for the collection
|
void |
sortList(Object instance)
Sorts the managed list of the instance
|
extractKey, flush, getAttribute, getMappingType, getTable, getType, initialize, isAssociation, isEager, isJoined, isMap, joinvoid attach(ConnectionImpl connection, ManagedInstance<?> instance, Object key, Object child, int index) throws SQLException
connection - the connectioninstance - the instancekey - the key, may be nullchild - the childindex - the indexSQLException - thrown in case of an SQL errorboolean cascadesMerge()
void detach(ConnectionImpl connection, ManagedInstance<?> instance, Object key, Object child) throws SQLException
connection - the connectioninstance - the instancekey - the key, may be nullchild - the childSQLException - thrown in case of an SQL errorvoid detachAll(ConnectionImpl connection, ManagedInstance<?> instance) throws SQLException
connection - the connectioninstance - the instanceSQLException - thrown in case of an SQL errorvoid enhance(ManagedInstance<?> instance)
instance - the managed instanceObject get(Object instance)
instance - TypeImpl<?> getMapKeyClass()
Mapping<?,?,?> getMapping(String path)
type.path - the pathString getOrderBy()
OrderColumn getOrderColumn()
String getPath()
RootMapping<?> getRoot()
void load(ManagedInstance<?> instance)
instance - the managed instanceCollection<? extends E> loadCollection(ManagedInstance<?> instance)
instance - the managed instance owning the collection<K> Map<? extends K,? extends E> loadMap(ManagedInstance<?> instance)
K - the key type of the mapinstance - void setCollection(ManagedInstance<?> instance, Collection<? extends E> children)
instance - the managed instancechildren - the collection of childrenvoid setLazy(ManagedInstance<?> instance)
instance - the managed instancevoid sortList(Object instance)
instance - the owner instanceCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.