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

📄 scheduledcollectionrecreate.java

📁 用Java实现的23个常用设计模式源代码
💻 JAVA
字号:
//$Id: ScheduledCollectionRecreate.java,v 1.6.2.5 2003/11/05 09:01:29 oneovthafew Exp $package net.sf.hibernate.impl;import java.io.Serializable;import net.sf.hibernate.HibernateException;import net.sf.hibernate.collection.CollectionPersister;import net.sf.hibernate.collection.PersistentCollection;import net.sf.hibernate.engine.SessionImplementor;final class ScheduledCollectionRecreate  extends ScheduledCollectionAction implements SessionImpl.Executable {		private final PersistentCollection collection;		public ScheduledCollectionRecreate(PersistentCollection collection, CollectionPersister persister, Serializable id, SessionImplementor session) {		super(persister, id, session);		this.collection = collection;	}		public void execute() throws HibernateException {		CollectionPersister persister = getPersister();		if ( persister.hasCache() ) setLock( persister.getCache().lock( getId() ) );		persister.recreate( collection, getId(), getSession() );		if ( persister.hasCache() ) persister.getCache().evict( getId() );	}	}

⌨️ 快捷键说明

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