Package | Description |
---|---|
org.hibernate.action.internal |
Internals for action processing.
|
org.hibernate.cache.spi.entry |
This package defines formats for disassembled state kept in the second level cache.
|
org.hibernate.collection.internal |
Internal implementations and support for persistent collections
|
org.hibernate.engine.internal |
Support for many of the internal workings of Hibernate.
|
org.hibernate.engine.loading.internal |
Internal classes used to track loading of data, potentially across multiple ResultSets
|
org.hibernate.engine.spi | |
org.hibernate.envers.event.spi | |
org.hibernate.envers.internal.entities.mapper | |
org.hibernate.envers.internal.entities.mapper.relation | |
org.hibernate.envers.internal.synchronization.work | |
org.hibernate.event.internal |
This package defines a default set of event listeners that
implements the default behaviors of Hibernate.
|
org.hibernate.event.spi | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
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 |
---|---|
protected PersistentCollection |
CollectionAction.getCollection() |
Constructor and Description |
---|
CollectionAction(CollectionPersister persister,
PersistentCollection collection,
java.io.Serializable key,
SharedSessionContractImplementor session) |
CollectionRecreateAction(PersistentCollection collection,
CollectionPersister persister,
java.io.Serializable id,
SharedSessionContractImplementor session)
Constructs a CollectionRecreateAction
|
CollectionRemoveAction(PersistentCollection collection,
CollectionPersister persister,
java.io.Serializable id,
boolean emptySnapshot,
SharedSessionContractImplementor session)
Removes a persistent collection from its loaded owner.
|
CollectionUpdateAction(PersistentCollection collection,
CollectionPersister persister,
java.io.Serializable id,
boolean emptySnapshot,
SharedSessionContractImplementor session)
Constructs a CollectionUpdateAction
|
QueuedOperationCollectionAction(PersistentCollection collection,
CollectionPersister persister,
java.io.Serializable id,
SharedSessionContractImplementor session)
Constructs a CollectionUpdateAction
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionCacheEntry.assemble(PersistentCollection collection,
CollectionPersister persister,
java.lang.Object owner)
Assembles the collection from the cached state.
|
Constructor and Description |
---|
CollectionCacheEntry(PersistentCollection collection,
CollectionPersister persister)
Constructs a CollectionCacheEntry
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPersistentCollection
Base class implementing
PersistentCollection |
class |
PersistentArrayHolder
A persistent wrapper for an array.
|
class |
PersistentBag
An unordered, unkeyed collection that can contain the same element
multiple times.
|
class |
PersistentIdentifierBag
An IdentifierBag implements "bag" semantics more efficiently than
a regular Bag by adding a synthetic identifier column to the
table.
|
class |
PersistentList
A persistent wrapper for a java.util.List.
|
class |
PersistentMap
A persistent wrapper for a java.util.Map.
|
class |
PersistentSet
A persistent wrapper for a java.util.Set.
|
class |
PersistentSortedMap
A persistent wrapper for a java.util.SortedMap.
|
class |
PersistentSortedSet
A persistent wrapper for a java.util.SortedSet.
|
Modifier and Type | Method and Description |
---|---|
PersistentCollection |
StatefulPersistenceContext.getCollection(CollectionKey collectionKey) |
PersistentCollection |
StatefulPersistenceContext.getCollectionHolder(java.lang.Object array) |
PersistentCollection |
StatefulPersistenceContext.removeCollectionHolder(java.lang.Object array) |
PersistentCollection |
StatefulPersistenceContext.useUnownedCollection(CollectionKey key) |
Modifier and Type | Method and Description |
---|---|
void |
StatefulPersistenceContext.addCollectionHolder(PersistentCollection holder) |
CollectionEntry |
StatefulPersistenceContext.addInitializedCollection(CollectionPersister persister,
PersistentCollection collection,
java.io.Serializable id) |
void |
StatefulPersistenceContext.addInitializedDetachedCollection(CollectionPersister collectionPersister,
PersistentCollection collection) |
void |
StatefulPersistenceContext.addNewCollection(CollectionPersister persister,
PersistentCollection collection) |
void |
StatefulPersistenceContext.addNonLazyCollection(PersistentCollection collection) |
void |
StatefulPersistenceContext.addUninitializedCollection(CollectionPersister persister,
PersistentCollection collection,
java.io.Serializable id) |
void |
StatefulPersistenceContext.addUninitializedDetachedCollection(CollectionPersister persister,
PersistentCollection collection) |
void |
StatefulPersistenceContext.addUnownedCollection(CollectionKey key,
PersistentCollection collection) |
boolean |
StatefulPersistenceContext.containsCollection(PersistentCollection collection) |
CollectionEntry |
StatefulPersistenceContext.getCollectionEntry(PersistentCollection coll) |
java.io.Serializable |
StatefulPersistenceContext.getLoadedCollectionOwnerIdOrNull(PersistentCollection collection) |
java.lang.Object |
StatefulPersistenceContext.getLoadedCollectionOwnerOrNull(PersistentCollection collection) |
java.io.Serializable |
StatefulPersistenceContext.getSnapshot(PersistentCollection coll) |
void |
AbstractEntityEntry.overwriteLoadedStateCollectionValue(java.lang.String propertyName,
PersistentCollection collection) |
static void |
Collections.processReachableCollection(PersistentCollection collection,
CollectionType type,
java.lang.Object entity,
SessionImplementor session)
Initialize the role of the collection.
|
static void |
Collections.processUnreachableCollection(PersistentCollection coll,
SessionImplementor session)
record the fact that this collection was dereferenced
|
Modifier and Type | Method and Description |
---|---|
PersistentCollection |
LoadingCollectionEntry.getCollection() |
PersistentCollection |
CollectionLoadContext.getLoadingCollection(CollectionPersister persister,
java.io.Serializable key)
Retrieve the collection that is being loaded as part of processing this
result set.
|
PersistentCollection |
LoadContexts.locateLoadingCollection(CollectionPersister persister,
java.io.Serializable ownerKey)
Attempt to locate the loading collection given the owner's key.
|
Modifier and Type | Method and Description |
---|---|
PersistentCollection |
PersistenceContext.getCollection(CollectionKey collectionKey)
Get the collection instance associated with the CollectionKey
|
PersistentCollection |
PersistenceContext.getCollectionHolder(java.lang.Object array)
Get the PersistentCollection object for an array
|
PersistentCollection |
PersistenceContext.removeCollectionHolder(java.lang.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.
|
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 load
|
void |
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 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
|
java.io.Serializable |
PersistenceContext.getLoadedCollectionOwnerIdOrNull(PersistentCollection collection)
Get the ID for the entity that owned this persistent collection when it was loaded
|
java.lang.Object |
PersistenceContext.getLoadedCollectionOwnerOrNull(PersistentCollection collection)
Get the entity that owned this persistent collection when it was loaded
|
java.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 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(java.lang.String propertyName,
PersistentCollection collection) |
void |
CollectionEntry.postFlush(PersistentCollection collection)
Called after a successful flush
|
void |
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.
|
Constructor and Description |
---|
CollectionEntry(CollectionPersister persister,
PersistentCollection collection)
For newly wrapped collections, or dereferenced collection wrappers
|
CollectionEntry(PersistentCollection collection,
CollectionPersister loadedPersister,
java.io.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,
java.io.Serializable oldColl,
CollectionEntry collectionEntry) |
protected void |
BaseEnversCollectionEventListener.onCollectionActionInversed(AbstractCollectionEvent event,
PersistentCollection newColl,
java.io.Serializable oldColl,
CollectionEntry collectionEntry) |
Modifier and Type | Method and Description |
---|---|
java.util.List<PersistentCollectionChangeData> |
MultiPropertyMapper.mapCollectionChanges(SessionImplementor session,
java.lang.String referencingPropertyName,
PersistentCollection newColl,
java.io.Serializable oldColl,
java.io.Serializable id) |
java.util.List<PersistentCollectionChangeData> |
PropertyMapper.mapCollectionChanges(SessionImplementor session,
java.lang.String referencingPropertyName,
PersistentCollection newColl,
java.io.Serializable oldColl,
java.io.Serializable id)
Maps collection changes.
|
java.util.List<PersistentCollectionChangeData> |
SinglePropertyMapper.mapCollectionChanges(SessionImplementor sessionImplementor,
java.lang.String referencingPropertyName,
PersistentCollection newColl,
java.io.Serializable oldColl,
java.io.Serializable id) |
java.util.List<PersistentCollectionChangeData> |
ComponentPropertyMapper.mapCollectionChanges(SessionImplementor session,
java.lang.String referencingPropertyName,
PersistentCollection newColl,
java.io.Serializable oldColl,
java.io.Serializable id) |
java.util.List<PersistentCollectionChangeData> |
SubclassPropertyMapper.mapCollectionChanges(SessionImplementor session,
java.lang.String referencingPropertyName,
PersistentCollection newColl,
java.io.Serializable oldColl,
java.io.Serializable id) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Collection |
AbstractCollectionMapper.getNewCollectionContent(PersistentCollection newCollection) |
protected java.util.Collection |
MapCollectionMapper.getNewCollectionContent(PersistentCollection newCollection) |
protected java.util.Collection |
ListCollectionMapper.getNewCollectionContent(PersistentCollection newCollection) |
protected java.util.Collection |
BasicCollectionMapper.getNewCollectionContent(PersistentCollection newCollection) |
java.util.List<PersistentCollectionChangeData> |
AbstractToOneMapper.mapCollectionChanges(SessionImplementor session,
java.lang.String referencingPropertyName,
PersistentCollection newColl,
java.io.Serializable oldColl,
java.io.Serializable id) |
java.util.List<PersistentCollectionChangeData> |
AbstractCollectionMapper.mapCollectionChanges(SessionImplementor session,
java.lang.String referencingPropertyName,
PersistentCollection newColl,
java.io.Serializable oldColl,
java.io.Serializable id) |
Constructor and Description |
---|
PersistentCollectionChangeWorkUnit(SessionImplementor sessionImplementor,
java.lang.String entityName,
EnversService enversService,
PersistentCollection collection,
CollectionEntry collectionEntry,
java.io.Serializable snapshot,
java.io.Serializable id,
java.lang.String referencingPropertyName) |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
ProxyVisitor.isOwnerUnchanged(PersistentCollection snapshot,
CollectionPersister persister,
java.io.Serializable id)
Has the owner of the collection changed since the collection
was snapshotted and detached?
|
protected void |
ProxyVisitor.reattachCollection(PersistentCollection collection,
CollectionType type)
Reattach a detached (disassociated) initialized or uninitialized
collection wrapper, using a snapshot carried with the collection
wrapper
|
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 java.io.Serializable |
AbstractCollectionEvent.getLoadedOwnerIdOrNull(PersistentCollection collection,
EventSource source) |
protected static java.lang.Object |
AbstractCollectionEvent.getLoadedOwnerOrNull(PersistentCollection collection,
EventSource source) |
Modifier and Type | Method and Description |
---|---|
void |
StatelessSessionImpl.initializeCollection(PersistentCollection collection,
boolean writing) |
void |
SessionImpl.initializeCollection(PersistentCollection collection,
boolean writing) |
Modifier and Type | Method and 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 collection
|
protected void |
AbstractCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
java.io.Serializable key,
int nextIndex,
SharedSessionContractImplementor session)
|
protected void |
OneToManyPersister.doProcessQueuedOps(PersistentCollection collection,
java.io.Serializable id,
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 int |
OneToManyPersister.doUpdateRows(java.io.Serializable id,
PersistentCollection collection,
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) |
void |
OneToManyPersister.insertRows(PersistentCollection collection,
java.io.Serializable id,
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 elements
|
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 |
OneToManyPersister.recreate(PersistentCollection collection,
java.io.Serializable id,
SharedSessionContractImplementor session) |
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 state
|
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
|
Modifier and Type | Method and 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.
|
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,
java.lang.Object collection)
Wrap an instance of a collection
|
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.