Package org.hibernate.type
Interface AssociationType
-
- All Superinterfaces:
java.io.Serializable
,Type
- All Known Implementing Classes:
AnyType
,ArrayType
,BagType
,CollectionType
,CustomCollectionType
,EntityType
,IdentifierBagType
,ListType
,ManyToOneType
,MapType
,ObjectType
,OneToOneType
,OrderedMapType
,OrderedSetType
,SetType
,SortedMapType
,SortedSetType
,SpecialOneToOneType
public interface AssociationType extends Type
A type that represents some kind of association between entities.- See Also:
Cascade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAssociatedEntityName(SessionFactoryImplementor factory)
Get the entity name of the associated entityJoinable
getAssociatedJoinable(SessionFactoryImplementor factory)
Get the "persister" for this association - a class or collection persisterForeignKeyDirection
getForeignKeyDirection()
Get the foreign key directionality of this associationjava.lang.String
getLHSPropertyName()
Get the name of a property in the owning entity that provides the join key (null if the identifier)java.lang.String
getOnCondition(java.lang.String alias, SessionFactoryImplementor factory, java.util.Map enabledFilters)
Get the "filtering" SQL fragment that is applied in the SQL on clause, in addition to the usual join conditionjava.lang.String
getOnCondition(java.lang.String alias, SessionFactoryImplementor factory, java.util.Map enabledFilters, java.util.Set<java.lang.String> treatAsDeclarations)
Get the "filtering" SQL fragment that is applied in the SQL on clause, in addition to the usual join conditionjava.lang.String
getRHSUniqueKeyPropertyName()
The name of a unique property of the associated entity that provides the join key (null if the identifier of an entity, or key of a collection)boolean
isAlwaysDirtyChecked()
Do we dirty check this association, even when there are no columns to be updated?boolean
useLHSPrimaryKey()
Is the primary key of the owning entity table to be used in the join?-
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
Method Detail
-
getForeignKeyDirection
ForeignKeyDirection getForeignKeyDirection()
Get the foreign key directionality of this association
-
useLHSPrimaryKey
boolean useLHSPrimaryKey()
Is the primary key of the owning entity table to be used in the join?
-
getLHSPropertyName
java.lang.String getLHSPropertyName()
Get the name of a property in the owning entity that provides the join key (null if the identifier)
-
getRHSUniqueKeyPropertyName
java.lang.String getRHSUniqueKeyPropertyName()
The name of a unique property of the associated entity that provides the join key (null if the identifier of an entity, or key of a collection)
-
getAssociatedJoinable
Joinable getAssociatedJoinable(SessionFactoryImplementor factory) throws MappingException
Get the "persister" for this association - a class or collection persister- Throws:
MappingException
-
getAssociatedEntityName
java.lang.String getAssociatedEntityName(SessionFactoryImplementor factory) throws MappingException
Get the entity name of the associated entity- Throws:
MappingException
-
getOnCondition
java.lang.String getOnCondition(java.lang.String alias, SessionFactoryImplementor factory, java.util.Map enabledFilters) throws MappingException
Get the "filtering" SQL fragment that is applied in the SQL on clause, in addition to the usual join condition- Throws:
MappingException
-
getOnCondition
java.lang.String getOnCondition(java.lang.String alias, SessionFactoryImplementor factory, java.util.Map enabledFilters, java.util.Set<java.lang.String> treatAsDeclarations)
Get the "filtering" SQL fragment that is applied in the SQL on clause, in addition to the usual join condition
-
isAlwaysDirtyChecked
boolean isAlwaysDirtyChecked()
Do we dirty check this association, even when there are no columns to be updated?
-
-