Package | Description |
---|---|
org.hibernate.cache |
<p>
This package defines API of the Hibernate second level cache service.
|
org.hibernate.cache.spi |
<p>
Defines the Hibernate second level caching SPI.
|
org.hibernate.cache.spi.access |
<p>
Defines contracts for transactional and concurrent access to cached
entity and
collection data. |
org.hibernate.persister.collection |
<p>
This package abstracts the persistence mechanism for collections.
|
Modifier and Type | Class and Description |
---|---|
class |
NoCacheRegionFactoryAvailableException
Indicates a condition where a second-level cache implementation was expected to be to available, but
none was found on the classpath.
|
Modifier and Type | Method and Description |
---|---|
NaturalIdRegionAccessStrategy |
NaturalIdRegion.buildAccessStrategy(AccessType accessType)
Build an access strategy for the requested access type.
|
CollectionRegionAccessStrategy |
CollectionRegion.buildAccessStrategy(AccessType accessType)
Build an access strategy for the requested access type.
|
EntityRegionAccessStrategy |
EntityRegion.buildAccessStrategy(AccessType accessType)
Build an access strategy for the requested access type.
|
default CollectionRegion |
RegionFactory.buildCollectionRegion(String regionName,
Map<String,Object> configValues,
CacheDataDescription metadata)
Build a cache region specialized for storing collection data.
|
CollectionRegion |
RegionFactory.buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
Build a cache region specialized for storing collection data.
|
default EntityRegion |
RegionFactory.buildEntityRegion(String regionName,
Map<String,Object> configValues,
CacheDataDescription metadata)
Build a cache region specialized for storing entity data.
|
EntityRegion |
RegionFactory.buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
Deprecated.
(since 5.2) use the form taking Map instead
|
default NaturalIdRegion |
RegionFactory.buildNaturalIdRegion(String regionName,
Map<String,Object> configValues,
CacheDataDescription metadata)
Build a cache region specialized for storing NaturalId to Primary Key mappings.
|
NaturalIdRegion |
RegionFactory.buildNaturalIdRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
Deprecated.
(since 5.2) use the form accepting a Map instead
|
QueryResultsRegion |
RegionFactory.buildQueryResultsRegion(String regionName,
Properties properties)
Deprecated.
(since 5.2) use the form taking Map instead
|
default TimestampsRegion |
RegionFactory.buildTimestampsRegion(String regionName,
Map<String,Object> configValues)
Build a cache region specialized for storing update-timestamps data.
|
TimestampsRegion |
RegionFactory.buildTimestampsRegion(String regionName,
Properties properties)
Deprecated.
(since 5.2) use the form taking Map
|
void |
UpdateTimestampsCache.clear()
Clear the update-timestamps data.
|
void |
QueryCache.clear()
Clear items from the query cache.
|
void |
Region.destroy()
The "end state" contract of the region’s lifecycle.
|
void |
GeneralDataRegion.evict(Object key)
Evict an item from the cache immediately (without regard for transaction
isolation).
|
void |
GeneralDataRegion.evictAll()
Evict all contents of this particular cache region (without regard for transaction
isolation).
|
Object |
GeneralDataRegion.get(SharedSessionContractImplementor session,
Object key)
Get an item from the cache.
|
void |
UpdateTimestampsCache.invalidate(Serializable[] spaces,
SharedSessionContractImplementor session)
Perform invalidation.
|
boolean |
UpdateTimestampsCache.isUpToDate(Set<Serializable> spaces,
Long timestamp,
SharedSessionContractImplementor session)
Perform an up-to-date check for the given set of query spaces.
|
void |
UpdateTimestampsCache.preInvalidate(Serializable[] spaces,
SharedSessionContractImplementor session)
Perform pre-invalidation.
|
void |
GeneralDataRegion.put(SharedSessionContractImplementor session,
Object key,
Object value)
Put an item into the cache.
|
default void |
RegionFactory.start(SessionFactoryOptions settings,
Map<String,Object> configValues)
Lifecycle callback to perform any necessary initialization of the
underlying cache implementation(s).
|
void |
RegionFactory.start(SessionFactoryOptions settings,
Properties properties)
Deprecated.
(since 5.2) use the form accepting map instead.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NaturalIdRegionAccessStrategy.afterInsert(SharedSessionContractImplementor session,
Object key,
Object value)
Called after an item has been inserted (after the transaction completes),
instead of calling release().
|
boolean |
EntityRegionAccessStrategy.afterInsert(SharedSessionContractImplementor session,
Object key,
Object value,
Object version)
Called after an item has been inserted (after the transaction completes),
instead of calling release().
|
boolean |
EntityRegionAccessStrategy.afterUpdate(SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion,
SoftLock lock)
Called after an item has been updated (after the transaction completes),
instead of calling release().
|
boolean |
NaturalIdRegionAccessStrategy.afterUpdate(SharedSessionContractImplementor session,
Object key,
Object value,
SoftLock lock)
Called after an item has been updated (after the transaction completes),
instead of calling release().
|
void |
RegionAccessStrategy.evict(Object key)
Forcibly evict an item from the cache immediately without regard for transaction
isolation.
|
void |
RegionAccessStrategy.evictAll()
Forcibly evict all items from the cache immediately without regard for transaction
isolation.
|
Object |
RegionAccessStrategy.get(SharedSessionContractImplementor session,
Object key,
long txTimestamp)
Attempt to retrieve an object from the cache.
|
boolean |
NaturalIdRegionAccessStrategy.insert(SharedSessionContractImplementor session,
Object key,
Object value)
Called after an item has been inserted (before the transaction completes),
instead of calling evict().
|
boolean |
EntityRegionAccessStrategy.insert(SharedSessionContractImplementor session,
Object key,
Object value,
Object version)
Called after an item has been inserted (before the transaction completes),
instead of calling evict().
|
SoftLock |
RegionAccessStrategy.lockItem(SharedSessionContractImplementor session,
Object key,
Object version)
We are going to attempt to update/delete the keyed object.
|
SoftLock |
RegionAccessStrategy.lockRegion()
Lock the entire region
|
boolean |
RegionAccessStrategy.putFromLoad(SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version)
Attempt to cache an object, after loading from the database.
|
boolean |
RegionAccessStrategy.putFromLoad(SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
Attempt to cache an object, after loading from the database, explicitly
specifying the minimalPut behavior.
|
void |
RegionAccessStrategy.remove(SharedSessionContractImplementor session,
Object key)
Called after an item has become stale (before the transaction completes).
|
void |
RegionAccessStrategy.removeAll()
Called to evict data from the entire region
|
void |
RegionAccessStrategy.unlockItem(SharedSessionContractImplementor session,
Object key,
SoftLock lock)
Called when we have finished the attempted update/delete (which may or
may not have been successful), after transaction completion.
|
void |
RegionAccessStrategy.unlockRegion(SoftLock lock)
Called after we have finished the attempted invalidation of the entire
region
|
boolean |
NaturalIdRegionAccessStrategy.update(SharedSessionContractImplementor session,
Object key,
Object value)
Called after an item has been updated (before the transaction completes),
instead of calling evict().
|
boolean |
EntityRegionAccessStrategy.update(SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion)
Called after an item has been updated (before the transaction completes),
instead of calling evict().
|
Constructor and Description |
---|
AbstractCollectionPersister(Collection collectionBinding,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext creationContext) |
BasicCollectionPersister(Collection collectionBinding,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext creationContext) |
OneToManyPersister(Collection collectionBinding,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext creationContext) |
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.