|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.mapping.SimpleValue org.hibernate.mapping.ToOne org.hibernate.mapping.OneToOne
public class OneToOne
A one-to-one association mapping
Field Summary |
---|
Fields inherited from class org.hibernate.mapping.ToOne |
---|
referencedPropertyName, unwrapProxy |
Constructor Summary | |
---|---|
OneToOne(Table table,
PersistentClass owner)
|
Method Summary | |
---|---|
Object |
accept(ValueVisitor visitor)
|
void |
createForeignKey()
|
List |
getConstraintColumns()
|
String |
getEntityName()
|
ForeignKeyDirection |
getForeignKeyType()
Returns the foreignKeyType. |
KeyValue |
getIdentifier()
Returns the identifier. |
String |
getPropertyName()
|
Type |
getType()
|
boolean |
isConstrained()
Returns the constrained. |
boolean |
isNullable()
|
void |
setConstrained(boolean constrained)
Sets the constrained. |
void |
setEntityName(String propertyName)
|
void |
setForeignKeyType(ForeignKeyDirection foreignKeyType)
Sets the foreignKeyType. |
void |
setIdentifier(KeyValue identifier)
Sets the identifier. |
void |
setPropertyName(String propertyName)
|
Methods inherited from class org.hibernate.mapping.ToOne |
---|
getFetchMode, getReferencedEntityName, getReferencedPropertyName, isEmbedded, isLazy, isTypeSpecified, isUnwrapProxy, isValid, setEmbedded, setFetchMode, setLazy, setReferencedEntityName, setReferencedPropertyName, setTypeUsingReflection, setUnwrapProxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OneToOne(Table table, PersistentClass owner) throws MappingException
MappingException
Method Detail |
---|
public String getPropertyName()
public void setPropertyName(String propertyName)
public String getEntityName()
public void setEntityName(String propertyName)
public Type getType() throws MappingException
getType
in interface Value
getType
in class ToOne
MappingException
public void createForeignKey() throws MappingException
createForeignKey
in interface Value
createForeignKey
in class ToOne
MappingException
public List getConstraintColumns()
getConstraintColumns
in class SimpleValue
public boolean isConstrained()
public ForeignKeyDirection getForeignKeyType()
public KeyValue getIdentifier()
public void setConstrained(boolean constrained)
constrained
- The constrained to setpublic void setForeignKeyType(ForeignKeyDirection foreignKeyType)
foreignKeyType
- The foreignKeyType to setpublic void setIdentifier(KeyValue identifier)
identifier
- The identifier to setpublic boolean isNullable()
isNullable
in interface Value
isNullable
in class SimpleValue
public Object accept(ValueVisitor visitor)
accept
in interface Value
accept
in class ToOne
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |