Top Description Inners Constructors Methods
org.hibernate.tuple

public final Class PropertyFactory

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, org.hibernate.EntityMode, .HibernateException, org.hibernate.boot.spi.MetadataImplementor, .SessionFactoryOptions, org.hibernate.bytecode.enhance.spi.interceptor.EnhancementHelper, org.hibernate.engine.internal.UnsavedValueFactory, org.hibernate.engine.spi.IdentifierValue, .SessionFactoryImplementor, .VersionValue, org.hibernate.id.IdentifierGenerator, org.hibernate.internal.util.ReflectHelper, org.hibernate.mapping.KeyValue, .PersistentClass, .Property, org.hibernate.persister.entity.EntityPersister, org.hibernate.persister.spi.PersisterCreationContext, org.hibernate.property.access.spi.Getter, .PropertyAccess, .PropertyAccessStrategy, .PropertyAccessStrategyResolver, org.hibernate.tuple.entity.EntityBasedAssociationAttribute, .EntityBasedBasicAttribute, .EntityBasedCompositionAttribute, .VersionProperty, org.hibernate.type.AssociationType, .CompositeType, .Type, .VersionType

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static NonIdentifierAttribute

Returns:

The appropriate NonIdentifierProperty definition.
buildEntityBasedAttribute
(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property
The mapped property.
property
,
boolean
Is property lazy loading currently available.
lazyAvailable
,
PersisterCreationContext creationContext)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Generate a non-identifier (and non-version) attribute based on the given mapped property from the given entity
public static IdentifierProperty

Returns:

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

Deprecated as a consequence of IdentifierGenerator and IdentifierProperty being deprecated.
Generates the attribute representation of the identifier for a given entity mapping.
public static StandardProperty
buildStandardProperty(Property property, boolean lazyAvailable)

Deprecated See mainly buildEntityBasedAttribute
public static VersionProperty

Returns:

The appropriate VersionProperty definition.
buildVersionProperty
(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property
The version mapping Property.
property
,
boolean
Is property lazy loading currently available.
lazyAvailable
)

Deprecated as a consequence of SessionFactoryImplementor and VersionProperty being deprecated.
Generates a VersionProperty representation for an entity mapping given its version mapping Property.
private static PropertyFactory.NonIdentifierAttributeNature
decode(Type type)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyFactoryback to summary
private PropertyFactory()

Method Detail

buildEntityBasedAttributeback to summary
public static NonIdentifierAttribute buildEntityBasedAttribute(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property property, boolean lazyAvailable, PersisterCreationContext creationContext)

Deprecated

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

Generate a non-identifier (and non-version) attribute based on the given mapped property from the given entity

Parameters
property:Property

The mapped property.

lazyAvailable:boolean

Is property lazy loading currently available.

Returns:NonIdentifierAttribute

The appropriate NonIdentifierProperty definition.

buildIdentifierAttributeback to summary
public static IdentifierProperty buildIdentifierAttribute(PersistentClass mappedEntity, IdentifierGenerator generator)

Deprecated

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

Generates the attribute representation of the identifier 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)

Deprecated

See mainly buildEntityBasedAttribute

Annotations
@Deprecated
buildVersionPropertyback to summary
public static VersionProperty buildVersionProperty(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property property, boolean lazyAvailable)

Deprecated

as a consequence of SessionFactoryImplementor and VersionProperty being deprecated. See corresponding docs for further information.

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.

decodeback to summary
private static PropertyFactory.NonIdentifierAttributeNature decode(Type type)
getConstructorback to summary
private static Constructor<T> getConstructor(PersistentClass persistentClass)
getGetterback to summary
private static Getter getGetter(Property mappingProperty)
org.hibernate.tuple back to summary

public final Enum PropertyFactory.NonIdentifierAttributeNature

extends Enum<PropertyFactory.NonIdentifierAttributeNature>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final PropertyFactory.NonIdentifierAttributeNature
public static final PropertyFactory.NonIdentifierAttributeNature
public static final PropertyFactory.NonIdentifierAttributeNature
public static final PropertyFactory.NonIdentifierAttributeNature
public static final PropertyFactory.NonIdentifierAttributeNature

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PropertyFactory.NonIdentifierAttributeNature
public static PropertyFactory.NonIdentifierAttributeNature[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ANYback to summary
public static final PropertyFactory.NonIdentifierAttributeNature ANY
BASICback to summary
public static final PropertyFactory.NonIdentifierAttributeNature BASIC
COLLECTIONback to summary
public static final PropertyFactory.NonIdentifierAttributeNature COLLECTION
COMPOSITEback to summary
public static final PropertyFactory.NonIdentifierAttributeNature COMPOSITE
ENTITYback to summary
public static final PropertyFactory.NonIdentifierAttributeNature ENTITY

Constructor Detail

NonIdentifierAttributeNatureback to summary
private NonIdentifierAttributeNature()

Method Detail

valueOfback to summary
public static PropertyFactory.NonIdentifierAttributeNature valueOf(String name)
valuesback to summary
public static PropertyFactory.NonIdentifierAttributeNature[] values()