|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.mapping.SimpleValue net.sf.hibernate.mapping.ToOne net.sf.hibernate.mapping.OneToOne
A one-to-one association mapping
Field Summary |
Fields inherited from class net.sf.hibernate.mapping.ToOne |
referencedPropertyName |
Constructor Summary | |
OneToOne(Table table,
SimpleValue identifier)
|
Method Summary | |
void |
createForeignKey()
|
List |
getConstraintColumns()
|
ForeignKeyDirection |
getForeignKeyType()
Returns the foreignKeyType. |
Value |
getIdentifier()
Returns the identifier. |
boolean |
isConstrained()
Returns the constrained. |
boolean |
isNullable()
|
void |
setConstrained(boolean constrained)
Sets the constrained. |
void |
setForeignKeyType(ForeignKeyDirection foreignKeyType)
Sets the foreignKeyType. |
void |
setIdentifier(SimpleValue identifier)
Sets the identifier. |
void |
setTypeByReflection(Class propertyClass,
String propertyName)
|
Methods inherited from class net.sf.hibernate.mapping.ToOne |
getOuterJoinFetchSetting, getReferencedPropertyName, setOuterJoinFetchSetting, setReferencedPropertyName |
Methods inherited from class net.sf.hibernate.mapping.SimpleValue |
addColumn, createForeignKeyOfClass, createIdentifierGenerator, getColumnIterator, getColumnSpan, getForeignKeyName, getFormula, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getType, 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 |
Constructor Detail |
public OneToOne(Table table, SimpleValue identifier) throws MappingException
Method Detail |
public void setTypeByReflection(Class propertyClass, String propertyName) throws MappingException
setTypeByReflection
in class ToOne
MappingException
public void createForeignKey()
createForeignKey
in interface Value
createForeignKey
in class ToOne
public List getConstraintColumns()
getConstraintColumns
in class SimpleValue
public boolean isConstrained()
public ForeignKeyDirection getForeignKeyType()
public Value getIdentifier()
public void setConstrained(boolean constrained)
constrained
- The constrained to setpublic void setForeignKeyType(ForeignKeyDirection foreignKeyType)
foreignKeyType
- The foreignKeyType to setpublic void setIdentifier(SimpleValue identifier)
identifier
- The identifier to setpublic boolean isNullable()
isNullable
in interface Value
isNullable
in class SimpleValue
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |