类 IdentifierProperty
- java.lang.Object
-
- org.hibernate.tuple.AbstractAttribute
-
- org.hibernate.tuple.IdentifierProperty
-
- 所有已实现的接口:
Attribute,IdentifierAttribute,Property
public class IdentifierProperty extends AbstractAttribute implements IdentifierAttribute
Represents a defined entity identifier property within the Hibernate runtime-metamodel.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 IdentifierProperty(String name, Type type, boolean embedded, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)Construct a non-virtual identifier property.IdentifierProperty(Type type, boolean embedded, boolean hasIdentifierMapper, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)Construct a virtual IdentifierProperty.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 IdentifierGeneratorgetIdentifierGenerator()IdentifierValuegetUnsavedValue()booleanhasIdentifierMapper()booleanisEmbedded()booleanisIdentifierAssignedByInsert()booleanisVirtual()StringtoString()-
从类继承的方法 org.hibernate.tuple.AbstractAttribute
getName, getNode, getType
-
-
-
-
构造器详细资料
-
IdentifierProperty
public IdentifierProperty(String name, Type type, boolean embedded, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)
Construct a non-virtual identifier property.- 参数:
name- The name of the property representing the identifier within its owning entity.type- The Hibernate Type for the identifier property.embedded- Is this an embedded identifier.unsavedValue- The value which, if found as the value on the identifier property, represents new (i.e., un-saved) instances of the owning entity.identifierGenerator- The generator to use for id value generation.
-
IdentifierProperty
public IdentifierProperty(Type type, boolean embedded, boolean hasIdentifierMapper, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)
Construct a virtual IdentifierProperty.- 参数:
type- The Hibernate Type for the identifier property.embedded- Is this an embedded identifier.unsavedValue- The value which, if found as the value on the identifier property, represents new (i.e., un-saved) instances of the owning entity.identifierGenerator- The generator to use for id value generation.
-
-
方法详细资料
-
isVirtual
public boolean isVirtual()
- 指定者:
isVirtual在接口中IdentifierAttribute
-
isEmbedded
public boolean isEmbedded()
- 指定者:
isEmbedded在接口中IdentifierAttribute
-
getUnsavedValue
public IdentifierValue getUnsavedValue()
- 指定者:
getUnsavedValue在接口中IdentifierAttribute
-
getIdentifierGenerator
public IdentifierGenerator getIdentifierGenerator()
- 指定者:
getIdentifierGenerator在接口中IdentifierAttribute
-
isIdentifierAssignedByInsert
public boolean isIdentifierAssignedByInsert()
-
hasIdentifierMapper
public boolean hasIdentifierMapper()
- 指定者:
hasIdentifierMapper在接口中IdentifierAttribute
-
-