Uses of Interface
org.hibernate.persister.collection.CollectionPersister
-
-
Uses of CollectionPersister in org.hibernate.cache.spi
Methods in org.hibernate.cache.spi with parameters of type CollectionPersister Modifier and Type Method Description java.lang.Object
CacheKeysFactory. createCollectionKey(java.lang.Object id, CollectionPersister persister, SessionFactoryImplementor factory, java.lang.String tenantIdentifier)
-
Uses of CollectionPersister in org.hibernate.cache.spi.access
Methods in org.hibernate.cache.spi.access with parameters of type CollectionPersister Modifier and Type Method Description java.lang.Object
CollectionDataAccess. generateCacheKey(java.lang.Object id, CollectionPersister collectionDescriptor, SessionFactoryImplementor factory, java.lang.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 CollectionPersister Modifier and Type Method Description void
CollectionCacheEntry. assemble(PersistentCollection collection, CollectionPersister persister, java.lang.Object owner)
Assembles the collection from the cached state.Constructors in org.hibernate.cache.spi.entry with parameters of type CollectionPersister Constructor Description CollectionCacheEntry(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 CollectionPersister Modifier and Type Method Description java.lang.Object
AbstractCollectionDataAccess. generateCacheKey(java.lang.Object id, CollectionPersister persister, SessionFactoryImplementor factory, java.lang.String tenantIdentifier)
java.lang.Object
CollectionReadWriteAccess. generateCacheKey(java.lang.Object id, CollectionPersister collectionDescriptor, SessionFactoryImplementor factory, java.lang.String tenantIdentifier)
-
Uses of CollectionPersister in org.hibernate.collection.spi
Methods in org.hibernate.collection.spi with parameters of type CollectionPersister Modifier and Type Method Description void
PersistentCollection. afterRowInsert(CollectionPersister persister, java.lang.Object entry, int i)
Called after inserting a row, to fetch the natively generated idvoid
PersistentCollection. beforeInitialize(CollectionPersister persister, int anticipatedSize)
Called before any elements are read into the collection, allowing appropriate initializations to occur.java.io.Serializable
PersistentCollection. disassemble(CollectionPersister persister)
Disassemble the collection to get it ready for the cachejava.util.Iterator
PersistentCollection. entries(CollectionPersister persister)
Iterate all collection entries, during update of the databaseboolean
PersistentCollection. equalsSnapshot(CollectionPersister persister)
Does the current state exactly match the snapshot?java.util.Iterator
PersistentCollection. getDeletes(CollectionPersister persister, boolean indexIsFormula)
Get all the elements that need deletingjava.lang.Object
PersistentCollection. getIndex(java.lang.Object entry, int i, CollectionPersister persister)
Get the index of the given collection entryjava.io.Serializable
PersistentCollection. getSnapshot(CollectionPersister persister)
Return a new snapshot of the current state of the collectionvoid
PersistentCollection. initializeFromCache(CollectionPersister persister, java.io.Serializable disassembled, java.lang.Object owner)
Read the state of the collection from a disassembled cached valueboolean
PersistentCollection. needsRecreate(CollectionPersister persister)
Do we need to completely recreate this collection when it changes?void
PersistentCollection. preInsert(CollectionPersister persister)
Called before inserting rows, to ensure that any surrogate keys are fully generatedjava.lang.Object
PersistentCollection. readFrom(java.sql.ResultSet rs, CollectionPersister role, CollectionAliases descriptor, java.lang.Object owner)
Read a row from the JDBC result set -
Uses of CollectionPersister in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return CollectionPersister Modifier and Type Method Description CollectionPersister
SessionFactoryDelegatingImpl. getCollectionPersister(java.lang.String role)
default CollectionPersister
SessionFactoryImplementor. getCollectionPersister(java.lang.String role)
Deprecated.(since 5.2) UseMetamodelImplementor.collectionPersister(String)
instead.CollectionPersister
CollectionEntry. getCurrentPersister()
CollectionPersister
CollectionEntry. getLoadedPersister()
This is only available late during the flush cycleMethods in org.hibernate.engine.spi that return types with arguments of type CollectionPersister Modifier and Type Method Description java.util.Map<java.lang.String,CollectionPersister>
SessionFactoryDelegatingImpl. getCollectionPersisters()
default java.util.Map<java.lang.String,CollectionPersister>
SessionFactoryImplementor. getCollectionPersisters()
Deprecated.(since 5.2) UseMetamodelImplementor.collectionPersisters()
instead.Methods in org.hibernate.engine.spi with parameters of type CollectionPersister Modifier and Type Method Description CollectionEntry
PersistenceContext. addInitializedCollection(CollectionPersister persister, PersistentCollection collection, java.io.Serializable 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, java.io.Serializable id)
add a collection we just loaded up (still needs initializing)void
PersistenceContext. addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection collection)
add a detached uninitialized collectionjava.io.Serializable[]
BatchFetchQueue. getCollectionBatch(CollectionPersister collectionPersister, java.io.Serializable id, int batchSize)
Get a batch of uninitialized collection keys for a given rolejava.lang.Object
PersistenceContext. getCollectionOwner(java.io.Serializable key, CollectionPersister collectionPersister)
Get the entity that owns this persistent collectionvoid
CollectionEntry. setCurrentPersister(CollectionPersister currentPersister)
Constructors in org.hibernate.engine.spi with parameters of type CollectionPersister Constructor Description CollectionEntry(PersistentCollection collection, CollectionPersister loadedPersister, java.io.Serializable loadedKey, boolean ignore)
For collections just loaded from the databaseCollectionEntry(CollectionPersister loadedPersister, java.io.Serializable loadedKey)
For uninitialized detached collectionsCollectionEntry(CollectionPersister persister, PersistentCollection collection)
For newly wrapped collections, or dereferenced collection wrappersCollectionKey(CollectionPersister persister, java.io.Serializable key)
CollectionKey(CollectionPersister persister, java.io.Serializable key, EntityMode em)
Deprecated. -
Uses of CollectionPersister in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return CollectionPersister Modifier and Type Method Description protected static CollectionPersister
AbstractCollectionEvent. getLoadedCollectionPersister(PersistentCollection collection, EventSource source)
Methods in org.hibernate.event.spi with parameters of type CollectionPersister Modifier and Type Method Description protected static java.lang.String
AbstractCollectionEvent. getAffectedOwnerEntityName(CollectionPersister collectionPersister, java.lang.Object affectedOwner, EventSource source)
-
Uses of CollectionPersister in org.hibernate.loader
Fields in org.hibernate.loader declared as CollectionPersister Modifier and Type Field Description protected CollectionPersister[]
JoinWalker. collectionPersisters
protected CollectionPersister[]
OuterJoinLoader. collectionPersisters
Methods in org.hibernate.loader that return CollectionPersister Modifier and Type Method Description CollectionPersister[]
JoinWalker. getCollectionPersisters()
protected CollectionPersister[]
Loader. getCollectionPersisters()
An (optional) persister for a collection to be initialized; only collection loaders return a non-null valueprotected CollectionPersister[]
OuterJoinLoader. getCollectionPersisters()
Methods in org.hibernate.loader with parameters of type CollectionPersister Modifier and Type Method Description void
JoinWalker. setCollectionPersisters(CollectionPersister[] collectionPersisters)
Constructors in org.hibernate.loader with parameters of type CollectionPersister Constructor Description GeneratedCollectionAliases(java.util.Map userProvidedAliases, CollectionPersister persister, java.lang.String suffix)
GeneratedCollectionAliases(CollectionPersister persister, java.lang.String string)
-
Uses of CollectionPersister in org.hibernate.loader.collection
Methods in org.hibernate.loader.collection that return CollectionPersister Modifier and Type Method Description CollectionPersister
BatchingCollectionInitializer. getCollectionPersister()
-
Uses of CollectionPersister in org.hibernate.loader.collection.plan
Methods in org.hibernate.loader.collection.plan that return CollectionPersister Modifier and Type Method Description CollectionPersister
BatchingCollectionInitializer. getCollectionPersister()
-
Uses of CollectionPersister in org.hibernate.loader.custom
Methods in org.hibernate.loader.custom that return CollectionPersister Modifier and Type Method Description protected CollectionPersister[]
CustomLoader. getCollectionPersisters()
-
Uses of CollectionPersister in org.hibernate.loader.hql
Methods in org.hibernate.loader.hql that return CollectionPersister Modifier and Type Method Description protected CollectionPersister[]
QueryLoader. getCollectionPersisters()
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value -
Uses of CollectionPersister in org.hibernate.loader.plan.build.spi
Methods in org.hibernate.loader.plan.build.spi with parameters of type CollectionPersister Modifier and Type Method Description static LoadPlan
MetamodelDrivenLoadPlanBuilder. buildRootCollectionLoadPlan(LoadPlanBuildingAssociationVisitationStrategy strategy, CollectionPersister persister)
Coordinates building a LoadPlan that defines just a single root collection return (may have fetches).ExpandingCollectionQuerySpace
ExpandingQuerySpaces. makeCollectionQuerySpace(java.lang.String uid, CollectionPersister collectionPersister, boolean canJoinsBeRequired)
Create anExpandingCollectionQuerySpace
for a collection (that is not a "return") with the specified unique ID.ExpandingCollectionQuerySpace
ExpandingQuerySpaces. makeRootCollectionQuerySpace(java.lang.String uid, CollectionPersister collectionPersister)
Create anExpandingCollectionQuerySpace
for a collection "return" with the specified unique ID. -
Uses of CollectionPersister in org.hibernate.loader.plan.spi
Methods in org.hibernate.loader.plan.spi that return CollectionPersister Modifier and Type Method Description CollectionPersister
CollectionQuerySpace. getCollectionPersister()
Retrieve the collection persister this QuerySpace refers to.CollectionPersister
CollectionReference. getCollectionPersister()
Retrieves the CollectionPersister describing the collection associated with this CollectionReference. -
Uses of CollectionPersister in org.hibernate.metamodel.spi
Methods in org.hibernate.metamodel.spi that return CollectionPersister Modifier and Type Method Description CollectionPersister
MetamodelImplementor. collectionPersister(java.lang.String role)
Get the persister object for a collection role.Methods in org.hibernate.metamodel.spi that return types with arguments of type CollectionPersister Modifier and Type Method Description java.util.Map<java.lang.String,CollectionPersister>
MetamodelImplementor. collectionPersisters()
Get all collection persisters as a Map, which collection role as the key and the persister is the value. -
Uses of CollectionPersister in org.hibernate.persister.collection
Subinterfaces of CollectionPersister in org.hibernate.persister.collection Modifier and Type Interface Description interface
QueryableCollection
A collection role that may be queried or loaded by outer join.interface
SQLLoadableCollection
Classes in org.hibernate.persister.collection that implement CollectionPersister Modifier and Type Class Description class
AbstractCollectionPersister
Base implementation of the QueryableCollection interface.class
BasicCollectionPersister
Collection persister for collections of values and many-to-many associations.class
OneToManyPersister
Collection persister for one-to-many associations.Methods in org.hibernate.persister.collection that return CollectionPersister Modifier and Type Method Description CollectionPersister
AbstractCollectionPersister. getCollectionPersister()
Constructors in org.hibernate.persister.collection with parameters of type CollectionPersister Constructor Description NamedQueryCollectionInitializer(java.lang.String queryName, CollectionPersister persister)
-
Uses of CollectionPersister in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type CollectionPersister Modifier and Type Method Description protected java.io.Serializable
AbstractEntityPersister. getCollectionKey(CollectionPersister persister, java.lang.Object owner, EntityEntry ownerEntry, SharedSessionContractImplementor session)
-
Uses of CollectionPersister in org.hibernate.persister.spi
Methods in org.hibernate.persister.spi that return CollectionPersister Modifier and Type Method Description CollectionPersister
PersisterFactory. createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)
Create a collection persister instance.Methods in org.hibernate.persister.spi that return types with arguments of type CollectionPersister Modifier and Type Method Description java.lang.Class<? 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.persister.walking.spi
Methods in org.hibernate.persister.walking.spi that return CollectionPersister Modifier and Type Method Description CollectionPersister
CollectionDefinition. getCollectionPersister()
Methods in org.hibernate.persister.walking.spi with parameters of type CollectionPersister Modifier and Type Method Description static void
MetamodelGraphWalker. visitCollection(AssociationVisitationStrategy strategy, CollectionPersister persister)
Entry point into walking the model graph of a collection according to its defined metamodel. -
Uses of CollectionPersister in org.hibernate.pretty
Methods in org.hibernate.pretty with parameters of type CollectionPersister Modifier and Type Method Description static java.lang.String
MessageHelper. collectionInfoString(CollectionPersister persister, java.io.Serializable[] ids, SessionFactoryImplementor factory)
Generate an info message string relating to a series of managed collections.static java.lang.String
MessageHelper. collectionInfoString(CollectionPersister persister, java.io.Serializable id, SessionFactoryImplementor factory)
Generate an info message string relating to a particular managed collection.static java.lang.String
MessageHelper. collectionInfoString(CollectionPersister persister, PersistentCollection collection, java.io.Serializable collectionKey, SharedSessionContractImplementor session)
Generate an info message string relating to a particular managed collection. -
Uses of CollectionPersister in org.hibernate.type
-
Uses of CollectionPersister in org.hibernate.usertype
Methods in org.hibernate.usertype with parameters of type CollectionPersister Modifier and Type Method Description PersistentCollection
UserCollectionType. instantiate(SharedSessionContractImplementor session, CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapperjava.lang.Object
UserCollectionType. replaceElements(java.lang.Object original, java.lang.Object target, CollectionPersister persister, java.lang.Object owner, java.util.Map copyCache, SharedSessionContractImplementor session)
Replace the elements of a collection with the elements of another collection
-