当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
ToOne (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.mapping
Class ToOne
java.lang.Object
net.sf.hibernate.mapping.SimpleValue
net.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
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 |
referencedPropertyName
protected String referencedPropertyName
ToOne
protected ToOne(Table table)
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)