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

public Class NoCachingRegionFactory

extends Object
implements RegionFactory
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.spi.RegionFactory, org.hibernate.service.spi.Stoppable, org.hibernate.service.Service, java.io.Serializable
Imports
java.util.Map, org.hibernate.boot.spi.SessionFactoryOptions, org.hibernate.cache.CacheException, .NoCacheRegionFactoryAvailableException, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext, .DomainDataRegionConfig, org.hibernate.cache.spi.CacheTransactionSynchronization, .DomainDataRegion, .QueryResultsRegion, .RegionFactory, .TimestampsRegion, org.hibernate.cache.spi.access.AccessType, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor

Factory used if no caching enabled in config...
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final NoCachingRegionFactory
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
public
NoCachingRegionFactory()

Constructs a NoCachingRegionFactory.

Method Summary

Modifier and TypeMethod and Description
public DomainDataRegion
buildDomainDataRegion(DomainDataRegionConfig
The user requested caching configuration for this Region
regionConfig
,
DomainDataRegionBuildingContext
Access to delegates useful in building the Region
buildingContext
)

Implements org.hibernate.cache.spi.RegionFactory.buildDomainDataRegion.

Create a named Region for holding domain model data
public QueryResultsRegion
buildQueryResultsRegion(String regionName, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.cache.spi.RegionFactory.buildQueryResultsRegion.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Create a named Region for holding query result sets.
public TimestampsRegion
buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.cache.spi.RegionFactory.buildTimestampsRegion.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Create a named Region for holding timestamps used to determine when a cached query result set is stale.
public CacheTransactionSynchronization
public AccessType
getDefaultAccessType()

Implements org.hibernate.cache.spi.RegionFactory.getDefaultAccessType.

Get the default access type for any "user model" data.
public boolean
isMinimalPutsEnabledByDefault()

Implements org.hibernate.cache.spi.RegionFactory.isMinimalPutsEnabledByDefault.

By default, should we perform "minimal puts" when using this second level cache implementation?
public long
public String
public void
start(SessionFactoryOptions
The settings in effect.
settings
,
Map<String, Object>
The available config values
configValues
)

Implements org.hibernate.cache.spi.RegionFactory.start.

Lifecycle callback to perform any necessary initialization of the underlying cache provider.
public void
stop()

Implements org.hibernate.service.spi.Stoppable.stop.

Stop phase notification
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final NoCachingRegionFactory INSTANCE

Singleton access

Constructor Detail

NoCachingRegionFactoryback to summary
public NoCachingRegionFactory()

Constructs a NoCachingRegionFactory. Although access should generally use INSTANCE

Method Detail

buildDomainDataRegionback to summary
public DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)

Implements org.hibernate.cache.spi.RegionFactory.buildDomainDataRegion.

Doc from org.hibernate.cache.spi.RegionFactory.buildDomainDataRegion.

Create a named Region for holding domain model data

Parameters
regionConfig:DomainDataRegionConfig

The user requested caching configuration for this Region

buildingContext:DomainDataRegionBuildingContext

Access to delegates useful in building the Region

Annotations
@Override
buildQueryResultsRegionback to summary
public QueryResultsRegion buildQueryResultsRegion(String regionName, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.cache.spi.RegionFactory.buildQueryResultsRegion.

Doc from org.hibernate.cache.spi.RegionFactory.buildQueryResultsRegion.

Deprecated

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

Create a named Region for holding query result sets.

Annotations
@Override
buildTimestampsRegionback to summary
public TimestampsRegion buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)

Implements org.hibernate.cache.spi.RegionFactory.buildTimestampsRegion.

Doc from org.hibernate.cache.spi.RegionFactory.buildTimestampsRegion.

Deprecated

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

Create a named Region for holding timestamps used to determine when a cached query result set is stale.

Annotations
@Override
createTransactionContextback to summary
public CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)

Overrides default org.hibernate.cache.spi.RegionFactory.createTransactionContext.

Annotations
@Override
getDefaultAccessTypeback to summary
public AccessType getDefaultAccessType()

Implements org.hibernate.cache.spi.RegionFactory.getDefaultAccessType.

Doc from org.hibernate.cache.spi.RegionFactory.getDefaultAccessType.

Get the default access type for any "user model" data.

Annotations
@Override
isMinimalPutsEnabledByDefaultback to summary
public boolean isMinimalPutsEnabledByDefault()

Implements org.hibernate.cache.spi.RegionFactory.isMinimalPutsEnabledByDefault.

Doc from org.hibernate.cache.spi.RegionFactory.isMinimalPutsEnabledByDefault.

By default, should we perform "minimal puts" when using this second level cache implementation?

Returns:boolean

True if "minimal puts" should be performed by default; false otherwise.

Annotations
@Override
nextTimestampback to summary
public long nextTimestamp()

Implements org.hibernate.cache.spi.RegionFactory.nextTimestamp.

Doc from org.hibernate.cache.spi.RegionFactory.nextTimestamp.

Generate a timestamp. This value is generally used for purpose of locking/unlocking cache content depending upon the access strategy being used. It's also expected that this be the value used by the CacheTransactionSynchronization created by this RegionFactory.

Annotations
@Override
qualifyback to summary
public String qualify(String regionName)

Implements org.hibernate.cache.spi.RegionFactory.qualify.

Annotations
@Override
startback to summary
public void start(SessionFactoryOptions settings, Map<String, Object> configValues) throws CacheException

Implements org.hibernate.cache.spi.RegionFactory.start.

Doc from org.hibernate.cache.spi.RegionFactory.start.

Lifecycle callback to perform any necessary initialization of the underlying cache provider. Called exactly once during the construction of a org.hibernate.internal.SessionFactoryImpl.

Parameters
settings:SessionFactoryOptions

The settings in effect.

configValues:Map<String, Object>

The available config values

Annotations
@Override
Exceptions
CacheException:
Indicates problems starting the L2 cache impl; considered as a sign to stop org.hibernate.SessionFactory building.
stopback to summary
public void stop()

Implements org.hibernate.service.spi.Stoppable.stop.

Doc from org.hibernate.service.spi.Stoppable.stop.

Stop phase notification

Annotations
@Override