类 TimestampsCacheEnabledImpl
- java.lang.Object
-
- org.hibernate.cache.internal.TimestampsCacheEnabledImpl
-
- 所有已实现的接口:
TimestampsCache,UpdateTimestampsCache
public class TimestampsCacheEnabledImpl extends Object implements TimestampsCache
Standard implementation of TimestampsCache- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TimestampsRegiongetRegion()The region used to store all timestamps datavoidinvalidate(String[] spaces, SharedSessionContractImplementor session)Perform invalidation of the passed spaces (table names) against the timestamps region databooleanisUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.voidpreInvalidate(String[] spaces, SharedSessionContractImplementor session)Perform pre-invalidation of the passed spaces (table names) against the timestamps region data-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.cache.spi.TimestampsCache
clear, destroy, invalidate, isUpToDate, preInvalidate
-
-
-
-
构造器详细资料
-
TimestampsCacheEnabledImpl
public TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion)
-
-
方法详细资料
-
getRegion
public TimestampsRegion getRegion()
从接口复制的说明:TimestampsCacheThe region used to store all timestamps data- 指定者:
getRegion在接口中TimestampsCache- 指定者:
getRegion在接口中UpdateTimestampsCache- 返回:
- The underlying region.
-
preInvalidate
public void preInvalidate(String[] spaces, SharedSessionContractImplementor session)
从接口复制的说明:TimestampsCachePerform pre-invalidation of the passed spaces (table names) against the timestamps region data- 指定者:
preInvalidate在接口中TimestampsCache
-
invalidate
public void invalidate(String[] spaces, SharedSessionContractImplementor session)
从接口复制的说明:TimestampsCachePerform invalidation of the passed spaces (table names) against the timestamps region data- 指定者:
invalidate在接口中TimestampsCache
-
isUpToDate
public boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)
从接口复制的说明:TimestampsCachePerform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.- 指定者:
isUpToDate在接口中TimestampsCache- 参数:
spaces- The spaces to checktimestamp- The timestamp from the transaction when the query results were cached.session- The session whether this check originated.- 返回:
- Whether all those spaces are up-to-date
-
-