Top Description Constructors Methods
org.hibernate.event.def

public Class OnLockVisitor

extends ReattachVisitor
Class Inheritance
Imports
java.io.Serializable, org.hibernate.HibernateException, org.hibernate.collection.PersistentCollection, org.hibernate.engine.SessionImplementor, org.hibernate.event.EventSource, org.hibernate.persister.collection.CollectionPersister, org.hibernate.type.CollectionType

When a transient entity is passed to lock(), we must inspect all its collections and 1. associate any uninitialized PersistentCollections with this session 2. associate any initialized PersistentCollections with this session, using the existing snapshot 3. throw an exception for each "new" collection
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
Inherited from org.hibernate.event.def.ReattachVisitor:
extractCollectionKeyFromOwnergetOwnergetOwnerIdentifierprocessComponentremoveCollection

Constructor Detail

OnLockVisitorback to summary
public OnLockVisitor(EventSource session, Serializable key, Object owner)

Method Detail

processCollectionback to summary
pack-priv Object processCollection(Object collection, CollectionType type) throws HibernateException

Overrides org.hibernate.event.def.AbstractVisitor.processCollection.

Doc from org.hibernate.event.def.AbstractVisitor.processCollection.

Visit a collection. Default superclass implementation is a no-op.