Uses of Interface
org.hibernate.collection.spi.PersistentCollection
-
Packages that use PersistentCollection Package Description org.hibernate.cache.spi.entry This package defines formats for disassembled state kept in the second level cache.org.hibernate.collection.spi This package defines the SPI of a framework for lazy-initializing and state-tracking collection wrappers.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.event.spi Defines the event types and event listener interfaces for events produced by the statefulSession.org.hibernate.loader.ast.spi org.hibernate.persister.collection This package abstracts persistence mechanisms for collections.org.hibernate.persister.collection.mutation Defines support for performing mutation operations against collections.org.hibernate.pretty Contains some functions for pretty-printing things for exception and log messages.org.hibernate.sql.results.graph.collection org.hibernate.type A HibernateTypeis a strategy for mapping a Java property type to a JDBC type or types.org.hibernate.usertype An API for user-defined custom types which extend the set of built-in types defined inorg.hibernate.type. -
-
Uses of PersistentCollection in org.hibernate.cache.spi.entry
Methods in org.hibernate.cache.spi.entry with parameters of type PersistentCollection 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 PersistentCollection Constructor Description CollectionCacheEntry(PersistentCollection<?> collection, CollectionPersister persister)Constructs a CollectionCacheEntry -
Uses of PersistentCollection in org.hibernate.collection.spi
Classes in org.hibernate.collection.spi that implement PersistentCollection Modifier and Type Class Description classAbstractPersistentCollection<E>Base class implementingPersistentCollectionclassPersistentArrayHolder<E>A dummy collection wrapper for an array.classPersistentBag<E>An unordered, un-keyed collection that can contain the same element multiple times.classPersistentIdentifierBag<E>An "identifier bag" implements "bag" semantics more efficiently than a regular bag by adding a synthetic identifier column to the table.classPersistentList<E>A persistent wrapper for aList.classPersistentMap<K,E>A persistent wrapper for aMap.classPersistentSet<E>A persistent wrapper for aSet.classPersistentSortedMap<K,E>A persistent wrapper for aSortedMap.classPersistentSortedSet<E>A persistent wrapper for aSortedSet.Methods in org.hibernate.collection.spi that return PersistentCollection Modifier and Type Method Description PersistentCollection<E>CollectionSemantics. instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)Create a wrapper for the collectionPersistentCollection<E>CollectionSemantics. wrap(CE rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)Wrap a raw collection in wrapperMethods in org.hibernate.collection.spi with parameters of type PersistentCollection Modifier and Type Method Description default booleanPersistentCollection. includeInInsert(Object entry, int entryPosition, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor)Whether to include the entry for insertion operationsdefault booleanPersistentCollection. includeInRecreate(Object entry, int i, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor)Whether the given entry should be included in recreation events -
Uses of PersistentCollection in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return PersistentCollection Modifier and Type Method Description PersistentCollection<?>PersistenceContext. addCollectionByKey(CollectionKey collectionKey, PersistentCollection<?> persistentCollection)Adds a collection in the collections-by-key map.PersistentCollection<?>PersistenceContext. getCollection(CollectionKey collectionKey)Get the collection instance associated with theCollectionKeyPersistentCollection<?>PersistenceContext. getCollectionHolder(Object array)Get thePersistentCollectionobject for an arrayPersistentCollection<?>PersistenceContext. removeCollectionHolder(Object array)Remove the mapping of collection to holder during eviction of the owning entityPersistentCollection<?>PersistenceContext. useUnownedCollection(CollectionKey key)Take ownership of a previously unowned collection, if one.Methods in org.hibernate.engine.spi that return types with arguments of type PersistentCollection Modifier and Type Method Description @Nullable Map<PersistentCollection<?>,CollectionEntry>PersistenceContext. getCollectionEntries()Doubly internalMap<CollectionKey,PersistentCollection<?>>PersistenceContext. getCollectionsByKey()Deprecated.this method should be removed; alternative methods are available that better express the intent, allowing for better optimisations.Methods in org.hibernate.engine.spi with parameters of type PersistentCollection Modifier and Type Method Description voidBatchFetchQueue. addBatchLoadableCollection(PersistentCollection<?> collection, CollectionEntry ce)If a CollectionEntry represents a batch loadable collection, add it to the queue.PersistentCollection<?>PersistenceContext. addCollectionByKey(CollectionKey collectionKey, PersistentCollection<?> persistentCollection)Adds a collection in the collections-by-key map.voidPersistenceContext. addCollectionHolder(PersistentCollection<?> holder)Register aPersistentCollectionobject for an array.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. addNonLazyCollection(PersistentCollection<?> collection)Register a collection for non-lazy loading at the end of the two-phase loadvoidPersistenceContext. 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 collectionvoidCollectionEntry. afterAction(PersistentCollection<?> collection)Called after execution of an actionbooleanPersistenceContext. containsCollection(PersistentCollection<?> collection)Is the given collection associated with this persistence context?CollectionEntryPersistenceContext. getCollectionEntry(PersistentCollection<?> coll)Get the collection entry for a persistent collectionObjectPersistenceContext. getLoadedCollectionOwnerIdOrNull(PersistentCollection<?> collection)Get the ID for the entity that owned this persistent collection when it was loadedObjectPersistenceContext. getLoadedCollectionOwnerOrNull(PersistentCollection<?> collection)Get the entity that owned this persistent collection when it was loadedCollection<?>CollectionEntry. getOrphans(String entityName, PersistentCollection<?> collection)Get the collection orphans (entities which were removed from the collection)SerializablePersistenceContext. getSnapshot(PersistentCollection<?> coll)Get the snapshot of the pre-flush collection statevoidSessionDelegatorBaseImpl. initializeCollection(PersistentCollection<?> collection, boolean writing)voidSharedSessionContractImplementor. initializeCollection(PersistentCollection<?> collection, boolean writing)Initialize the given collection (if not already initialized).voidSharedSessionDelegatorBaseImpl. initializeCollection(PersistentCollection<?> collection, boolean writing)booleanCollectionEntry. isSnapshotEmpty(PersistentCollection<?> collection)voidEntityEntry. overwriteLoadedStateCollectionValue(String propertyName, PersistentCollection<?> collection)voidCollectionEntry. postFlush(PersistentCollection<?> collection)Called after a successful flushvoidCollectionEntry. postInitialize(PersistentCollection<?> collection, SharedSessionContractImplementor session)voidCollectionEntry. preFlush(PersistentCollection<?> collection)CollectionEntryPersistenceContext. removeCollectionEntry(PersistentCollection<?> collection)Remove aPersistentCollectionfrom thePersistenceContext.voidCollectionEntry. resetStoredSnapshot(PersistentCollection<?> collection, Serializable storedSnapshot)Reset the stored snapshot for both the persistent collection and this collection entry.Method parameters in org.hibernate.engine.spi with type arguments of type PersistentCollection Modifier and Type Method Description voidPersistenceContext. forEachCollectionEntry(BiConsumer<PersistentCollection<?>,CollectionEntry> action, boolean concurrent)Execute some action on each entry of the collectionEntries map, optionally iterating on a defensive copy.Constructors in org.hibernate.engine.spi with parameters of type PersistentCollection Constructor Description CollectionEntry(PersistentCollection<?> collection, SessionFactoryImplementor factory)For initialized detached collectionsCollectionEntry(PersistentCollection<?> collection, CollectionPersister loadedPersister, Object loadedKey, boolean ignore)For collections just loaded from the databaseCollectionEntry(CollectionPersister persister, PersistentCollection<?> collection)For newly wrapped collections, or dereferenced collection wrappers -
Uses of PersistentCollection in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return PersistentCollection Modifier and Type Method Description PersistentCollection<?>AbstractCollectionEvent. getCollection()Methods in org.hibernate.event.spi with parameters of type PersistentCollection Modifier and Type Method Description protected static CollectionPersisterAbstractCollectionEvent. getLoadedCollectionPersister(PersistentCollection<?> collection, EventSource source)protected static ObjectAbstractCollectionEvent. getLoadedOwnerIdOrNull(PersistentCollection<?> collection, EventSource source)protected static ObjectAbstractCollectionEvent. getLoadedOwnerOrNull(PersistentCollection<?> collection, EventSource source) -
Uses of PersistentCollection in org.hibernate.loader.ast.spi
Methods in org.hibernate.loader.ast.spi that return PersistentCollection Modifier and Type Method Description PersistentCollection<?>CollectionLoader. load(Object key, SharedSessionContractImplementor session)Load a collection by its key (not necessarily the same as its owner's PK). -
Uses of PersistentCollection in org.hibernate.persister.collection
Methods in org.hibernate.persister.collection with parameters of type PersistentCollection Modifier and Type Method Description voidBasicCollectionPersister. deleteRows(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidCollectionPersister. deleteRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)Delete the persistent state of any elements that were removed from the collectionvoidOneToManyPersister. deleteRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)protected abstract voidAbstractCollectionPersister. doProcessQueuedOps(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)protected voidBasicCollectionPersister. doProcessQueuedOps(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)protected voidOneToManyPersister. doProcessQueuedOps(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidBasicCollectionPersister. insertRows(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidCollectionPersister. insertRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)Insert the persistent state of any new collection elementsvoidOneToManyPersister. insertRows(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidAbstractCollectionPersister. processQueuedOps(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)voidCollectionPersister. processQueuedOps(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)Process queued operations within the PersistentCollection.voidBasicCollectionPersister. recreate(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidCollectionPersister. recreate(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)(Re)create the collection's persistent statevoidOneToManyPersister. recreate(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidBasicCollectionPersister. updateRows(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidCollectionPersister. updateRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)Update the persistent state of any elements that were modifiedvoidOneToManyPersister. updateRows(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session) -
Uses of PersistentCollection in org.hibernate.persister.collection.mutation
Methods in org.hibernate.persister.collection.mutation with parameters of type PersistentCollection Modifier and Type Method Description voidRowMutationOperations.Restrictions. applyRestrictions(PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings)voidRowMutationOperations.Values. applyValues(PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings)voidDeleteRowsCoordinator. deleteRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)Perform the deletionsvoidDeleteRowsCoordinatorNoOp. deleteRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)voidDeleteRowsCoordinatorStandard. deleteRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)voidDeleteRowsCoordinatorTablePerSubclass. deleteRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)protected abstract intAbstractUpdateRowsCoordinator. doUpdate(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session)protected intUpdateRowsCoordinatorOneToMany. doUpdate(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session)protected intUpdateRowsCoordinatorStandard. doUpdate(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session)protected intUpdateRowsCoordinatorTablePerSubclass. doUpdate(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session)default booleanInsertRowsCoordinator.EntryFilter. exclude(Object entry, int i, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor)booleanInsertRowsCoordinator.EntryFilter. include(Object entry, int position, PersistentCollection<?> collection, PluralAttributeMapping attributeDescriptor)Whether the entry should be includedvoidInsertRowsCoordinator. insertRows(PersistentCollection<?> collection, Object id, InsertRowsCoordinator.EntryFilter entryChecker, SharedSessionContractImplementor session)Perform the creation.voidInsertRowsCoordinatorNoOp. insertRows(PersistentCollection<?> collection, Object id, InsertRowsCoordinator.EntryFilter entryChecker, SharedSessionContractImplementor session)voidInsertRowsCoordinatorStandard. insertRows(PersistentCollection<?> collection, Object id, InsertRowsCoordinator.EntryFilter entryChecker, SharedSessionContractImplementor session)voidInsertRowsCoordinatorTablePerSubclass. insertRows(PersistentCollection<?> collection, Object id, InsertRowsCoordinator.EntryFilter entryChecker, SharedSessionContractImplementor session)voidAbstractUpdateRowsCoordinator. updateRows(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session)voidUpdateRowsCoordinator. updateRows(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session)voidUpdateRowsCoordinatorNoOp. updateRows(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session) -
Uses of PersistentCollection in org.hibernate.pretty
Methods in org.hibernate.pretty with parameters of type PersistentCollection Modifier and Type Method Description static StringMessageHelper. collectionInfoString(@Nullable CollectionPersister persister, @Nullable PersistentCollection<?> collection, Object collectionKey, SharedSessionContractImplementor session)Generate an info message string relating to a particular managed collection. -
Uses of PersistentCollection in org.hibernate.sql.results.graph.collection
Methods in org.hibernate.sql.results.graph.collection that return PersistentCollection Modifier and Type Method Description @Nullable PersistentCollection<?>CollectionInitializer. getCollectionInstance(Data data)default @Nullable PersistentCollection<?>CollectionInitializer. getCollectionInstance(RowProcessingState rowProcessingState)PersistentCollection<?>LoadingCollectionEntry. getCollectionInstance()The collection instance being loaded -
Uses of PersistentCollection in org.hibernate.type
-
Uses of PersistentCollection in org.hibernate.usertype
Methods in org.hibernate.usertype that return PersistentCollection Modifier and Type Method Description PersistentCollection<?>UserCollectionType. instantiate(SharedSessionContractImplementor session, CollectionPersister persister)Instantiate an uninitialized instance of the collection wrapperPersistentCollection<?>UserCollectionType. wrap(SharedSessionContractImplementor session, Object collection)Wrap an instance of a collection
-