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

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


net.sf.hibernate.mapping
Class ToOne

java.lang.Object
  extended bynet.sf.hibernate.mapping.SimpleValue
      extended bynet.sf.hibernate.mapping.ToOne
All Implemented Interfaces:
Fetchable, Value
Direct Known Subclasses:
ManyToOne, OneToOne

public abstract class ToOne
extends SimpleValue
implements Fetchable

A simple-point association (ie. a reference to another entity).

Author:
Gavin King

Field Summary
protected  String referencedPropertyName
           
 
Constructor Summary
protected ToOne(Table table)
           
 
Method Summary
abstract  void createForeignKey()
           
 int getOuterJoinFetchSetting()
           
 String getReferencedPropertyName()
           
 void setOuterJoinFetchSetting(int joinedFetch)
           
 void setReferencedPropertyName(String string)
           
abstract  void setTypeByReflection(Class propertyClass, String propertyName)
           
 
Methods inherited from class net.sf.hibernate.mapping.SimpleValue
addColumn, createForeignKeyOfClass, createIdentifierGenerator, getColumnIterator, getColumnSpan, getConstraintColumns, getForeignKeyName, getFormula, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getType, isNullable, isSimpleValue, isUnique, isValid, setForeignKeyName, setFormula, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setType, setUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referencedPropertyName

protected String referencedPropertyName
Constructor Detail

ToOne

protected ToOne(Table table)
Method Detail

getOuterJoinFetchSetting

public int getOuterJoinFetchSetting()
Specified by:
getOuterJoinFetchSetting in interface Fetchable
Overrides:
getOuterJoinFetchSetting in class SimpleValue

setOuterJoinFetchSetting

public void setOuterJoinFetchSetting(int joinedFetch)
Specified by:
setOuterJoinFetchSetting in interface Fetchable

setTypeByReflection

public abstract void setTypeByReflection(Class propertyClass,
                                         String propertyName)
                                  throws MappingException
Overrides:
setTypeByReflection in class SimpleValue
Throws:
MappingException

createForeignKey

public abstract void createForeignKey()
Specified by:
createForeignKey in interface Value
Overrides:
createForeignKey in class SimpleValue

getReferencedPropertyName

public String getReferencedPropertyName()

setReferencedPropertyName

public void setReferencedPropertyName(String string)