optimisticcachesource.java
来自「好东西,hibernate-3.2.0,他是一开元的树杖hibernate-3.」· Java 代码 · 共 30 行
JAVA
30 行
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 {
/**
* Does this source represent versioned (i.e., and thus optimistically
* lockable) data?
*
* @return True if this source represents versioned data; false otherwise.
*/
public boolean isVersioned();
/**
* Get the comparator used to compare two different version values together.
*
* @return An appropriate comparator.
*/
public Comparator getVersionComparator();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?