Top Description Constructors Methods
org.hibernate.event.internal

public Class OnLockVisitor

extends ReattachVisitor
Class Inheritance
Imports
org.hibernate.HibernateException, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.spi.SessionImplementor, org.hibernate.event.spi.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
OnLockVisitor(EventSource session, Object key, Object owner)

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from org.hibernate.event.internal.ReattachVisitor:
extractCollectionKeyFromOwnergetOwnergetOwnerIdentifierprocessComponentremoveCollection

Constructor Detail

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

Method Detail

processCollectionback to summary
public Object processCollection(Object collection, CollectionType type) throws HibernateException

Overrides org.hibernate.event.internal.AbstractVisitor.processCollection.

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

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

Annotations
@Override