Top Description Fields Constructors Methods
org.hibernate.cache.internal

public Class TimestampsCacheEnabledImpl

extends Object
implements TimestampsCache
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.spi.TimestampsCache, org.hibernate.cache.spi.UpdateTimestampsCache
Imports
java.io.Serializable, org.hibernate.cache.spi.RegionFactory, .TimestampsRegion, .TimestampsCache, org.hibernate.engine.spi.SessionEventListenerManager, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.stat.spi.StatisticsImplementor, org.jboss.logging.Logger

Deprecated

as a consequence of TimestampsCache being deprecated. See corresponding docs for further information.

Standard implementation of TimestampsCache
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger
private final TimestampsRegion

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Long
public TimestampsRegion
getRegion()

Implements org.hibernate.cache.spi.TimestampsCache.getRegion.

The region used to store all timestamps data
public void
invalidate(String[] spaces, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.TimestampsCache.invalidate.

Perform invalidation of the passed spaces (table names) against the timestamps region data
public boolean
isUpToDate(String[]
The spaces to check
spaces
,
Long
The timestamp from the transaction when the query results were cached.
timestamp
,
SharedSessionContractImplementor
The session whether this check originated.
session
)

Implements org.hibernate.cache.spi.TimestampsCache.isUpToDate.

Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.
public void
preInvalidate(String[] spaces, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.TimestampsCache.preInvalidate.

Perform pre-invalidation of the passed spaces (table names) against the timestamps region data
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log
timestampsRegionback to summary
private final TimestampsRegion timestampsRegion

Constructor Detail

TimestampsCacheEnabledImplback to summary
public TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion)

Method Detail

getLastUpdateTimestampForSpaceback to summary
private Long getLastUpdateTimestampForSpace(Serializable space, SharedSessionContractImplementor session)
getRegionback to summary
public TimestampsRegion getRegion()

Implements org.hibernate.cache.spi.TimestampsCache.getRegion.

Doc from org.hibernate.cache.spi.TimestampsCache.getRegion.

The region used to store all timestamps data

Returns:TimestampsRegion

Doc from org.hibernate.cache.spi.UpdateTimestampsCache.getRegion.

The underlying region.

Annotations
@Override
invalidateback to summary
public void invalidate(String[] spaces, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.TimestampsCache.invalidate.

Doc from org.hibernate.cache.spi.TimestampsCache.invalidate.

Perform invalidation of the passed spaces (table names) against the timestamps region data

Annotations
@Override
isUpToDateback to summary
public boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.TimestampsCache.isUpToDate.

Doc from org.hibernate.cache.spi.TimestampsCache.isUpToDate.

Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.

Parameters
spaces:String[]

The spaces to check

timestamp:Long

The timestamp from the transaction when the query results were cached.

session:SharedSessionContractImplementor

The session whether this check originated.

Returns:boolean

Whether all those spaces are up-to-date

Annotations
@Override
preInvalidateback to summary
public void preInvalidate(String[] spaces, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.TimestampsCache.preInvalidate.

Doc from org.hibernate.cache.spi.TimestampsCache.preInvalidate.

Perform pre-invalidation of the passed spaces (table names) against the timestamps region data

Annotations
@Override