Package org.hibernate.type
Interface AssociationType
-
- All Superinterfaces:
Serializable
,Type
- All Known Implementing Classes:
AnyType
,ArrayType
,BagType
,CollectionType
,CustomCollectionType
,EntityType
,IdentifierBagType
,ListType
,ManyToOneType
,MapType
,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 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 associationString
getLHSPropertyName()
Get the name of a property in the owning entity that provides the join key (null if the identifier)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, compare, deepCopy, disassemble, disassemble, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getReturnedClassName, getSqlTypeCodes, getTypeForEqualsHashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeSet, nullSafeSet, replace, replace, 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
String getLHSPropertyName()
Get the name of a property in the owning entity that provides the join key (null if the identifier)
-
getRHSUniqueKeyPropertyName
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
String getAssociatedEntityName(SessionFactoryImplementor factory) throws MappingException
Get the entity name of the associated entity- Throws:
MappingException
-
isAlwaysDirtyChecked
boolean isAlwaysDirtyChecked()
Do we dirty check this association, even when there are no columns to be updated?
-
-