Uses of Interface
org.hibernate.collection.spi.PersistentCollection
-
-
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 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 PersistentCollection Constructor Description CollectionCacheEntry(PersistentCollection collection, CollectionPersister persister)
Constructs a CollectionCacheEntry -
Uses of PersistentCollection in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return PersistentCollection Modifier and Type Method Description PersistentCollection
PersistenceContext. getCollection(CollectionKey collectionKey)
Get the collection instance associated with the CollectionKeyPersistentCollection
PersistenceContext. getCollectionHolder(java.lang.Object array)
Get the PersistentCollection object for an arrayPersistentCollection
PersistenceContext. removeCollectionHolder(java.lang.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 with parameters of type PersistentCollection Modifier and Type Method Description void
BatchFetchQueue. addBatchLoadableCollection(PersistentCollection collection, CollectionEntry ce)
If a CollectionEntry represents a batch loadable collection, add it to the queue.void
PersistenceContext. addCollectionHolder(PersistentCollection holder)
Register a PersistentCollection object for an array.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. addNonLazyCollection(PersistentCollection collection)
Register a collection for non-lazy loading at the end of the two-phase loadvoid
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 collectionvoid
PersistenceContext. addUnownedCollection(CollectionKey key, PersistentCollection collection)
Add a collection which has no owner loadedvoid
CollectionEntry. afterAction(PersistentCollection collection)
Called after execution of an actionboolean
PersistenceContext. containsCollection(PersistentCollection collection)
Is the given collection associated with this persistence context?CollectionEntry
PersistenceContext. getCollectionEntry(PersistentCollection coll)
Get the collection entry for a persistent collectionjava.io.Serializable
PersistenceContext. getLoadedCollectionOwnerIdOrNull(PersistentCollection collection)
Get the ID for the entity that owned this persistent collection when it was loadedjava.lang.Object
PersistenceContext. getLoadedCollectionOwnerOrNull(PersistentCollection collection)
Get the entity that owned this persistent collection when it was loadedjava.util.Collection
CollectionEntry. getOrphans(java.lang.String entityName, PersistentCollection collection)
Get the collection orphans (entities which were removed from the collection)java.io.Serializable
PersistenceContext. getSnapshot(PersistentCollection coll)
Get the snapshot of the pre-flush collection statevoid
SessionDelegatorBaseImpl. initializeCollection(PersistentCollection collection, boolean writing)
void
SharedSessionContractImplementor. initializeCollection(PersistentCollection collection, boolean writing)
Initialize the collection (if not already initialized)boolean
CollectionEntry. isSnapshotEmpty(PersistentCollection collection)
void
EntityEntry. overwriteLoadedStateCollectionValue(java.lang.String propertyName, PersistentCollection collection)
void
CollectionEntry. postFlush(PersistentCollection collection)
Called after a successful flushvoid
CollectionEntry. postInitialize(PersistentCollection collection)
void
CollectionEntry. preFlush(PersistentCollection collection)
void
CollectionEntry. resetStoredSnapshot(PersistentCollection collection, java.io.Serializable storedSnapshot)
Reset the stored snapshot for both the persistent collection and this collection entry.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, java.io.Serializable 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.envers.event.spi
Methods in org.hibernate.envers.event.spi with parameters of type PersistentCollection Modifier and Type Method Description protected void
BaseEnversCollectionEventListener. onCollectionAction(AbstractCollectionEvent event, PersistentCollection newColl, java.io.Serializable oldColl, CollectionEntry collectionEntry)
protected void
BaseEnversCollectionEventListener. onCollectionActionInversed(AbstractCollectionEvent event, PersistentCollection newColl, java.io.Serializable oldColl, CollectionEntry collectionEntry)
-
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 CollectionPersister
AbstractCollectionEvent. getLoadedCollectionPersister(PersistentCollection collection, EventSource source)
protected static java.io.Serializable
AbstractCollectionEvent. getLoadedOwnerIdOrNull(PersistentCollection collection, EventSource source)
protected static java.lang.Object
AbstractCollectionEvent. getLoadedOwnerOrNull(PersistentCollection collection, EventSource source)
-
Uses of PersistentCollection in org.hibernate.persister.collection
Methods in org.hibernate.persister.collection with parameters of type PersistentCollection Modifier and Type Method Description void
AbstractCollectionPersister. deleteRows(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
void
CollectionPersister. deleteRows(PersistentCollection collection, java.io.Serializable key, SharedSessionContractImplementor session)
Delete the persistent state of any elements that were removed from the collectionprotected void
AbstractCollectionPersister. doProcessQueuedOps(PersistentCollection collection, java.io.Serializable key, int nextIndex, SharedSessionContractImplementor session)
protected abstract void
AbstractCollectionPersister. doProcessQueuedOps(PersistentCollection collection, java.io.Serializable key, SharedSessionContractImplementor session)
protected void
BasicCollectionPersister. doProcessQueuedOps(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
protected void
OneToManyPersister. doProcessQueuedOps(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
protected abstract int
AbstractCollectionPersister. doUpdateRows(java.io.Serializable key, PersistentCollection collection, SharedSessionContractImplementor session)
protected int
BasicCollectionPersister. doUpdateRows(java.io.Serializable id, PersistentCollection collection, SharedSessionContractImplementor session)
protected int
OneToManyPersister. doUpdateRows(java.io.Serializable id, PersistentCollection collection, SharedSessionContractImplementor session)
void
AbstractCollectionPersister. insertRows(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
void
CollectionPersister. insertRows(PersistentCollection collection, java.io.Serializable key, SharedSessionContractImplementor session)
Insert the persistent state of any new collection elementsvoid
OneToManyPersister. insertRows(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
void
AbstractCollectionPersister. processQueuedOps(PersistentCollection collection, java.io.Serializable key, SharedSessionContractImplementor session)
void
CollectionPersister. processQueuedOps(PersistentCollection collection, java.io.Serializable key, SharedSessionContractImplementor session)
Process queued operations within the PersistentCollection.void
AbstractCollectionPersister. recreate(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
void
CollectionPersister. recreate(PersistentCollection collection, java.io.Serializable key, SharedSessionContractImplementor session)
(Re)create the collection's persistent statevoid
OneToManyPersister. recreate(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
void
AbstractCollectionPersister. updateRows(PersistentCollection collection, java.io.Serializable id, SharedSessionContractImplementor session)
void
CollectionPersister. updateRows(PersistentCollection collection, java.io.Serializable 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 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 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, java.lang.Object collection)
Wrap an instance of a collection
-