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

public Class TimestampsCacheDisabledImpl

extends Object
implements TimestampsCache
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.spi.TimestampsCache, org.hibernate.cache.spi.UpdateTimestampsCache
Imports
org.hibernate.cache.spi.TimestampsCache, .TimestampsRegion, org.hibernate.engine.spi.SharedSessionContractImplementor, org.jboss.logging.Logger

Deprecated

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

TimestampsRegionAccess implementation for cases where query results caching (or second level caching overall) is disabled.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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

Constructor Detail

TimestampsCacheDisabledImplback to summary
public TimestampsCacheDisabledImpl()

Method Detail

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