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
Imports
java.util.Collection, org.hibernate.cache.spi.RegionFactory, .TimestampsCache, .TimestampsRegion, org.hibernate.engine.spi.SessionEventListenerManager, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.event.spi.EventManager, .HibernateMonitoringEvent, org.hibernate.stat.spi.StatisticsImplementor, org.jboss.logging.Logger

Standard implementation of TimestampsCache
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final boolean
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 timestamp 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 timestamp region data.
private boolean
public boolean
isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor 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 boolean
isUpToDate(Collection<String> spaces, Long timestamp, SharedSessionContractImplementor 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 timestamp region data.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUG_ENABLEDback to summary
public static final boolean DEBUG_ENABLED
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(String 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 timestamp data.

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 timestamp region data.

Annotations
@Override
isSpaceOutOfDateback to summary
private boolean isSpaceOutOfDate(String space, Long timestamp, SharedSessionContractImplementor session, StatisticsImplementor statistics)
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.

Annotations
@Override
isUpToDateback to summary
public boolean isUpToDate(Collection<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.

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 timestamp region data.

Annotations
@Override