Uses of Interface
org.hibernate.persister.collection.CollectionPersister
Packages that use CollectionPersister
Package
Description
Defines the integration aspect of Hibernate's second-level caching, allowing
a "caching backend" to be plugged in as a cache provider.
Defines contracts for transactional and concurrent access to cached
entity and
collection data.
This package defines formats for disassembled state kept in the second level cache.
This package provides a framework intended to reduce the work needed to implement
a caching provider.
This package defines the SPI of a framework for lazy-initializing
and state-tracking collection wrappers.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
An SPI for services which collect, report, or monitor diagnostic events.
Defines the event types and event listener interfaces for
events produced by the stateful
Session
.This package defines an API for accessing the runtime metamodel describing persistent
entities in Java and their mappings to the relational database schema.
Defines the runtime mapping metamodel, which describes the mapping
of the application's domain model parts (entities, attributes) to
relational database objects (tables, columns).
This package abstracts persistence mechanisms for collections.
This package abstracts persistence mechanisms for entities.
An SPI for integrating custom entity and collection persisters.
Contains some functions for pretty-printing things for exception and log messages.
A Hibernate
Type
is a strategy for mapping a Java
property type to a JDBC type or types.An API for user-defined custom types which extend the set of built-in
types defined in
org.hibernate.type
.-
Uses of CollectionPersister in org.hibernate.cache.spi
Methods in org.hibernate.cache.spi with parameters of type CollectionPersisterModifier and TypeMethodDescriptionCacheKeysFactory.createCollectionKey
(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) -
Uses of CollectionPersister in org.hibernate.cache.spi.access
Methods in org.hibernate.cache.spi.access with parameters of type CollectionPersisterModifier and TypeMethodDescriptionCollectionDataAccess.generateCacheKey
(Object id, CollectionPersister collectionDescriptor, SessionFactoryImplementor factory, String tenantIdentifier) To create instances of CollectionCacheKey for this region, Hibernate will invoke this method exclusively so that generated implementations can generate optimised keys. -
Uses of CollectionPersister in org.hibernate.cache.spi.entry
Methods in org.hibernate.cache.spi.entry with parameters of type CollectionPersisterModifier and TypeMethodDescriptionvoid
CollectionCacheEntry.assemble
(PersistentCollection<?> collection, CollectionPersister persister, Object owner) Assembles the collection from the cached state.Constructors in org.hibernate.cache.spi.entry with parameters of type CollectionPersisterModifierConstructorDescriptionCollectionCacheEntry
(PersistentCollection<?> collection, CollectionPersister persister) Constructs a CollectionCacheEntry -
Uses of CollectionPersister in org.hibernate.cache.spi.support
Methods in org.hibernate.cache.spi.support with parameters of type CollectionPersisterModifier and TypeMethodDescriptionAbstractCollectionDataAccess.generateCacheKey
(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) CollectionReadWriteAccess.generateCacheKey
(Object id, CollectionPersister collectionDescriptor, SessionFactoryImplementor factory, String tenantIdentifier) -
Uses of CollectionPersister in org.hibernate.collection.spi
Methods in org.hibernate.collection.spi with parameters of type CollectionPersisterModifier and TypeMethodDescriptionvoid
AbstractPersistentCollection.afterRowInsert
(CollectionPersister persister, Object entry, int i) void
PersistentCollection.afterRowInsert
(CollectionPersister persister, Object entry, int i) Called after inserting a row, to fetch the natively generated idvoid
PersistentIdentifierBag.afterRowInsert
(CollectionPersister persister, Object entry, int i) void
AbstractPersistentCollection.beforeInitialize
(CollectionPersister persister, int anticipatedSize) void
PersistentCollection.beforeInitialize
(CollectionPersister persister, int anticipatedSize) Called prior to the initialization of this yet-uninitialized collection.static void
AbstractPersistentCollection.checkPersister
(PersistentCollection<?> collection, CollectionPersister persister) PersistentArrayHolder.disassemble
(CollectionPersister persister) PersistentBag.disassemble
(CollectionPersister persister) PersistentCollection.disassemble
(CollectionPersister persister) Disassemble the collection to get it ready for the cachePersistentIdentifierBag.disassemble
(CollectionPersister persister) PersistentList.disassemble
(CollectionPersister persister) PersistentMap.disassemble
(CollectionPersister persister) PersistentSet.disassemble
(CollectionPersister persister) Iterator
<?> PersistentArrayHolder.entries
(CollectionPersister persister) PersistentBag.entries
(CollectionPersister persister) Iterator
<?> PersistentCollection.entries
(CollectionPersister persister) Iterate all collection entries, during update of the databasePersistentIdentifierBag.entries
(CollectionPersister persister) PersistentList.entries
(CollectionPersister persister) PersistentMap.entries
(CollectionPersister persister) PersistentSet.entries
(CollectionPersister persister) boolean
PersistentArrayHolder.equalsSnapshot
(CollectionPersister persister) boolean
PersistentBag.equalsSnapshot
(CollectionPersister persister) boolean
PersistentCollection.equalsSnapshot
(CollectionPersister persister) Does the current state exactly match the snapshot?boolean
PersistentIdentifierBag.equalsSnapshot
(CollectionPersister persister) boolean
PersistentList.equalsSnapshot
(CollectionPersister persister) boolean
PersistentMap.equalsSnapshot
(CollectionPersister persister) boolean
PersistentSet.equalsSnapshot
(CollectionPersister persister) Iterator
<?> PersistentArrayHolder.getDeletes
(CollectionPersister persister, boolean indexIsFormula) Iterator
<?> PersistentBag.getDeletes
(CollectionPersister persister, boolean indexIsFormula) Iterator
<?> PersistentCollection.getDeletes
(CollectionPersister persister, boolean indexIsFormula) Get all the elements that need deletingIterator
<?> PersistentIdentifierBag.getDeletes
(CollectionPersister persister, boolean indexIsFormula) Iterator
<?> PersistentList.getDeletes
(CollectionPersister persister, boolean indexIsFormula) Iterator
<?> PersistentMap.getDeletes
(CollectionPersister persister, boolean indexIsFormula) Iterator
<?> PersistentSet.getDeletes
(CollectionPersister persister, boolean indexIsFormula) PersistentArrayHolder.getIndex
(Object entry, int i, CollectionPersister persister) PersistentBag.getIndex
(Object entry, int i, CollectionPersister persister) PersistentCollection.getIndex
(Object entry, int i, CollectionPersister persister) Get the index of the given collection entryPersistentIdentifierBag.getIndex
(Object entry, int i, CollectionPersister persister) PersistentList.getIndex
(Object entry, int i, CollectionPersister persister) PersistentMap.getIndex
(Object entry, int i, CollectionPersister persister) PersistentSet.getIndex
(Object entry, int i, CollectionPersister persister) PersistentArrayHolder.getSnapshot
(CollectionPersister persister) PersistentBag.getSnapshot
(CollectionPersister persister) PersistentCollection.getSnapshot
(CollectionPersister persister) Return a new snapshot of the current state of the collectionPersistentIdentifierBag.getSnapshot
(CollectionPersister persister) PersistentList.getSnapshot
(CollectionPersister persister) PersistentMap.getSnapshot
(CollectionPersister persister) PersistentSet.getSnapshot
(CollectionPersister persister) boolean
PersistentArrayHolder.hasDeletes
(CollectionPersister persister) boolean
PersistentBag.hasDeletes
(CollectionPersister persister) boolean
PersistentCollection.hasDeletes
(CollectionPersister persister) Does this collection have any elements which must be deleted?boolean
PersistentIdentifierBag.hasDeletes
(CollectionPersister persister) boolean
PersistentList.hasDeletes
(CollectionPersister persister) boolean
PersistentMap.hasDeletes
(CollectionPersister persister) boolean
PersistentSet.hasDeletes
(CollectionPersister persister) void
PersistentArrayHolder.initializeEmptyCollection
(CollectionPersister persister) void
PersistentBag.initializeEmptyCollection
(CollectionPersister persister) void
PersistentCollection.initializeEmptyCollection
(CollectionPersister persister) void
PersistentIdentifierBag.initializeEmptyCollection
(CollectionPersister persister) void
PersistentList.initializeEmptyCollection
(CollectionPersister persister) void
PersistentMap.initializeEmptyCollection
(CollectionPersister persister) void
PersistentSet.initializeEmptyCollection
(CollectionPersister persister) void
PersistentArrayHolder.initializeFromCache
(CollectionPersister persister, Object disassembled, Object owner) void
PersistentBag.initializeFromCache
(CollectionPersister collectionDescriptor, Object disassembled, Object owner) void
PersistentCollection.initializeFromCache
(CollectionPersister persister, Object disassembled, Object owner) Read the state of the collection from a disassembled cached valuevoid
PersistentIdentifierBag.initializeFromCache
(CollectionPersister persister, Object disassembled, Object owner) void
PersistentList.initializeFromCache
(CollectionPersister persister, Object disassembled, Object owner) void
PersistentMap.initializeFromCache
(CollectionPersister persister, Object disassembled, Object owner) void
PersistentSet.initializeFromCache
(CollectionPersister persister, Object disassembled, Object owner) AbstractBagSemantics.instantiateRaw
(int anticipatedSize, CollectionPersister collectionDescriptor) CollectionSemantics.instantiateRaw
(int anticipatedSize, CollectionPersister collectionDescriptor) Create a raw (unwrapped) version of the collectionCollectionSemantics.instantiateWrapper
(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session) Create a wrapper for the collectionboolean
AbstractPersistentCollection.needsRecreate
(CollectionPersister persister) boolean
PersistentBag.needsRecreate
(CollectionPersister persister) boolean
PersistentCollection.needsRecreate
(CollectionPersister persister) Do we need to completely recreate this collection when it changes?void
AbstractPersistentCollection.preInsert
(CollectionPersister persister) void
PersistentCollection.preInsert
(CollectionPersister persister) Called before inserting rows, to ensure that any surrogate keys are fully generatedvoid
PersistentIdentifierBag.preInsert
(CollectionPersister persister) void
AbstractPersistentCollection.AbstractValueDelayedOperation.replace
(CollectionPersister persister, Map<Object, Object> copyCache) void
AbstractPersistentCollection.ValueDelayedOperation.replace
(CollectionPersister collectionPersister, Map<Object, Object> copyCache) final void
AbstractPersistentCollection.replaceQueuedOperationValues
(CollectionPersister persister, Map<Object, Object> copyCache) Replace entity instances with copy incopyCache
.CollectionSemantics.wrap
(CE rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session) Wrap a raw collection in wrapperConstructors in org.hibernate.collection.spi with parameters of type CollectionPersisterModifierConstructorDescriptionPersistentArrayHolder
(SharedSessionContractImplementor session, CollectionPersister persister) Constructs a PersistentCollection instance for holding an array. -
Uses of CollectionPersister in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return CollectionPersisterModifier and TypeMethodDescription@Nullable CollectionPersister
CollectionEntry.getCurrentPersister()
@Nullable CollectionPersister
CollectionEntry.getLoadedPersister()
This is only available late during the flush cycleMethods in org.hibernate.engine.spi with parameters of type CollectionPersisterModifier and TypeMethodDescriptionPersistenceContext.addInitializedCollection
(CollectionPersister persister, PersistentCollection<?> collection, Object id) add a collection we just pulled out of the cache (does not need initializing)void
PersistenceContext.addInitializedDetachedCollection
(CollectionPersister collectionPersister, PersistentCollection<?> collection) add an (initialized) collection that was created by another session and passed into update() (ie.void
PersistenceContext.addNewCollection
(CollectionPersister persister, PersistentCollection<?> collection) Add a new collection (ie.void
PersistenceContext.addUninitializedCollection
(CollectionPersister persister, PersistentCollection<?> collection, Object id) add a collection we just loaded up (still needs initializing)void
PersistenceContext.addUninitializedDetachedCollection
(CollectionPersister persister, PersistentCollection<?> collection) add a detached uninitialized collectionint
LoadQueryInfluencers.effectiveBatchSize
(CollectionPersister persister) boolean
LoadQueryInfluencers.effectivelyBatchLoadable
(CollectionPersister persister) boolean
LoadQueryInfluencers.effectiveSubselectFetchEnabled
(CollectionPersister persister) Object[]
BatchFetchQueue.getCollectionBatch
(CollectionPersister collectionPersister, Object id, int batchSize) Get a batch of uninitialized collection keys for a given rolePersistenceContext.getCollectionOwner
(Object key, CollectionPersister collectionPersister) Get the entity that owns this persistent collectionvoid
PersistenceContext.replaceCollection
(CollectionPersister persister, PersistentCollection<?> oldCollection, PersistentCollection<?> collection) Replaces a directly accessible collection with the given onevoid
CollectionEntry.setCurrentPersister
(@Nullable CollectionPersister currentPersister) Constructors in org.hibernate.engine.spi with parameters of type CollectionPersisterModifierConstructorDescriptionCollectionEntry
(PersistentCollection<?> collection, CollectionPersister loadedPersister, Object loadedKey, boolean ignore) For collections just loaded from the databaseCollectionEntry
(CollectionPersister loadedPersister, Object loadedKey) For uninitialized detached collectionsCollectionEntry
(CollectionPersister persister, PersistentCollection<?> collection) For newly wrapped collections, or dereferenced collection wrappersCollectionKey
(CollectionPersister persister, Object key) -
Uses of CollectionPersister in org.hibernate.event.monitor.spi
Methods in org.hibernate.event.monitor.spi with parameters of type CollectionPersisterModifier and TypeMethodDescriptionvoid
EventMonitor.completeCacheGetEvent
(DiagnosticEvent cacheGetEvent, SharedSessionContractImplementor session, Region region, CollectionPersister persister, boolean hit) void
EventMonitor.completeCachePutEvent
(DiagnosticEvent cachePutEvent, SharedSessionContractImplementor session, CachedDomainDataAccess cachedDomainDataAccess, CollectionPersister persister, boolean cacheContentChanged, EventMonitor.CacheActionDescription description) -
Uses of CollectionPersister in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return CollectionPersisterModifier and TypeMethodDescriptionprotected static CollectionPersister
AbstractCollectionEvent.getLoadedCollectionPersister
(PersistentCollection<?> collection, EventSource source) Methods in org.hibernate.event.spi with parameters of type CollectionPersisterModifier and TypeMethodDescriptionprotected static String
AbstractCollectionEvent.getAffectedOwnerEntityName
(CollectionPersister collectionPersister, Object affectedOwner, EventSource source) Constructors in org.hibernate.event.spi with parameters of type CollectionPersisterModifierConstructorDescriptionAbstractCollectionEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object affectedOwner, Object affectedOwnerId) Constructs an instance for a stateful session.PostCollectionRecreateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) PostCollectionRemoveEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object loadedOwner) PostCollectionUpdateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) PreCollectionRecreateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) PreCollectionRemoveEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object loadedOwner) PreCollectionUpdateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) -
Uses of CollectionPersister in org.hibernate.metamodel
Methods in org.hibernate.metamodel that return CollectionPersisterModifier and TypeMethodDescriptionMappingMetamodel.findCollectionDescriptor
(String role) Find a collection mapping descriptor based on its role.MappingMetamodel.findCollectionDescriptor
(NavigableRole role) Find a collection mapping descriptor based on its role.MappingMetamodel.getCollectionDescriptor
(String role) Get a collection mapping descriptor based on its roleMappingMetamodel.getCollectionDescriptor
(NavigableRole role) Get a collection mapping descriptor based on its roleMethods in org.hibernate.metamodel that return types with arguments of type CollectionPersisterModifier and TypeMethodDescriptionMappingMetamodel.streamCollectionDescriptors()
Deprecated, for removal: This API element is subject to removal in a future version.Method parameters in org.hibernate.metamodel with type arguments of type CollectionPersisterModifier and TypeMethodDescriptionvoid
MappingMetamodel.forEachCollectionDescriptor
(Consumer<CollectionPersister> action) Visit the mapping descriptors for all collections defined in the model -
Uses of CollectionPersister in org.hibernate.metamodel.mapping
Methods in org.hibernate.metamodel.mapping that return CollectionPersister -
Uses of CollectionPersister in org.hibernate.persister.collection
Classes in org.hibernate.persister.collection that implement CollectionPersisterModifier and TypeClassDescriptionclass
Base implementation of theQueryableCollection
interface.class
class
Methods in org.hibernate.persister.collection with parameters of type CollectionPersisterModifier and TypeMethodDescriptionprotected CollectionLoader
AbstractCollectionPersister.createNamedQueryCollectionLoader
(CollectionPersister persister, NamedQueryMemento<?> namedQueryMemento) For Hibernate Reactive -
Uses of CollectionPersister in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type CollectionPersisterModifier and TypeMethodDescriptionstatic @Nullable Object
AbstractEntityPersister.getCollectionKey
(CollectionPersister persister, Object owner, EntityEntry ownerEntry, SharedSessionContractImplementor session) -
Uses of CollectionPersister in org.hibernate.persister.spi
Methods in org.hibernate.persister.spi that return CollectionPersisterModifier and TypeMethodDescriptionPersisterFactory.createCollectionPersister
(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext) Create a collection persister instance.Methods in org.hibernate.persister.spi that return types with arguments of type CollectionPersisterModifier and TypeMethodDescriptionClass
<? extends CollectionPersister> PersisterClassResolver.getCollectionPersisterClass
(Collection metadata) Returns the collection persister class for a given collection role or null if the collection persister class should be the default. -
Uses of CollectionPersister in org.hibernate.pretty
Methods in org.hibernate.pretty with parameters of type CollectionPersisterModifier and TypeMethodDescriptionstatic String
MessageHelper.collectionInfoString
(@Nullable CollectionPersister persister, @Nullable Object id, SessionFactoryImplementor factory) Generate an info message string relating to a particular managed collection.static String
MessageHelper.collectionInfoString
(@Nullable CollectionPersister persister, Object[] ids, SessionFactoryImplementor factory) Generate an info message string relating to a series of managed collections.static String
MessageHelper.collectionInfoString
(@Nullable CollectionPersister persister, @Nullable PersistentCollection<?> collection, Object collectionKey, SharedSessionContractImplementor session) Generate an info message string relating to a particular managed collection. -
Uses of CollectionPersister in org.hibernate.sql.results.graph.collection
Methods in org.hibernate.sql.results.graph.collection that return CollectionPersisterModifier and TypeMethodDescriptionLoadingCollectionEntry.getCollectionDescriptor()
The descriptor for the collection being loadeddefault CollectionPersister
CollectionInitializer.getInitializingCollectionDescriptor()
-
Uses of CollectionPersister in org.hibernate.type
Methods in org.hibernate.type with parameters of type CollectionPersisterModifier and TypeMethodDescriptionArrayType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) BagType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) abstract PersistentCollection
<?> CollectionType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) Instantiate an uninitialized collection wrapper or holder.CustomCollectionType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) IdentifierBagType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) ListType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) MapType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) SetType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) SortedMapType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) SortedSetType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister, Object key) -
Uses of CollectionPersister in org.hibernate.usertype
Methods in org.hibernate.usertype with parameters of type CollectionPersisterModifier and TypeMethodDescriptionUserCollectionType.instantiate
(SharedSessionContractImplementor session, CollectionPersister persister) Instantiate an uninitialized instance of the collection wrapperUserCollectionType.replaceElements
(Object original, Object target, CollectionPersister persister, Object owner, Map copyCache, SharedSessionContractImplementor session) Replace the elements of a collection with the elements of another collection