public class IdentifierProperty extends AbstractAttribute implements IdentifierAttribute
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
IdentifierGenerator |
getIdentifierGenerator() |
IdentifierValue |
getUnsavedValue() |
boolean |
hasIdentifierMapper() |
boolean |
isEmbedded() |
boolean |
isIdentifierAssignedByInsert() |
boolean |
isVirtual() |
String |
toString() |
getName, getNode, getTypepublic IdentifierProperty(String name, Type type, boolean embedded, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)
name - The name of the property representing the identifier within
its owning entity.node - The node name to use for XML-based representation of this
property.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.public IdentifierProperty(Type type, boolean embedded, boolean hasIdentifierMapper, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)
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.public boolean isVirtual()
isVirtual in interface IdentifierAttributepublic boolean isEmbedded()
isEmbedded in interface IdentifierAttributepublic IdentifierValue getUnsavedValue()
getUnsavedValue in interface IdentifierAttributepublic IdentifierGenerator getIdentifierGenerator()
getIdentifierGenerator in interface IdentifierAttributepublic boolean isIdentifierAssignedByInsert()
isIdentifierAssignedByInsert in interface IdentifierAttributepublic boolean hasIdentifierMapper()
hasIdentifierMapper in interface IdentifierAttributeCopyright © 2018 JBoss by Red Hat. All rights reserved.