Top Description Fields Constructors Methods
org.hibernate.tuple

public Class IdentifierProperty

extends Property
Class Inheritance
Imports
org.hibernate.engine.IdentifierValue, org.hibernate.id.IdentifierGenerator, .PostInsertIdentifierGenerator, org.hibernate.type.Type

Represents a defined entity identifier property within the Hibernate runtime-metamodel.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private boolean
private IdentifierGenerator
private IdentifierValue
private boolean

Constructor Summary

AccessConstructor and Description
public
IdentifierProperty(String
The name of the property representing the identifier within its owning entity.
name
,
String
The node name to use for XML-based representation of this property.
node
,
Type
The Hibernate Type for the identifier property.
type
,
boolean
Is this an embedded identifier.
embedded
,
IdentifierValue
The value which, if found as the value on the identifier property, represents new (i.e., un-saved) instances of the owning entity.
unsavedValue
,
IdentifierGenerator
The generator to use for id value generation.
identifierGenerator
)

Construct a non-virtual identifier property.

public
IdentifierProperty(Type
The Hibernate Type for the identifier property.
type
,
boolean
Is this an embedded identifier.
embedded
,
boolean hasIdentifierMapper, IdentifierValue
The value which, if found as the value on the identifier property, represents new (i.e., un-saved) instances of the owning entity.
unsavedValue
,
IdentifierGenerator
The generator to use for id value generation.
identifierGenerator
)

Construct a virtual IdentifierProperty.

Method Summary

Modifier and TypeMethod and Description
public IdentifierGenerator
public IdentifierValue
public boolean
public boolean
public boolean
public boolean
Inherited from org.hibernate.tuple.Property:
getNamegetNodegetTypetoString

Field Detail

embeddedback to summary
private boolean embedded
hasIdentifierMapperback to summary
private boolean hasIdentifierMapper
identifierAssignedByInsertback to summary
private boolean identifierAssignedByInsert
identifierGeneratorback to summary
private IdentifierGenerator identifierGenerator
unsavedValueback to summary
private IdentifierValue unsavedValue
virtualback to summary
private boolean virtual

Constructor Detail

IdentifierPropertyback to summary
public IdentifierProperty(String name, String node, Type type, boolean embedded, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)

Construct a non-virtual identifier property.

Parameters
name:String

The name of the property representing the identifier within its owning entity.

node:String

The node name to use for XML-based representation of this property.

type:Type

The Hibernate Type for the identifier property.

embedded:boolean

Is this an embedded identifier.

unsavedValue:IdentifierValue

The value which, if found as the value on the identifier property, represents new (i.e., un-saved) instances of the owning entity.

identifierGenerator:IdentifierGenerator

The generator to use for id value generation.

IdentifierPropertyback to summary
public IdentifierProperty(Type type, boolean embedded, boolean hasIdentifierMapper, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)

Construct a virtual IdentifierProperty.

Parameters
type:Type

The Hibernate Type for the identifier property.

embedded:boolean

Is this an embedded identifier.

unsavedValue:IdentifierValue

The value which, if found as the value on the identifier property, represents new (i.e., un-saved) instances of the owning entity.

identifierGenerator:IdentifierGenerator

The generator to use for id value generation.

Method Detail

getIdentifierGeneratorback to summary
public IdentifierGenerator getIdentifierGenerator()
getUnsavedValueback to summary
public IdentifierValue getUnsavedValue()
hasIdentifierMapperback to summary
public boolean hasIdentifierMapper()
isEmbeddedback to summary
public boolean isEmbedded()
isIdentifierAssignedByInsertback to summary
public boolean isIdentifierAssignedByInsert()
isVirtualback to summary
public boolean isVirtual()