Package | Description |
---|---|
org.hibernate.cache.spi.entry |
This package defines formats for disassembled state kept in the second level cache.
|
org.hibernate.engine.spi | |
org.hibernate.envers.event.spi | |
org.hibernate.event.spi | |
org.hibernate.persister.collection |
This package abstracts the persistence mechanism for collections.
|
org.hibernate.pretty |
Classes for pretty printing things for exception
and log messages.
|
org.hibernate.type |
A Hibernate Type is a strategy for mapping a
Java property type to a JDBC type or types.
|
org.hibernate.usertype |
Interfaces for user-defined custom types.
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionCacheEntry.assemble(PersistentCollection collection,
CollectionPersister persister,
Object owner)
Assembles the collection from the cached state.
|
Constructor and Description |
---|
CollectionCacheEntry(PersistentCollection collection,
CollectionPersister persister)
Constructs a CollectionCacheEntry
|
Modifier and Type | Method and 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 the CollectionKey
|
PersistentCollection |
PersistenceContext.getCollectionHolder(Object array)
Get the PersistentCollection object for an array
|
PersistentCollection |
PersistenceContext.removeCollectionHolder(Object array)
Remove the mapping of collection to holder during eviction
of the owning entity
|
PersistentCollection |
PersistenceContext.useUnownedCollection(CollectionKey key)
Take ownership of a previously unowned collection, if one.
|
Modifier and Type | Method and Description |
---|---|
void |
BatchFetchQueue.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.
|
void |
PersistenceContext.addCollectionHolder(PersistentCollection holder)
Register a PersistentCollection object for an array.
|
CollectionEntry |
PersistenceContext.addInitializedCollection(CollectionPersister persister,
PersistentCollection collection,
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 load
|
void |
PersistenceContext.addUninitializedCollection(CollectionPersister persister,
PersistentCollection collection,
Serializable id)
add a collection we just loaded up (still needs initializing)
|
void |
PersistenceContext.addUninitializedDetachedCollection(CollectionPersister persister,
PersistentCollection collection)
add a detached uninitialized collection
|
void |
PersistenceContext.addUnownedCollection(CollectionKey key,
PersistentCollection collection)
Add a collection which has no owner loaded
|
void |
CollectionEntry.afterAction(PersistentCollection collection)
Called after execution of an action
|
boolean |
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 collection
|
Serializable |
PersistenceContext.getLoadedCollectionOwnerIdOrNull(PersistentCollection collection)
Get the ID for the entity that owned this persistent collection when it was loaded
|
Object |
PersistenceContext.getLoadedCollectionOwnerOrNull(PersistentCollection collection)
Get the entity that owned this persistent collection when it was loaded
|
Collection |
CollectionEntry.getOrphans(String entityName,
PersistentCollection collection)
Get the collection orphans (entities which were removed from the collection)
|
Serializable |
PersistenceContext.getSnapshot(PersistentCollection coll)
Get the snapshot of the pre-flush collection state
|
void |
SharedSessionContractImplementor.initializeCollection(PersistentCollection collection,
boolean writing)
Initialize the collection (if not already initialized)
|
void |
SessionDelegatorBaseImpl.initializeCollection(PersistentCollection collection,
boolean writing) |
boolean |
CollectionEntry.isSnapshotEmpty(PersistentCollection collection) |
void |
EntityEntry.overwriteLoadedStateCollectionValue(String propertyName,
PersistentCollection collection) |
void |
CollectionEntry.postFlush(PersistentCollection collection)
Called after a successful flush
|
void |
CollectionEntry.postInitialize(PersistentCollection collection) |
void |
CollectionEntry.preFlush(PersistentCollection collection) |
CollectionEntry |
PersistenceContext.removeCollectionEntry(PersistentCollection collection)
Remove a
PersistentCollection from the PersistenceContext . |
void |
CollectionEntry.resetStoredSnapshot(PersistentCollection collection,
Serializable storedSnapshot)
Reset the stored snapshot for both the persistent collection and this collection entry.
|
Modifier and Type | Method and Description |
---|---|
void |
PersistenceContext.forEachCollectionEntry(BiConsumer<PersistentCollection,CollectionEntry> action,
boolean concurrent)
Execute some action on each entry of the collectionEntries map, optionally iterating on a defensive copy.
|
Constructor and Description |
---|
CollectionEntry(CollectionPersister persister,
PersistentCollection collection)
For newly wrapped collections, or dereferenced collection wrappers
|
CollectionEntry(PersistentCollection collection,
CollectionPersister loadedPersister,
Serializable loadedKey,
boolean ignore)
For collections just loaded from the database
|
CollectionEntry(PersistentCollection collection,
SessionFactoryImplementor factory)
For initialized detached collections
|
Modifier and Type | Method and Description |
---|---|
protected void |
BaseEnversCollectionEventListener.onCollectionAction(AbstractCollectionEvent event,
PersistentCollection newColl,
Serializable oldColl,
CollectionEntry collectionEntry) |
protected void |
BaseEnversCollectionEventListener.onCollectionActionInversed(AbstractCollectionEvent event,
PersistentCollection newColl,
Serializable oldColl,
CollectionEntry collectionEntry) |
Modifier and Type | Method and Description |
---|---|
PersistentCollection |
AbstractCollectionEvent.getCollection() |
Modifier and Type | Method and Description |
---|---|
protected static CollectionPersister |
AbstractCollectionEvent.getLoadedCollectionPersister(PersistentCollection collection,
EventSource source) |
protected static Serializable |
AbstractCollectionEvent.getLoadedOwnerIdOrNull(PersistentCollection collection,
EventSource source) |
protected static Object |
AbstractCollectionEvent.getLoadedOwnerOrNull(PersistentCollection collection,
EventSource source) |
Modifier and Type | Method and Description |
---|---|
void |
CollectionPersister.deleteRows(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Delete the persistent state of any elements that were removed from
the collection
|
void |
AbstractCollectionPersister.deleteRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
protected void |
AbstractCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable key,
int nextIndex,
SharedSessionContractImplementor session)
|
protected void |
OneToManyPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
protected abstract void |
AbstractCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session) |
protected void |
BasicCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
protected int |
OneToManyPersister.doUpdateRows(Serializable id,
PersistentCollection collection,
SharedSessionContractImplementor session) |
protected abstract int |
AbstractCollectionPersister.doUpdateRows(Serializable key,
PersistentCollection collection,
SharedSessionContractImplementor session) |
protected int |
BasicCollectionPersister.doUpdateRows(Serializable id,
PersistentCollection collection,
SharedSessionContractImplementor session) |
void |
CollectionPersister.insertRows(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Insert the persistent state of any new collection elements
|
void |
OneToManyPersister.insertRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
AbstractCollectionPersister.insertRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
CollectionPersister.processQueuedOps(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Process queued operations within the PersistentCollection.
|
void |
AbstractCollectionPersister.processQueuedOps(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session) |
void |
CollectionPersister.recreate(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
(Re)create the collection's persistent state
|
void |
OneToManyPersister.recreate(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
AbstractCollectionPersister.recreate(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
CollectionPersister.updateRows(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Update the persistent state of any elements that were modified
|
void |
AbstractCollectionPersister.updateRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
static String |
MessageHelper.collectionInfoString(CollectionPersister persister,
PersistentCollection collection,
Serializable collectionKey,
SharedSessionContractImplementor session)
Generate an info message string relating to a particular managed
collection.
|
Modifier and Type | Method and Description |
---|---|
PersistentCollection |
UserCollectionType.instantiate(SharedSessionContractImplementor session,
CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapper
|
PersistentCollection |
UserCollectionType.wrap(SharedSessionContractImplementor session,
Object collection)
Wrap an instance of a collection
|
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.