Z - the source typeX - the destination typeY - the attribute typepublic interface JoinedMapping<Z,X,Y>
| Modifier and Type | Interface and Description |
|---|---|
static class |
JoinedMapping.MappingType
Type of the mapping
|
| Modifier and Type | Method and Description |
|---|---|
Object |
extractKey(Y value)
Extracts key from the value.
|
void |
flush(ConnectionImpl connection,
ManagedInstance<?> managedInstance,
boolean removals,
boolean force)
Flushes the associates.
|
AttributeImpl<? super Z,X> |
getAttribute()
Returns the attribute of the mapping
|
JoinedMapping.MappingType |
getMappingType()
Returns the type of the mapping.
|
JoinableTable |
getTable()
Returns the table for the relation.
|
TypeImpl<Y> |
getType()
Returns the bindable entity type.
|
void |
initialize(ManagedInstance<?> instance)
Initializes the mapping.
|
boolean |
isAssociation()
Returns if the mapping is an association.
|
boolean |
isEager()
Returns if the association should be eagerly fetched.
|
boolean |
isJoined()
Returns if the mapping is a joined mapping.
|
boolean |
isMap()
Returns if the mapping is a map collection.
|
String |
join(String parentAlias,
String alias,
JoinType joinType)
Returns the join SQL for the mapping.
|
Object extractKey(Y value)
value - the valuevoid flush(ConnectionImpl connection, ManagedInstance<?> managedInstance, boolean removals, boolean force) throws SQLException
connection - the connection to usemanagedInstance - the managed instanceremovals - true if the removals should be flushed and false for the additionsforce - true to force, effective only for insertions and for new entities.SQLException - thrown if there is an underlying SQL ExceptionAttributeImpl<? super Z,X> getAttribute()
JoinedMapping.MappingType getMappingType()
JoinableTable getTable()
This is, for associations the JoinTable, for element collections the CollectionTable.
TypeImpl<Y> getType()
void initialize(ManagedInstance<?> instance)
instance - the instanceboolean isAssociation()
boolean isEager()
boolean isJoined()
boolean isMap()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.