org.hibernate.cache.RegionFactory |
Known Indirect Subclasses |
Contract for building second level cache regions.
Implementors should define a constructor in one of two forms:Properties
)start(Settings, Properties)
being called. For an example, have a look at
RegionFactoryCacheProviderBridge
where we need the properties in order to determine which legacy
CacheProvider
to use so that we can answer the
isMinimalPutsEnabledByDefault()
question for the
SettingsFactory
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build a cache region specialized for storing collection data.
| |||||||||||
Build a cache region specialized for storing entity data.
| |||||||||||
Build a cache region specialized for storing query results
| |||||||||||
Build a cache region specialized for storing update-timestamps data.
| |||||||||||
Get the default access type for
entity and
collection regions. | |||||||||||
By default should we perform "minimal puts" when using this second
level cache implementation?
| |||||||||||
Generate a timestamp.
| |||||||||||
Lifecycle callback to perform any necessary initialization of the
underlying cache implementation(s).
| |||||||||||
Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s).
|
Build a cache region specialized for storing collection data.
regionName | The name of the region. |
---|---|
properties | Configuration properties. |
metadata | Information regarding the type of data to be cached |
CacheException | Indicates problems building the region. |
---|
Build a cache region specialized for storing entity data.
regionName | The name of the region. |
---|---|
properties | Configuration properties. |
metadata | Information regarding the type of data to be cached |
CacheException | Indicates problems building the region. |
---|
Build a cache region specialized for storing query results
regionName | The name of the region. |
---|---|
properties | Configuration properties. |
CacheException | Indicates problems building the region. |
---|
Build a cache region specialized for storing update-timestamps data.
regionName | The name of the region. |
---|---|
properties | Configuration properties. |
CacheException | Indicates problems building the region. |
---|
Get the default access type for entity
and
collection
regions.
By default should we perform "minimal puts" when using this second level cache implementation?
Generate a timestamp.
This is generally used for cache content locking/unlocking purposes depending upon the access-strategy being used.Lifecycle callback to perform any necessary initialization of the
underlying cache implementation(s). Called exactly once during the
construction of a SessionFactoryImpl
.
settings | The settings in effect. |
---|---|
properties | The defined cfg properties |
CacheException | Indicates problems starting the L2 cache impl;
considered as a sign to stop SessionFactory
building.
|
---|
Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s). Called exactly once during
close()
.