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

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


net.sf.hibernate.mapping
Class OneToMany

java.lang.Object
  extended bynet.sf.hibernate.mapping.OneToMany
All Implemented Interfaces:
Value

public class OneToMany
extends Object
implements Value

A mapping for a one-to-many association

Author:
Gavin King

Constructor Summary
OneToMany(PersistentClass owner)
           
 
Method Summary
 void createForeignKey()
           
 PersistentClass getAssociatedClass()
           
 Iterator getColumnIterator()
           
 int getColumnSpan()
           
 EntityType getEntityType()
           
 Formula getFormula()
           
 int getOuterJoinFetchSetting()
           
 Table getTable()
           
 Type getType()
           
 boolean isNullable()
           
 boolean isSimpleValue()
           
 boolean isUnique()
           
 boolean isValid(Mapping mapping)
           
 void setAssociatedClass(PersistentClass associatedClass)
           
 void setType(EntityType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneToMany

public OneToMany(PersistentClass owner)
          throws MappingException
Method Detail

getEntityType

public EntityType getEntityType()

setType

public void setType(EntityType type)

getAssociatedClass

public PersistentClass getAssociatedClass()

setAssociatedClass

public void setAssociatedClass(PersistentClass associatedClass)

createForeignKey

public void createForeignKey()
Specified by:
createForeignKey in interface Value

getColumnIterator

public Iterator getColumnIterator()
Specified by:
getColumnIterator in interface Value

getColumnSpan

public int getColumnSpan()
Specified by:
getColumnSpan in interface Value

getFormula

public Formula getFormula()
Specified by:
getFormula in interface Value

getOuterJoinFetchSetting

public int getOuterJoinFetchSetting()
Specified by:
getOuterJoinFetchSetting in interface Value

getTable

public Table getTable()
Specified by:
getTable in interface Value

getType

public Type getType()
Specified by:
getType in interface Value

isNullable

public boolean isNullable()
Specified by:
isNullable in interface Value

isSimpleValue

public boolean isSimpleValue()
Specified by:
isSimpleValue in interface Value

isUnique

public boolean isUnique()
Specified by:
isUnique in interface Value

isValid

public boolean isValid(Mapping mapping)
                throws MappingException
Specified by:
isValid in interface Value
Throws:
MappingException