Top Description Constructors Methods
org.hibernate.tuple

public Class PropertyFactory

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, org.hibernate.EntityMode, org.hibernate.mapping.PropertyGeneration, .KeyValue, .PersistentClass, .Property, org.hibernate.engine.IdentifierValue, .UnsavedValueFactory, .VersionValue, org.hibernate.id.IdentifierGenerator, org.hibernate.property.Getter, .PropertyAccessor, .PropertyAccessorFactory, org.hibernate.type.AssociationType, .Type, .VersionType, org.hibernate.util.ReflectHelper

Responsible for generation of runtime metamodel Property representations. Makes distinction between identifier, version, and other (standard) properties.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static IdentifierProperty

Returns:

The appropriate IdentifierProperty definition.
buildIdentifierProperty
(PersistentClass
The mapping definition of the entity.
mappedEntity
,
IdentifierGenerator
The identifier value generator to use for this identifier.
generator
)

Generates an IdentifierProperty representation of the for a given entity mapping.

public static StandardProperty

Returns:

The appropriate StandardProperty definition.
buildStandardProperty
(Property
The mapped property.
property
,
boolean
Is property lazy loading currently available.
lazyAvailable
)

Generate a "standard" (i.e., non-identifier and non-version) based on the given mapped property.

public static VersionProperty

Returns:

The appropriate VersionProperty definition.
buildVersionProperty
(Property
The version mapping Property.
property
,
boolean
Is property lazy loading currently available.
lazyAvailable
)

Generates a VersionProperty representation for an entity mapping given its version mapping Property.

private static Constructor<T>
private static Getter
getGetter(Property mappingProperty)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyFactoryback to summary
public PropertyFactory()

Method Detail

buildIdentifierPropertyback to summary
public static IdentifierProperty buildIdentifierProperty(PersistentClass mappedEntity, IdentifierGenerator generator)

Generates an IdentifierProperty representation of the for a given entity mapping.

Parameters
mappedEntity:PersistentClass

The mapping definition of the entity.

generator:IdentifierGenerator

The identifier value generator to use for this identifier.

Returns:IdentifierProperty

The appropriate IdentifierProperty definition.

buildStandardPropertyback to summary
public static StandardProperty buildStandardProperty(Property property, boolean lazyAvailable)

Generate a "standard" (i.e., non-identifier and non-version) based on the given mapped property.

Parameters
property:Property

The mapped property.

lazyAvailable:boolean

Is property lazy loading currently available.

Returns:StandardProperty

The appropriate StandardProperty definition.

buildVersionPropertyback to summary
public static VersionProperty buildVersionProperty(Property property, boolean lazyAvailable)

Generates a VersionProperty representation for an entity mapping given its version mapping Property.

Parameters
property:Property

The version mapping Property.

lazyAvailable:boolean

Is property lazy loading currently available.

Returns:VersionProperty

The appropriate VersionProperty definition.

getConstructorback to summary
private static Constructor<T> getConstructor(PersistentClass persistentClass)
getGetterback to summary
private static Getter getGetter(Property mappingProperty)