Package org.hibernate.tuple
Class IdentifierProperty
- java.lang.Object
-
- org.hibernate.tuple.AbstractAttribute
-
- org.hibernate.tuple.IdentifierProperty
-
- All Implemented Interfaces:
Attribute
,IdentifierAttribute
public class IdentifierProperty extends AbstractAttribute implements IdentifierAttribute
Represents a defined entity identifier property within the Hibernate runtime-metamodel.
-
-
Constructor Summary
Constructors Constructor Description IdentifierProperty(String name, Type type, boolean embedded, IdentifierGenerator identifierGenerator)
Construct a non-virtual identifier property.IdentifierProperty(Type type, boolean embedded, boolean hasIdentifierMapper, IdentifierGenerator identifierGenerator)
Construct a virtual IdentifierProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifierGenerator
getIdentifierGenerator()
boolean
hasIdentifierMapper()
boolean
isEmbedded()
boolean
isIdentifierAssignedByInsert()
boolean
isVirtual()
String
toString()
-
Methods inherited from class org.hibernate.tuple.AbstractAttribute
getName, getType
-
-
-
-
Constructor Detail
-
IdentifierProperty
public IdentifierProperty(String name, Type type, boolean embedded, IdentifierGenerator identifierGenerator)
Construct a non-virtual identifier property.- Parameters:
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. 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, IdentifierGenerator identifierGenerator)
Construct a virtual IdentifierProperty.- Parameters:
type
- The Hibernate Type for the identifier property.embedded
- Is this an embedded identifier. property, represents new (i.e., un-saved) instances of the owning entity.identifierGenerator
- The generator to use for id value generation.
-
-
Method Detail
-
isVirtual
public boolean isVirtual()
- Specified by:
isVirtual
in interfaceIdentifierAttribute
-
isEmbedded
public boolean isEmbedded()
- Specified by:
isEmbedded
in interfaceIdentifierAttribute
-
getIdentifierGenerator
public IdentifierGenerator getIdentifierGenerator()
- Specified by:
getIdentifierGenerator
in interfaceIdentifierAttribute
-
isIdentifierAssignedByInsert
public boolean isIdentifierAssignedByInsert()
- Specified by:
isIdentifierAssignedByInsert
in interfaceIdentifierAttribute
-
hasIdentifierMapper
public boolean hasIdentifierMapper()
- Specified by:
hasIdentifierMapper
in interfaceIdentifierAttribute
-
-