Top Description Fields Constructors Methods
org.hibernate.persister.internal

public final Class PersisterFactoryImpl

extends Object
implements PersisterFactory, ServiceRegistryAwareService
Class Inheritance
All Implemented Interfaces
org.hibernate.service.spi.ServiceRegistryAwareService, org.hibernate.persister.spi.PersisterFactory, org.hibernate.service.Service, java.io.Serializable
Imports
java.lang.reflect.Constructor, .InvocationTargetException, org.hibernate.HibernateException, .MappingException, org.hibernate.cache.spi.access.CollectionDataAccess, .EntityDataAccess, .NaturalIdDataAccess, org.hibernate.internal.log.DeprecationLogger, org.hibernate.mapping.Collection, .PersistentClass, org.hibernate.metamodel.spi.RuntimeModelCreationContext, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.EntityPersister, org.hibernate.persister.spi.PersisterClassResolver, .PersisterCreationContext, .PersisterFactory, org.hibernate.service.spi.ServiceRegistryAwareService, .ServiceRegistryImplementor

The standard Hibernate PersisterFactory implementation
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final Class<?>[]
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS

The constructor signature for CollectionPersister implementations

public static final Class<?>[]
ENTITY_PERSISTER_CONSTRUCTOR_ARGS

The constructor signature for EntityPersister implementations

private static final Class<?>[]
LEGACY_COLLECTION_PERSISTER_CONSTRUCTOR_ARGS

The constructor signature for CollectionPersister implementations

private static final Class<?>[]
LEGACY_ENTITY_PERSISTER_CONSTRUCTOR_ARGS

The legacy constructor signature for EntityPersister implementations

private PersisterClassResolver

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CollectionPersister
createCollectionPersister(Collection
The mapping information describing the collection
collectionBinding
,
CollectionDataAccess
The cache access strategy for the collection region
cacheAccessStrategy
,
RuntimeModelCreationContext
Access to additional information needed to create an EntityPersister
creationContext
)

Overrides default org.hibernate.persister.spi.PersisterFactory.createCollectionPersister.

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
Create a collection persister instance.
private CollectionPersister
createCollectionPersister(Class<? extends CollectionPersister> persisterClass, Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)

Deprecated as a consequence of PersisterCreationContext being deprecated.
public CollectionPersister
createCollectionPersister(Collection
The mapping information describing the collection
collectionBinding
,
CollectionDataAccess
The cache access strategy for the collection region
cacheAccessStrategy
,
PersisterCreationContext
Access to additional information needed to create an EntityPersister
creationContext
)

Implements org.hibernate.persister.spi.PersisterFactory.createCollectionPersister.

Deprecated as a consequence of PersisterCreationContext being deprecated.
Create a collection persister instance.
public EntityPersister
createEntityPersister(PersistentClass
The mapping information describing the entity
entityBinding
,
EntityDataAccess
The cache access strategy for the entity region
entityCacheAccessStrategy
,
NaturalIdDataAccess
The cache access strategy for the entity's natural-id cross-ref region
naturalIdCacheAccessStrategy
,
RuntimeModelCreationContext
Access to additional information needed to create the EntityPersister
creationContext
)

Overrides default org.hibernate.persister.spi.PersisterFactory.createEntityPersister.

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
Create an entity persister instance.
private EntityPersister
createEntityPersister(Class<? extends EntityPersister> persisterClass, PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
public EntityPersister
createEntityPersister(PersistentClass
The mapping information describing the entity
entityBinding
,
EntityDataAccess
The cache access strategy for the entity region
entityCacheAccessStrategy
,
NaturalIdDataAccess
The cache access strategy for the entity's natural-id cross-ref region
naturalIdCacheAccessStrategy
,
PersisterCreationContext
Access to additional information needed to create an EntityPersister
creationContext
)

Implements org.hibernate.persister.spi.PersisterFactory.createEntityPersister.

Deprecated as a consequence of PersisterCreationContext being deprecated.
Create an entity persister instance.
public void
injectServices(ServiceRegistryImplementor
The registry
serviceRegistry
)

Implements org.hibernate.service.spi.ServiceRegistryAwareService.injectServices.

Callback to inject the registry.
private Constructor<? extends CollectionPersister>
private Constructor<? extends EntityPersister>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COLLECTION_PERSISTER_CONSTRUCTOR_ARGSback to summary
public static final Class<?>[] COLLECTION_PERSISTER_CONSTRUCTOR_ARGS

The constructor signature for CollectionPersister implementations

ENTITY_PERSISTER_CONSTRUCTOR_ARGSback to summary
public static final Class<?>[] ENTITY_PERSISTER_CONSTRUCTOR_ARGS

The constructor signature for EntityPersister implementations

LEGACY_COLLECTION_PERSISTER_CONSTRUCTOR_ARGSback to summary
private static final Class<?>[] LEGACY_COLLECTION_PERSISTER_CONSTRUCTOR_ARGS

Deprecated

since 6.0.

use COLLECTION_PERSISTER_CONSTRUCTOR_ARGS instead

The constructor signature for CollectionPersister implementations

Annotations
@Deprecated
since:6.0
LEGACY_ENTITY_PERSISTER_CONSTRUCTOR_ARGSback to summary
private static final Class<?>[] LEGACY_ENTITY_PERSISTER_CONSTRUCTOR_ARGS

Deprecated

since 6.0.

use ENTITY_PERSISTER_CONSTRUCTOR_ARGS instead

The legacy constructor signature for EntityPersister implementations

Annotations
@Deprecated
since:6.0
persisterClassResolverback to summary
private PersisterClassResolver persisterClassResolver

Constructor Detail

PersisterFactoryImplback to summary
public PersisterFactoryImpl()

Method Detail

createCollectionPersisterback to summary
public CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext)

Overrides default org.hibernate.persister.spi.PersisterFactory.createCollectionPersister.

Doc from org.hibernate.persister.spi.PersisterFactory.createCollectionPersister.

Deprecated

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

Create a collection persister instance.

Parameters
collectionBinding:Collection

The mapping information describing the collection

cacheAccessStrategy:CollectionDataAccess

The cache access strategy for the collection region

creationContext:RuntimeModelCreationContext

Access to additional information needed to create an EntityPersister

Annotations
@Override
createCollectionPersisterback to summary
private CollectionPersister createCollectionPersister(Class<? extends CollectionPersister> persisterClass, Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)

Deprecated

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

createCollectionPersisterback to summary
public CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException

Implements org.hibernate.persister.spi.PersisterFactory.createCollectionPersister.

Doc from org.hibernate.persister.spi.PersisterFactory.createCollectionPersister.

Deprecated

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

Create a collection persister instance.

Parameters
collectionBinding:Collection

The mapping information describing the collection

cacheAccessStrategy:CollectionDataAccess

The cache access strategy for the collection region

creationContext:PersisterCreationContext

Access to additional information needed to create an EntityPersister

Annotations
@Override
createEntityPersisterback to summary
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)

Overrides default org.hibernate.persister.spi.PersisterFactory.createEntityPersister.

Doc from org.hibernate.persister.spi.PersisterFactory.createEntityPersister.

Deprecated

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

Create an entity persister instance.

Parameters
entityBinding:PersistentClass

The mapping information describing the entity

entityCacheAccessStrategy:EntityDataAccess

The cache access strategy for the entity region

naturalIdCacheAccessStrategy:NaturalIdDataAccess

The cache access strategy for the entity's natural-id cross-ref region

creationContext:RuntimeModelCreationContext

Access to additional information needed to create the EntityPersister

Annotations
@Override
createEntityPersisterback to summary
private EntityPersister createEntityPersister(Class<? extends EntityPersister> persisterClass, PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)

Deprecated

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

createEntityPersisterback to summary
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)

Implements org.hibernate.persister.spi.PersisterFactory.createEntityPersister.

Doc from org.hibernate.persister.spi.PersisterFactory.createEntityPersister.

Deprecated

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

Create an entity persister instance.

Parameters
entityBinding:PersistentClass

The mapping information describing the entity

entityCacheAccessStrategy:EntityDataAccess

The cache access strategy for the entity region

naturalIdCacheAccessStrategy:NaturalIdDataAccess

The cache access strategy for the entity's natural-id cross-ref region

creationContext:PersisterCreationContext

Access to additional information needed to create an EntityPersister

Returns:EntityPersister

An appropriate entity persister instance.

Annotations
@Override
injectServicesback to summary
public void injectServices(ServiceRegistryImplementor serviceRegistry)

Implements org.hibernate.service.spi.ServiceRegistryAwareService.injectServices.

Doc from org.hibernate.service.spi.ServiceRegistryAwareService.injectServices.

Callback to inject the registry.

Parameters
serviceRegistry:ServiceRegistryImplementor

The registry

Annotations
@Override
resolveCollectionPersisterConstructorback to summary
private Constructor<? extends CollectionPersister> resolveCollectionPersisterConstructor(Class<? extends CollectionPersister> persisterClass)
resolveEntityPersisterConstructorback to summary
private Constructor<? extends EntityPersister> resolveEntityPersisterConstructor(Class<? extends EntityPersister> persisterClass)