FileDocCategorySizeDatePackage
CollectionRemoveAction.javaAPI DocHibernate 3.2.51359Wed Jun 15 08:20:14 BST 2005org.hibernate.action

CollectionRemoveAction

public final class CollectionRemoveAction extends CollectionAction

Fields Summary
private boolean
emptySnapshot
Constructors Summary
public CollectionRemoveAction(org.hibernate.collection.PersistentCollection collection, org.hibernate.persister.collection.CollectionPersister persister, Serializable id, boolean emptySnapshot, org.hibernate.engine.SessionImplementor session)

		super( persister, collection, id, session );
		this.emptySnapshot = emptySnapshot;
	
Methods Summary
public voidexecute()

		if ( !emptySnapshot ) getPersister().remove( getKey(), getSession() );
		
		final PersistentCollection collection = getCollection();
		if (collection!=null) {
			getSession().getPersistenceContext()
				.getCollectionEntry(collection)
				.afterAction(collection);
		}
		
		evict();

		if ( getSession().getFactory().getStatistics().isStatisticsEnabled() ) {
			getSession().getFactory().getStatisticsImplementor()
					.removeCollection( getPersister().getRole() );
		}