Top Description Fields Constructors Methods
org.hibernate.tuple

public Class IdentifierProperty

extends AbstractAttribute
implements IdentifierAttribute
Class Inheritance
All Implemented Interfaces
org.hibernate.tuple.IdentifierAttribute, org.hibernate.tuple.Property, org.hibernate.tuple.Attribute
Imports
org.hibernate.engine.spi.IdentifierValue, org.hibernate.id.IdentifierGenerator, .PostInsertIdentifierGenerator, org.hibernate.type.Type

Deprecated

as a consequence of AbstractAttribute and IdentifierAttribute being deprecated. See corresponding docs for further information.

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

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean
private final boolean
private final IdentifierGenerator
identifierGenerator

Deprecated as a consequence of IdentifierGenerator being deprecated.
private final IdentifierValue
private final boolean

Constructor Summary

AccessConstructor and Description
public
IdentifierProperty(String
The name of the property representing the identifier within its owning entity.
name
,
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
)

Deprecated as a consequence of IdentifierGenerator being deprecated.
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
)

Deprecated as a consequence of IdentifierGenerator being deprecated.
Construct a virtual IdentifierProperty.

Method Summary

Modifier and TypeMethod and Description
public IdentifierGenerator
public IdentifierValue
public boolean
public boolean
public boolean
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.tuple.AbstractAttribute:
getNamegetNodegetType

Field Detail

embeddedback to summary
private final boolean embedded
hasIdentifierMapperback to summary
private final boolean hasIdentifierMapper
identifierAssignedByInsertback to summary
private final boolean identifierAssignedByInsert
identifierGeneratorback to summary
private final IdentifierGenerator identifierGenerator

Deprecated

as a consequence of IdentifierGenerator being deprecated. See corresponding docs for further information.

unsavedValueback to summary
private final IdentifierValue unsavedValue
virtualback to summary
private final boolean virtual

Constructor Detail

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

Deprecated

as a consequence of IdentifierGenerator being deprecated. See corresponding docs for further information.

Construct a non-virtual identifier property.

Parameters
name:String

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

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)

Deprecated

as a consequence of IdentifierGenerator being deprecated. See corresponding docs for further information.

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()

Implements org.hibernate.tuple.IdentifierAttribute.getIdentifierGenerator.

Deprecated

as a consequence of IdentifierGenerator being deprecated. See corresponding docs for further information.

Annotations
@Override
getUnsavedValueback to summary
public IdentifierValue getUnsavedValue()

Implements org.hibernate.tuple.IdentifierAttribute.getUnsavedValue.

Annotations
@Override
hasIdentifierMapperback to summary
public boolean hasIdentifierMapper()

Implements org.hibernate.tuple.IdentifierAttribute.hasIdentifierMapper.

Annotations
@Override
isEmbeddedback to summary
public boolean isEmbedded()

Implements org.hibernate.tuple.IdentifierAttribute.isEmbedded.

Annotations
@Override
isIdentifierAssignedByInsertback to summary
public boolean isIdentifierAssignedByInsert()

Implements org.hibernate.tuple.IdentifierAttribute.isIdentifierAssignedByInsert.

Annotations
@Override
isVirtualback to summary
public boolean isVirtual()

Implements org.hibernate.tuple.IdentifierAttribute.isVirtual.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override