Top Description Fields Constructors Methods
org.hibernate.engine.internal

public final Class Collections

extends Object
Class Inheritance
Imports
java.io.Serializable, org.hibernate.AssertionFailure, .HibernateException, org.hibernate.action.internal.DelayedPostInsertIdentifier, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.spi.CollectionEntry, .EntityEntry, .EntityKey, .PersistenceContext, .SessionFactoryImplementor, .SessionImplementor, .Status, org.hibernate.internal.CoreMessageLogger, org.hibernate.persister.collection.CollectionPersister, org.hibernate.pretty.MessageHelper, org.hibernate.type.CollectionType, org.jboss.logging.Logger

Implements book-keeping for the collection persistence by reachability algorithm
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
private
Collections()

Disallow instantiation

Method Summary

Modifier and TypeMethod and Description
private static void
prepareCollectionForUpdate(PersistentCollection collection, CollectionEntry entry, SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
1.
private static void
processDereferencedCollection(PersistentCollection coll, SessionImplementor session)

Deprecated as a consequence of SessionImplementor being deprecated.
private static void
processNeverReferencedCollection(PersistentCollection coll, SessionImplementor session)

Deprecated as a consequence of SessionImplementor being deprecated.
public static void
processReachableCollection(PersistentCollection
The collection to be updated by reachability.
collection
,
CollectionType
The type of the collection.
type
,
Object
The owner of the collection.
entity
,
SessionImplementor
The session from which this request originates
session
)

Deprecated as a consequence of SessionImplementor being deprecated.
Initialize the role of the collection.
public static void
processUnreachableCollection(PersistentCollection
The collection to be updated by un-reachability.
coll
,
SessionImplementor
The session
session
)

Deprecated as a consequence of SessionImplementor being deprecated.
record the fact that this collection was dereferenced
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final CoreMessageLogger LOG

Constructor Detail

Collectionsback to summary
private Collections()

Disallow instantiation

Method Detail

prepareCollectionForUpdateback to summary
private static void prepareCollectionForUpdate(PersistentCollection collection, CollectionEntry entry, SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

1. record the collection role that this collection is referenced by 2. decide if the collection needs deleting/creating/updating (but don't actually schedule the action yet)

Annotations
@SuppressWarnings:JavaDoc
processDereferencedCollectionback to summary
private static void processDereferencedCollection(PersistentCollection coll, SessionImplementor session)

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

processNeverReferencedCollectionback to summary
private static void processNeverReferencedCollection(PersistentCollection coll, SessionImplementor session) throws HibernateException

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

processReachableCollectionback to summary
public static void processReachableCollection(PersistentCollection collection, CollectionType type, Object entity, SessionImplementor session)

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

Initialize the role of the collection.

Parameters
collection:PersistentCollection

The collection to be updated by reachability.

type:CollectionType

The type of the collection.

entity:Object

The owner of the collection.

session:SessionImplementor

The session from which this request originates

processUnreachableCollectionback to summary
public static void processUnreachableCollection(PersistentCollection coll, SessionImplementor session)

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

record the fact that this collection was dereferenced

Parameters
coll:PersistentCollection

The collection to be updated by un-reachability.

session:SessionImplementor

The session