⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collectionrecreateaction.java

📁 介绍了hibernate的入门有一些基本常用的事例
💻 JAVA
字号:
//$Id: CollectionRecreateAction.java,v 1.6 2005/02/13 11:49:55 oneovthafew Exp $package org.hibernate.action;import org.hibernate.HibernateException;import org.hibernate.cache.CacheException;import org.hibernate.collection.PersistentCollection;import org.hibernate.engine.SessionImplementor;import org.hibernate.persister.collection.CollectionPersister;import java.io.Serializable;public final class CollectionRecreateAction extends CollectionAction {	private final PersistentCollection collection;	public CollectionRecreateAction(PersistentCollection collection, CollectionPersister persister, Serializable id, SessionImplementor session)			throws CacheException {		super( persister, id, session );		this.collection = collection;	}	public void execute() throws HibernateException {		getPersister().recreate( collection, getKey(), getSession() );		evict();		if ( getSession().getFactory().getStatistics().isStatisticsEnabled() ) {			getSession().getFactory().getStatisticsImplementor()					.recreateCollection( getPersister().getRole() );		}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -