Uses of Interface
org.hibernate.collection.spi.PersistentCollection
-
Packages that use PersistentCollection Package Description org.hibernate.cache.spi.entry org.hibernate.collection.spi SPI definitions for persistent collectionsorg.hibernate.engine.spi org.hibernate.event.spi org.hibernate.loader.ast.spi org.hibernate.persister.collection org.hibernate.pretty org.hibernate.sql.results.graph.collection org.hibernate.type org.hibernate.usertype -
-
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 persistent wrapper for an array.classPersistentBag<E>An unordered, unkeyed collection that can contain the same element multiple times.classPersistentIdentifierBag<E>AnIdentifierBagimplements "bag" semantics more efficiently than a regularBagby adding a synthetic identifier column to the table.classPersistentList<E>A persistent wrapper for ajava.util.List.classPersistentMap<K,E>A persistent wrapper for ajava.util.Map.classPersistentSet<E>A persistent wrapper for ajava.util.Set.classPersistentSortedMap<K,E>A persistent wrapper for ajava.util.SortedMap.classPersistentSortedSet<E>A persistent wrapper for ajava.util.SortedSet.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 wrapper -
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 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 collection (if not already initialized)booleanCollectionEntry. isSnapshotEmpty(PersistentCollection<?> collection)voidEntityEntry. overwriteLoadedStateCollectionValue(String propertyName, PersistentCollection<?> collection)voidCollectionEntry. postFlush(PersistentCollection<?> collection)Called after a successful flushvoidCollectionEntry. postInitialize(PersistentCollection<?> collection)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 voidAbstractCollectionPersister. 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 collectionprotected 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)protected abstract intAbstractCollectionPersister. doUpdateRows(Object key, PersistentCollection<?> collection, SharedSessionContractImplementor session)protected intBasicCollectionPersister. doUpdateRows(Object id, PersistentCollection<?> collection, SharedSessionContractImplementor session)protected intOneToManyPersister. doUpdateRows(Object id, PersistentCollection<?> collection, SharedSessionContractImplementor session)voidAbstractCollectionPersister. 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.voidAbstractCollectionPersister. 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)voidAbstractCollectionPersister. updateRows(PersistentCollection<?> collection, Object id, SharedSessionContractImplementor session)voidCollectionPersister. updateRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)Update the persistent state of any elements that were modified -
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(CollectionPersister persister, 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 PersistentCollection<?>CollectionInitializer. getCollectionInstance()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
-