接口 AssociationType
-
- 所有超级接口:
Serializable,Type
- 所有已知实现类:
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.- 作者:
- Gavin King
- 另请参阅:
Cascade
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgetAssociatedEntityName(SessionFactoryImplementor factory)Get the entity name of the associated entityJoinablegetAssociatedJoinable(SessionFactoryImplementor factory)Get the "persister" for this association - a class or collection persisterForeignKeyDirectiongetForeignKeyDirection()Get the foreign key directionality of this associationStringgetLHSPropertyName()Get the name of a property in the owning entity that provides the join key (null if the identifier)StringgetOnCondition(String alias, SessionFactoryImplementor factory, Map enabledFilters)Get the "filtering" SQL fragment that is applied in the SQL on clause, in addition to the usual join conditionStringgetOnCondition(String alias, SessionFactoryImplementor factory, Map enabledFilters, Set<String> treatAsDeclarations)Get the "filtering" SQL fragment that is applied in the SQL on clause, in addition to the usual join conditionStringgetRHSUniqueKeyPropertyName()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)booleanisAlwaysDirtyChecked()Do we dirty check this association, even when there are no columns to be updated?booleanuseLHSPrimaryKey()Is the primary key of the owning entity table to be used in the join?-
从接口继承的方法 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
-
-
-
-
方法详细资料
-
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- 抛出:
MappingException
-
getAssociatedEntityName
String getAssociatedEntityName(SessionFactoryImplementor factory) throws MappingException
Get the entity name of the associated entity- 抛出:
MappingException
-
getOnCondition
String getOnCondition(String alias, SessionFactoryImplementor factory, Map enabledFilters) throws MappingException
Get the "filtering" SQL fragment that is applied in the SQL on clause, in addition to the usual join condition- 抛出:
MappingException
-
getOnCondition
String getOnCondition(String alias, SessionFactoryImplementor factory, Map enabledFilters, Set<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?
-
-