Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.ToOne
org.hibernate.mapping.OneToOne
public class OneToOne
extends ToOne
Field Summary |
Fields inherited from class org.hibernate.mapping.ToOne | |
referencedPropertyName , unwrapProxy |
Constructor Summary | |
|
Method Summary | |
Object |
|
void | |
java.util.List | |
String | |
ForeignKeyDirection |
|
KeyValue |
|
String | |
Type |
|
boolean |
|
boolean | |
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.hibernate.mapping.ToOne | |
accept , createForeignKey , getFetchMode , getReferencedEntityName , getReferencedPropertyName , getType , isEmbedded , isLazy , isTypeSpecified , isUnwrapProxy , isValid , setEmbedded , setFetchMode , setLazy , setReferencedEntityName , setReferencedPropertyName , setTypeUsingReflection , setUnwrapProxy |
public void createForeignKey() throws MappingException
- Specified by:
- createForeignKey in interface Value
- Overrides:
- createForeignKey in interface ToOne
public java.util.List getConstraintColumns()
- Overrides:
- getConstraintColumns in interface SimpleValue
public String getEntityName()
public ForeignKeyDirection getForeignKeyType()
Returns the foreignKeyType.
- Returns:
- AssociationType.ForeignKeyType
public String getPropertyName()
public boolean isConstrained()
Returns the constrained.
- Returns:
- boolean
public boolean isNullable()
- Specified by:
- isNullable in interface Value
- Overrides:
- isNullable in interface SimpleValue
public void setConstrained(boolean constrained)
Sets the constrained.
- Parameters:
constrained
- The constrained to set
public void setEntityName(String propertyName)
public void setForeignKeyType(ForeignKeyDirection foreignKeyType)
Sets the foreignKeyType.
- Parameters:
foreignKeyType
- The foreignKeyType to set
public void setIdentifier(KeyValue identifier)
Sets the identifier.
- Parameters:
identifier
- The identifier to set
public void setPropertyName(String propertyName)