Z - the source typeX - the destination typeY - the attribute typepublic interface JoinedMapping<Z,X,Y> extends Mapping<Z,X,Y>
| Modifier and Type | Method and Description |
|---|---|
Object |
extractKey(Object value)
Extracts key from the value.
|
void |
flush(Connection connection,
ManagedInstance<?> managedInstance,
boolean removals,
boolean force)
Flushes the associates.
|
AttributeImpl<? super Z,X> |
getAttribute()
Returns the attribute of the mapping
|
JoinableTable |
getJoinTable()
Returns the join table for the relation.
|
MappingType |
getMappingType()
Returns the type of the mapping.
|
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,
javax.persistence.criteria.JoinType joinType)
Returns the join SQL for the mapping.
|
get, getJavaMember, getJavaType, getLocator, getName, getParent, getPath, getRoot, isCollection, setObject extractKey(Object value)
value - the valuevoid flush(Connection 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()
JoinableTable getJoinTable()
This is, for associations the JoinTable, for element collections the CollectionTable.
MappingType getMappingType()
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.