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

📄 optimisticcachesource.java

📁 一个Java持久层类库
💻 JAVA
字号:
package org.hibernate.cache;import java.util.Comparator;/** * Contract for sources of optimistically lockable data sent to the second level * cache. * <p/> * Note currently {@link org.hibernate.persister.entity.EntityPersister}s are * the only viable source. * * @author Steve Ebersole */public interface OptimisticCacheSource {	/**	 * Is the data to be cached considered versioned?	 * <p/>	 * If true, it is illegal for {@link #getVersionComparator} to return	 * null.	 *	 * @return True if the data is versioned; false otherwise.	 */	public boolean isVersioned();	/**	 * Get the comparator used to compare two different version values.	 * <p/>	 * May return null <b>if</b> {@link #isVersioned()} returns false.	 * @return	 */	public Comparator getVersionComparator();}

⌨️ 快捷键说明

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