类 OneToOne
- java.lang.Object
-
- org.hibernate.mapping.SimpleValue
-
- org.hibernate.mapping.ToOne
-
- org.hibernate.mapping.OneToOne
-
-
字段概要
-
从类继承的字段 org.hibernate.mapping.ToOne
referencedPropertyName, referenceToPrimaryKey, unwrapProxy
-
从类继承的字段 org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
-
构造器概要
构造器 构造器 说明 OneToOne(MetadataBuildingContext buildingContext, Table table, PersistentClass owner)OneToOne(MetadataImplementor metadata, Table table, PersistentClass owner)已过时。
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectaccept(ValueVisitor visitor)voidcreateForeignKey()ListgetConstraintColumns()StringgetEntityName()ForeignKeyDirectiongetForeignKeyType()Returns the foreignKeyType.KeyValuegetIdentifier()Returns the identifier.StringgetPropertyName()TypegetType()booleanisConstrained()Returns the constrained.booleanisNullable()booleanisSame(OneToOne other)booleanisSame(ToOne other)voidsetConstrained(boolean constrained)Sets the constrained.voidsetEntityName(String propertyName)voidsetForeignKeyType(ForeignKeyDirection foreignKeyType)Sets the foreignKeyType.voidsetIdentifier(KeyValue identifier)Sets the identifier.voidsetPropertyName(String propertyName)-
从类继承的方法 org.hibernate.mapping.ToOne
getFetchMode, getReferencedEntityName, getReferencedPropertyName, isLazy, isReferenceToPrimaryKey, isSame, isTypeSpecified, isUnwrapProxy, isValid, setFetchMode, setLazy, setReferencedEntityName, setReferencedPropertyName, setReferenceToPrimaryKey, setTypeUsingReflection, setUnwrapProxy
-
从类继承的方法 org.hibernate.mapping.SimpleValue
addColumn, 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, toString
-
-
-
-
构造器详细资料
-
OneToOne
@Deprecated public OneToOne(MetadataImplementor metadata, Table table, PersistentClass owner) throws MappingException
已过时。- 抛出:
MappingException
-
OneToOne
public OneToOne(MetadataBuildingContext buildingContext, Table table, PersistentClass owner) throws MappingException
- 抛出:
MappingException
-
-
方法详细资料
-
getPropertyName
public String getPropertyName()
- 覆盖:
getPropertyName在类中ToOne
-
setPropertyName
public void setPropertyName(String propertyName)
- 覆盖:
setPropertyName在类中ToOne
-
getEntityName
public String getEntityName()
-
setEntityName
public void setEntityName(String propertyName)
-
getType
public Type getType() throws MappingException
- 指定者:
getType在接口中Value- 指定者:
getType在类中ToOne- 抛出:
MappingException
-
createForeignKey
public void createForeignKey() throws MappingException- 指定者:
createForeignKey在接口中Value- 指定者:
createForeignKey在类中ToOne- 抛出:
MappingException
-
getConstraintColumns
public List getConstraintColumns()
- 覆盖:
getConstraintColumns在类中SimpleValue
-
isConstrained
public boolean isConstrained()
Returns the constrained.- 返回:
- boolean
-
getForeignKeyType
public ForeignKeyDirection getForeignKeyType()
Returns the foreignKeyType.- 返回:
- AssociationType.ForeignKeyType
-
getIdentifier
public KeyValue getIdentifier()
Returns the identifier.- 返回:
- Value
-
setConstrained
public void setConstrained(boolean constrained)
Sets the constrained.- 参数:
constrained- The constrained to set
-
setForeignKeyType
public void setForeignKeyType(ForeignKeyDirection foreignKeyType)
Sets the foreignKeyType.- 参数:
foreignKeyType- The foreignKeyType to set
-
setIdentifier
public void setIdentifier(KeyValue identifier)
Sets the identifier.- 参数:
identifier- The identifier to set
-
isNullable
public boolean isNullable()
- 指定者:
isNullable在接口中Value- 覆盖:
isNullable在类中SimpleValue
-
isSame
public boolean isSame(OneToOne other)
-
-