FileDocCategorySizeDatePackage
IdentifierProperty.javaAPI DocHibernate 3.2.53115Wed Feb 15 15:28:16 GMT 2006org.hibernate.tuple

IdentifierProperty

public class IdentifierProperty extends Property
Represents a defined entity identifier property within the Hibernate runtime-metamodel.
author
Steve Ebersole

Fields Summary
private boolean
virtual
private boolean
embedded
private org.hibernate.engine.IdentifierValue
unsavedValue
private org.hibernate.id.IdentifierGenerator
identifierGenerator
private boolean
identifierAssignedByInsert
private boolean
hasIdentifierMapper
Constructors Summary
public IdentifierProperty(String name, String node, org.hibernate.type.Type type, boolean embedded, org.hibernate.engine.IdentifierValue unsavedValue, org.hibernate.id.IdentifierGenerator identifierGenerator)
Construct a non-virtual identifier property.

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

		super(name, node, type);
		this.virtual = false;
		this.embedded = embedded;
		this.hasIdentifierMapper = false;
		this.unsavedValue = unsavedValue;
		this.identifierGenerator = identifierGenerator;
		this.identifierAssignedByInsert = identifierGenerator instanceof PostInsertIdentifierGenerator;
	
public IdentifierProperty(org.hibernate.type.Type type, boolean embedded, boolean hasIdentifierMapper, org.hibernate.engine.IdentifierValue unsavedValue, org.hibernate.id.IdentifierGenerator identifierGenerator)
Construct a virtual IdentifierProperty.

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

		super(null, null, type);
		this.virtual = true;
		this.embedded = embedded;
		this.hasIdentifierMapper = hasIdentifierMapper;
		this.unsavedValue = unsavedValue;
		this.identifierGenerator = identifierGenerator;
		this.identifierAssignedByInsert = identifierGenerator instanceof PostInsertIdentifierGenerator;
	
Methods Summary
public org.hibernate.id.IdentifierGeneratorgetIdentifierGenerator()

		return identifierGenerator;
	
public org.hibernate.engine.IdentifierValuegetUnsavedValue()

		return unsavedValue;
	
public booleanhasIdentifierMapper()

		return hasIdentifierMapper;
	
public booleanisEmbedded()

		return embedded;
	
public booleanisIdentifierAssignedByInsert()

		return identifierAssignedByInsert;
	
public booleanisVirtual()

		return virtual;