Uses of Interface
org.hibernate.persister.collection.CollectionPersister
-
Packages that use CollectionPersister Package Description org.hibernate.cache.spi Defines the integration aspect of Hibernate's second-level caching allowing "caching back ends" to be plugged in as a caching provider.org.hibernate.cache.spi.access org.hibernate.cache.spi.entry org.hibernate.cache.spi.support Package intended for simplifying the worked needed to implement a caching provider.org.hibernate.collection.spi SPI definitions for persistent collectionsorg.hibernate.engine.spi org.hibernate.event.spi org.hibernate.mapping org.hibernate.metamodel org.hibernate.metamodel.mapping Hibernate's run-time mapping model.org.hibernate.metamodel.spi org.hibernate.persister.collection org.hibernate.persister.entity org.hibernate.persister.spi org.hibernate.pretty org.hibernate.sql.results.graph.collection org.hibernate.type org.hibernate.usertype -
-
Uses of CollectionPersister in org.hibernate.cache.spi
Methods in org.hibernate.cache.spi with parameters of type CollectionPersister Modifier and Type Method Description ObjectCacheKeysFactory. 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 CollectionPersister Modifier and Type Method Description ObjectCollectionDataAccess. 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 CollectionPersister Modifier and Type Method Description voidCollectionCacheEntry. 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 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 ObjectAbstractCollectionDataAccess. generateCacheKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)ObjectCollectionReadWriteAccess. 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 CollectionPersister Modifier and Type Method Description voidAbstractPersistentCollection. afterRowInsert(CollectionPersister persister, Object entry, int i)voidPersistentCollection. afterRowInsert(CollectionPersister persister, Object entry, int i)Called after inserting a row, to fetch the natively generated idvoidPersistentIdentifierBag. afterRowInsert(CollectionPersister persister, Object entry, int i)voidAbstractPersistentCollection. beforeInitialize(CollectionPersister persister, int anticipatedSize)voidPersistentCollection. beforeInitialize(CollectionPersister persister, int anticipatedSize)Called prior to the initialization of this yet-uninitialized collection.ObjectPersistentArrayHolder. disassemble(CollectionPersister persister)ObjectPersistentBag. disassemble(CollectionPersister persister)ObjectPersistentCollection. disassemble(CollectionPersister persister)Disassemble the collection to get it ready for the cacheObjectPersistentIdentifierBag. disassemble(CollectionPersister persister)ObjectPersistentList. disassemble(CollectionPersister persister)ObjectPersistentMap. disassemble(CollectionPersister persister)ObjectPersistentSet. disassemble(CollectionPersister persister)IteratorPersistentArrayHolder. entries(CollectionPersister persister)Iterator<E>PersistentBag. entries(CollectionPersister persister)Iterator<?>PersistentCollection. entries(CollectionPersister persister)Iterate all collection entries, during update of the databaseIterator<E>PersistentIdentifierBag. entries(CollectionPersister persister)Iterator<E>PersistentList. entries(CollectionPersister persister)Iterator<Map.Entry<K,E>>PersistentMap. entries(CollectionPersister persister)Iterator<E>PersistentSet. entries(CollectionPersister persister)booleanPersistentArrayHolder. equalsSnapshot(CollectionPersister persister)booleanPersistentBag. equalsSnapshot(CollectionPersister persister)booleanPersistentCollection. equalsSnapshot(CollectionPersister persister)Does the current state exactly match the snapshot?booleanPersistentIdentifierBag. equalsSnapshot(CollectionPersister persister)booleanPersistentList. equalsSnapshot(CollectionPersister persister)booleanPersistentMap. equalsSnapshot(CollectionPersister persister)booleanPersistentSet. equalsSnapshot(CollectionPersister persister)IteratorPersistentArrayHolder. 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)ObjectPersistentArrayHolder. getIndex(Object entry, int i, CollectionPersister persister)ObjectPersistentBag. getIndex(Object entry, int i, CollectionPersister persister)ObjectPersistentCollection. getIndex(Object entry, int i, CollectionPersister persister)Get the index of the given collection entryObjectPersistentIdentifierBag. getIndex(Object entry, int i, CollectionPersister persister)ObjectPersistentList. getIndex(Object entry, int i, CollectionPersister persister)ObjectPersistentMap. getIndex(Object entry, int i, CollectionPersister persister)ObjectPersistentSet. getIndex(Object entry, int i, CollectionPersister persister)SerializablePersistentArrayHolder. getSnapshot(CollectionPersister persister)SerializablePersistentBag. getSnapshot(CollectionPersister persister)SerializablePersistentCollection. getSnapshot(CollectionPersister persister)Return a new snapshot of the current state of the collectionSerializablePersistentIdentifierBag. getSnapshot(CollectionPersister persister)SerializablePersistentList. getSnapshot(CollectionPersister persister)SerializablePersistentMap. getSnapshot(CollectionPersister persister)SerializablePersistentSet. getSnapshot(CollectionPersister persister)voidPersistentArrayHolder. initializeEmptyCollection(CollectionPersister persister)voidPersistentBag. initializeEmptyCollection(CollectionPersister persister)voidPersistentCollection. initializeEmptyCollection(CollectionPersister persister)voidPersistentIdentifierBag. initializeEmptyCollection(CollectionPersister persister)voidPersistentList. initializeEmptyCollection(CollectionPersister persister)voidPersistentMap. initializeEmptyCollection(CollectionPersister persister)voidPersistentSet. initializeEmptyCollection(CollectionPersister persister)voidPersistentArrayHolder. initializeFromCache(CollectionPersister persister, Object disassembled, Object owner)voidPersistentBag. initializeFromCache(CollectionPersister collectionDescriptor, Object disassembled, Object owner)voidPersistentCollection. initializeFromCache(CollectionPersister persister, Object disassembled, Object owner)Read the state of the collection from a disassembled cached valuevoidPersistentIdentifierBag. initializeFromCache(CollectionPersister persister, Object disassembled, Object owner)voidPersistentList. initializeFromCache(CollectionPersister persister, Object disassembled, Object owner)voidPersistentMap. initializeFromCache(CollectionPersister persister, Object disassembled, Object owner)voidPersistentSet. initializeFromCache(CollectionPersister persister, Object disassembled, Object owner)Collection<E>AbstractBagSemantics. instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)CECollectionSemantics. instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)Create a raw (unwrapped) version of the collectionPersistentCollection<E>CollectionSemantics. instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)Create a wrapper for the collectionbooleanAbstractPersistentCollection. needsRecreate(CollectionPersister persister)booleanPersistentBag. needsRecreate(CollectionPersister persister)booleanPersistentCollection. needsRecreate(CollectionPersister persister)Do we need to completely recreate this collection when it changes?voidAbstractPersistentCollection. preInsert(CollectionPersister persister)voidPersistentCollection. preInsert(CollectionPersister persister)Called before inserting rows, to ensure that any surrogate keys are fully generatedvoidPersistentIdentifierBag. preInsert(CollectionPersister persister)voidAbstractPersistentCollection.AbstractValueDelayedOperation. replace(CollectionPersister persister, Map<Object,Object> copyCache)voidAbstractPersistentCollection.ValueDelayedOperation. replace(CollectionPersister collectionPersister, Map<Object,Object> copyCache)voidAbstractPersistentCollection. replaceQueuedOperationValues(CollectionPersister persister, Map<Object,Object> copyCache)Replace entity instances with copy incopyCache/.PersistentCollection<E>CollectionSemantics. wrap(CE rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)Wrap a raw collection in wrapperConstructors in org.hibernate.collection.spi with parameters of type CollectionPersister Constructor Description PersistentArrayHolder(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 CollectionPersister Modifier and Type Method Description CollectionPersisterCollectionEntry. getCurrentPersister()CollectionPersisterCollectionEntry. getLoadedPersister()This is only available late during the flush cycleMethods in org.hibernate.engine.spi with parameters of type CollectionPersister Modifier and Type Method Description CollectionEntryPersistenceContext. addInitializedCollection(CollectionPersister persister, PersistentCollection<?> collection, Object id)add a collection we just pulled out of the cache (does not need initializing)voidPersistenceContext. addInitializedDetachedCollection(CollectionPersister collectionPersister, PersistentCollection<?> collection)add an (initialized) collection that was created by another session and passed into update() (ie.voidPersistenceContext. addNewCollection(CollectionPersister persister, PersistentCollection<?> collection)Add a new collection (ie.voidPersistenceContext. addUninitializedCollection(CollectionPersister persister, PersistentCollection<?> collection, Object id)add a collection we just loaded up (still needs initializing)voidPersistenceContext. addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection<?> collection)add a detached uninitialized collectionObject[]BatchFetchQueue. getCollectionBatch(CollectionPersister collectionPersister, Object id, int batchSize)Get a batch of uninitialized collection keys for a given roleObjectPersistenceContext. getCollectionOwner(Object key, CollectionPersister collectionPersister)Get the entity that owns this persistent collectionvoidCollectionEntry. setCurrentPersister(CollectionPersister currentPersister)Constructors in org.hibernate.engine.spi with parameters of type CollectionPersister Constructor Description CollectionEntry(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.spi
Methods in org.hibernate.event.spi that return CollectionPersister Modifier and Type Method Description protected static CollectionPersisterAbstractCollectionEvent. getLoadedCollectionPersister(PersistentCollection<?> collection, EventSource source)Methods in org.hibernate.event.spi with parameters of type CollectionPersister Modifier and Type Method Description protected static StringAbstractCollectionEvent. getAffectedOwnerEntityName(CollectionPersister collectionPersister, Object affectedOwner, EventSource source) -
Uses of CollectionPersister in org.hibernate.mapping
Methods in org.hibernate.mapping that return types with arguments of type CollectionPersister Modifier and Type Method Description Class<? extends CollectionPersister>Collection. getCollectionPersisterClass()Method parameters in org.hibernate.mapping with type arguments of type CollectionPersister Modifier and Type Method Description voidCollection. setCollectionPersisterClass(Class<? extends CollectionPersister> persister) -
Uses of CollectionPersister in org.hibernate.metamodel
Methods in org.hibernate.metamodel that return CollectionPersister Modifier and Type Method Description CollectionPersisterMappingMetamodel. findCollectionDescriptor(String role)Find a collection mapping descriptor based on its role.CollectionPersisterMappingMetamodel. findCollectionDescriptor(NavigableRole role)Find a collection mapping descriptor based on its role.CollectionPersisterMappingMetamodel. getCollectionDescriptor(String role)Get a collection mapping descriptor based on its roleCollectionPersisterMappingMetamodel. getCollectionDescriptor(NavigableRole role)Get a collection mapping descriptor based on its roleMethods in org.hibernate.metamodel that return types with arguments of type CollectionPersister Modifier and Type Method Description Stream<CollectionPersister>MappingMetamodel. streamCollectionDescriptors()Method parameters in org.hibernate.metamodel with type arguments of type CollectionPersister Modifier and Type Method Description voidMappingMetamodel. 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 Modifier and Type Method Description CollectionPersisterPluralAttributeMapping. getCollectionDescriptor() -
Uses of CollectionPersister in org.hibernate.metamodel.spi
Methods in org.hibernate.metamodel.spi that return CollectionPersister Modifier and Type Method Description default CollectionPersisterMetamodelImplementor. collectionPersister(String role)Deprecated.Methods in org.hibernate.metamodel.spi that return types with arguments of type CollectionPersister Modifier and Type Method Description Map<String,CollectionPersister>MetamodelImplementor. collectionPersisters()Deprecated.With no direct replacement; seeMappingMetamodel.forEachCollectionDescriptor(java.util.function.Consumer<org.hibernate.persister.collection.CollectionPersister>)andMappingMetamodel.streamCollectionDescriptors()instead -
Uses of CollectionPersister in org.hibernate.persister.collection
Subinterfaces of CollectionPersister in org.hibernate.persister.collection Modifier and Type Interface Description interfaceQueryableCollectionA collection role that may be queried or loaded by outer join.interfaceSQLLoadableCollectionClasses in org.hibernate.persister.collection that implement CollectionPersister Modifier and Type Class Description classAbstractCollectionPersisterBase implementation of theQueryableCollectioninterface.classBasicCollectionPersisterclassOneToManyPersister -
Uses of CollectionPersister in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type CollectionPersister Modifier and Type Method Description ObjectAbstractEntityPersister. 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 CollectionPersister Modifier and Type Method Description default CollectionPersisterPersisterFactory. createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, RuntimeModelCreationContext creationContext)Create a collection persister instance.CollectionPersisterPersisterFactory. createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)Methods in org.hibernate.persister.spi that return types with arguments of type CollectionPersister Modifier and Type Method Description 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.pretty
Methods in org.hibernate.pretty with parameters of type CollectionPersister Modifier and Type Method Description static StringMessageHelper. collectionInfoString(CollectionPersister persister, Object[] ids, SessionFactoryImplementor factory)Generate an info message string relating to a series of managed collections.static StringMessageHelper. collectionInfoString(CollectionPersister persister, Object id, SessionFactoryImplementor factory)Generate an info message string relating to a particular managed collection.static StringMessageHelper. collectionInfoString(CollectionPersister persister, 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 CollectionPersister Modifier and Type Method Description CollectionPersisterLoadingCollectionEntry. getCollectionDescriptor()The descriptor for the collection being loadeddefault CollectionPersisterCollectionInitializer. getInitializingCollectionDescriptor() -
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 wrapperObjectUserCollectionType. 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
-