public class OneToOne extends ToOne
referencedPropertyName, referenceToPrimaryKey, unwrapProxyDEFAULT_ID_GEN_STRATEGY| Constructor and Description |
|---|
OneToOne(MetadataImplementor metadata,
Table table,
PersistentClass owner) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor) |
void |
createForeignKey() |
java.util.List |
getConstraintColumns() |
java.lang.String |
getEntityName() |
ForeignKeyDirection |
getForeignKeyType()
Returns the foreignKeyType.
|
KeyValue |
getIdentifier()
Returns the identifier.
|
java.lang.String |
getPropertyName() |
Type |
getType() |
boolean |
isConstrained()
Returns the constrained.
|
boolean |
isNullable() |
boolean |
isSame(OneToOne other) |
boolean |
isSame(ToOne other) |
void |
setConstrained(boolean constrained)
Sets the constrained.
|
void |
setEntityName(java.lang.String propertyName) |
void |
setForeignKeyType(ForeignKeyDirection foreignKeyType)
Sets the foreignKeyType.
|
void |
setIdentifier(KeyValue identifier)
Sets the identifier.
|
void |
setPropertyName(java.lang.String propertyName) |
getFetchMode, getReferencedEntityName, getReferencedPropertyName, isLazy, isReferenceToPrimaryKey, isSame, isTypeSpecified, isUnwrapProxy, isValid, setFetchMode, setLazy, setReferencedEntityName, setReferencedPropertyName, setReferenceToPrimaryKey, setTypeUsingReflection, setUnwrapProxyaddColumn, addColumn, addFormula, copyTypeFrom, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getForeignKeyDefinition, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isSame, isSame, isSimpleValue, isUpdateable, isVersion, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters, toStringpublic OneToOne(MetadataImplementor metadata, Table table, PersistentClass owner) throws MappingException
MappingExceptionpublic java.lang.String getPropertyName()
getPropertyName in class ToOnepublic void setPropertyName(java.lang.String propertyName)
setPropertyName in class ToOnepublic java.lang.String getEntityName()
public void setEntityName(java.lang.String propertyName)
public Type getType() throws MappingException
getType in interface ValuegetType in class ToOneMappingExceptionpublic void createForeignKey()
throws MappingException
createForeignKey in interface ValuecreateForeignKey in class ToOneMappingExceptionpublic java.util.List getConstraintColumns()
getConstraintColumns in class SimpleValuepublic 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 ValueisNullable in class SimpleValuepublic java.lang.Object accept(ValueVisitor visitor)
public boolean isSame(OneToOne other)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.