站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

AssociationType (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.type
Interface AssociationType

All Superinterfaces:
Serializable, Type
All Known Implementing Classes:
EntityType, ObjectType, PersistentCollectionType

public interface AssociationType
extends Type

A type that represents some kind of association between entities.

Author:
Gavin King
See Also:
Cascades

Method Summary
 Class getAssociatedClass(SessionFactoryImplementor factory)
           
 ForeignKeyDirection getForeignKeyDirection()
          Get the foreign key directionality of this association
 Joinable getJoinable(SessionFactoryImplementor factory)
          Get the "persister" for this association - a class or collection persister
 String[] getReferencedColumns(SessionFactoryImplementor factory)
          Get the columns referenced by this association.
 boolean usePrimaryKeyAsForeignKey()
          Is the foreign key the primary key of the table?
 
Methods inherited from interface net.sf.hibernate.type.Type
assemble, copy, deepCopy, disassemble, equals, fromString, getColumnSpan, getName, getReturnedClass, hasNiceEquals, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isMutable, isObjectType, isPersistentCollectionType, nullSafeGet, nullSafeGet, nullSafeSet, resolveIdentifier, sqlTypes, toString
 

Method Detail

getForeignKeyDirection

public ForeignKeyDirection getForeignKeyDirection()
Get the foreign key directionality of this association


usePrimaryKeyAsForeignKey

public boolean usePrimaryKeyAsForeignKey()
Is the foreign key the primary key of the table?


getJoinable

public Joinable getJoinable(SessionFactoryImplementor factory)
                     throws MappingException
Get the "persister" for this association - a class or collection persister

Throws:
MappingException

getReferencedColumns

public String[] getReferencedColumns(SessionFactoryImplementor factory)
                              throws MappingException
Get the columns referenced by this association.

Throws:
MappingException

getAssociatedClass

public Class getAssociatedClass(SessionFactoryImplementor factory)
                         throws MappingException
Throws:
MappingException