Top Description Methods
org.hibernate.persister.spi

public Interface PersisterFactory

extends Service
Known Direct Implementers
org.hibernate.persister.internal.PersisterFactoryImpl
Imports
org.hibernate.HibernateException, 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.service.Service

Contract for creating persister instances (both EntityPersister and CollectionPersister varieties).
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public CollectionPersister

Returns:

An appropriate collection persister instance.
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
)

Create a collection persister instance.

public EntityPersister

Returns:

An appropriate entity persister instance.
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
)

Create an entity persister instance.

Method Detail

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

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.

Exceptions
HibernateException:
Indicates a problem building the persister.
createEntityPersisterback to summary
public EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, PersisterCreationContext creationContext) throws HibernateException

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.

Exceptions
HibernateException:
Indicates a problem building the persister.