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.mapping.Collection, .PersistentClass, 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<T>[]
COLLECTION_PERSISTER_CONSTRUCTOR_ARGS

The constructor signature for CollectionPersister implementations

public static final Class<T>[]
ENTITY_PERSISTER_CONSTRUCTOR_ARGS

The constructor signature for EntityPersister implementations

private ServiceRegistryImplementor

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
,
PersisterCreationContext
Access to additional information needed to create an EntityPersister
creationContext
)

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

Create a collection persister instance.
private CollectionPersister
createCollectionPersister(Class<? extends CollectionPersister> persisterClass, Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)

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.

Create an entity persister instance.
private EntityPersister
createEntityPersister(Class<? extends EntityPersister> persisterClass, PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)

public void
injectServices(ServiceRegistryImplementor
The registry
serviceRegistry
)

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

Callback to inject the registry.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

The constructor signature for CollectionPersister implementations

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

The constructor signature for EntityPersister implementations

serviceRegistryback to summary
private ServiceRegistryImplementor serviceRegistry

Constructor Detail

PersisterFactoryImplback to summary
public PersisterFactoryImpl()

Method Detail

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.

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

Returns:CollectionPersister

An appropriate collection persister instance.

Annotations
@Override
@SuppressWarnings:unchecked
Exceptions
HibernateException:
Indicates a problem building the persister.
createCollectionPersisterback to summary
private CollectionPersister createCollectionPersister(Class<? extends CollectionPersister> persisterClass, Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)
Annotations
@SuppressWarnings:unchecked
createEntityPersisterback to summary
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException

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

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

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
@SuppressWarnings:unchecked
Exceptions
HibernateException:
Indicates a problem building the persister.
createEntityPersisterback to summary
private EntityPersister createEntityPersister(Class<? extends EntityPersister> persisterClass, PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext)
Annotations
@SuppressWarnings:unchecked
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