Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » type » [javadoc | source]
org.hibernate.type
public interface: AssociationType [javadoc | source]

All Implemented Interfaces:
    Type

All Known Implementing Classes:
    ArrayType, CollectionType, BagType, SetType, AnyType, CustomCollectionType, SortedMapType, ListType, EntityType, OrderedSetType, IdentifierBagType, OrderedMapType, OneToOneType, SortedSetType, MapType, ManyToOneType, SpecialOneToOneType

A type that represents some kind of association between entities.
Method from org.hibernate.type.AssociationType Summary:
getAssociatedEntityName,   getAssociatedJoinable,   getForeignKeyDirection,   getLHSPropertyName,   getOnCondition,   getRHSUniqueKeyPropertyName,   isAlwaysDirtyChecked,   isEmbeddedInXML,   useLHSPrimaryKey
Method from org.hibernate.type.AssociationType Detail:
 public String getAssociatedEntityName(SessionFactoryImplementor factory) throws MappingException
    Get the entity name of the associated entity
 public Joinable getAssociatedJoinable(SessionFactoryImplementor factory) throws MappingException
    Get the "persister" for this association - a class or collection persister
 public ForeignKeyDirection getForeignKeyDirection()
    Get the foreign key directionality of this association
 public String getLHSPropertyName()
    Get the name of a property in the owning entity that provides the join key (null if the identifier)
 public 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
 public 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)
 abstract public boolean isAlwaysDirtyChecked()
    Do we dirty check this association, even when there are no columns to be updated?
 public boolean isEmbeddedInXML()
 public boolean useLHSPrimaryKey()
    Is the primary key of the owning entity table to be used in the join?