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

CollectionRecreateAction

public final class CollectionRecreateAction extends CollectionAction

Fields Summary
Constructors Summary
public CollectionRecreateAction(org.hibernate.collection.PersistentCollection collection, org.hibernate.persister.collection.CollectionPersister persister, Serializable id, org.hibernate.engine.SessionImplementor session)

		super( persister, collection, id, session );
	
Methods Summary
public voidexecute()

		final PersistentCollection collection = getCollection();
		
		getPersister().recreate( collection, getKey(), getSession() );
		
		getSession().getPersistenceContext()
				.getCollectionEntry(collection)
				.afterAction(collection);
		
		evict();

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