站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

OptimisticCacheSource (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.cache
Interface OptimisticCacheSource

All Known Subinterfaces:
EntityPersister, Loadable, Lockable, OuterJoinLoadable, PostInsertIdentityPersister, Queryable, SQLLoadable, UniqueKeyLoadable
All Known Implementing Classes:
AbstractEntityPersister

public interface OptimisticCacheSource

Contract for sources of optimistically lockable data sent to the second level cache.

Note currently EntityPersisters are the only viable source.

Author:
Steve Ebersole

Method Summary
 Comparator getVersionComparator()
          Get the comparator used to compare two different version values together.
 boolean isVersioned()
          Does this source represent versioned (i.e., and thus optimistically lockable) data?
 

Method Detail

isVersioned

public boolean isVersioned()
Does this source represent versioned (i.e., and thus optimistically lockable) data?

Returns:
True if this source represents versioned data; false otherwise.

getVersionComparator

public Comparator getVersionComparator()
Get the comparator used to compare two different version values together.

Returns:
An appropriate comparator.