Package org.hibernate.cache.internal
Class TimestampsCacheDisabledImpl
- java.lang.Object
-
- org.hibernate.cache.internal.TimestampsCacheDisabledImpl
-
- All Implemented Interfaces:
TimestampsCache
public class TimestampsCacheDisabledImpl extends Object implements TimestampsCache
TimestampsRegionAccess implementation for cases where query results caching (or second level caching overall) is disabled.
-
-
Constructor Summary
Constructors Constructor Description TimestampsCacheDisabledImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampsRegion
getRegion()
The region used to store all timestamp data.void
invalidate(String[] spaces, SharedSessionContractImplementor session)
Perform invalidation of the passed spaces (table names) against the timestamp region data.boolean
isUpToDate(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.boolean
isUpToDate(Collection<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.void
preInvalidate(String[] spaces, SharedSessionContractImplementor session)
Perform pre-invalidation of the passed spaces (table names) against the timestamp region data.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.cache.spi.TimestampsCache
clear, destroy
-
-
-
-
Method Detail
-
getRegion
public TimestampsRegion getRegion()
Description copied from interface:TimestampsCache
The region used to store all timestamp data.- Specified by:
getRegion
in interfaceTimestampsCache
-
preInvalidate
public void preInvalidate(String[] spaces, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform pre-invalidation of the passed spaces (table names) against the timestamp region data.- Specified by:
preInvalidate
in interfaceTimestampsCache
-
invalidate
public void invalidate(String[] spaces, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform invalidation of the passed spaces (table names) against the timestamp region data.- Specified by:
invalidate
in interfaceTimestampsCache
-
isUpToDate
public boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.- Specified by:
isUpToDate
in interfaceTimestampsCache
-
isUpToDate
public boolean isUpToDate(Collection<String> spaces, Long timestamp, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.- Specified by:
isUpToDate
in interfaceTimestampsCache
-
-