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.metamodel.spi.RuntimeModelCreationContext, 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 default 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
)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
Create a collection persister instance.
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
)

Create a collection persister instance.
public default 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
)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
Create an entity 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 default CollectionPersister createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext)

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

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

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
@Deprecated
since:6.0
createEntityPersisterback to summary
public default EntityPersister createEntityPersister(PersistentClass entityBinding, EntityDataAccess entityCacheAccessStrategy, NaturalIdDataAccess naturalIdCacheAccessStrategy, RuntimeModelCreationContext creationContext)

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

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.

Annotations
@Deprecated
since:6.0