Package | Description |
---|---|
org.hibernate.action |
This package defines "actions" that are scheduled for
asycnchronous execution by the event listeners.
|
org.hibernate.cache |
This package defines APIs/SPIs and implementations for the Hibernate second-level cache.
|
org.hibernate.cache.access |
Defines contracts for transactional and concurrent access to cached
entity and
collection data. |
org.hibernate.cache.impl | |
org.hibernate.cache.impl.bridge | |
org.hibernate.persister.collection |
This package abstracts the persistence mechanism for collections.
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionAction.beforeExecutions() |
void |
EntityUpdateAction.doAfterTransactionCompletion(boolean success,
SessionImplementor session) |
protected void |
CollectionAction.evict() |
Constructor and Description |
---|
CollectionAction(CollectionPersister persister,
PersistentCollection collection,
Serializable key,
SessionImplementor session) |
CollectionRecreateAction(PersistentCollection collection,
CollectionPersister persister,
Serializable id,
SessionImplementor session) |
CollectionRemoveAction(Object affectedOwner,
CollectionPersister persister,
Serializable id,
boolean emptySnapshot,
SessionImplementor session)
Removes a persistent collection from a specified owner.
|
CollectionRemoveAction(PersistentCollection collection,
CollectionPersister persister,
Serializable id,
boolean emptySnapshot,
SessionImplementor session)
Removes a persistent collection from its loaded owner.
|
CollectionUpdateAction(PersistentCollection collection,
CollectionPersister persister,
Serializable id,
boolean emptySnapshot,
SessionImplementor session) |
Modifier and Type | Class and Description |
---|---|
class |
NoCachingEnabledException
Implementation of NoCachingEnabledException.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NonstrictReadWriteCache.afterInsert(Object key,
Object value,
Object version)
Do nothing.
|
boolean |
ReadWriteCache.afterInsert(Object key,
Object value,
Object version)
Add the new item to the cache, checking that no other transaction has
accessed the item.
|
boolean |
ReadOnlyCache.afterInsert(Object key,
Object value,
Object version)
Do nothing.
|
boolean |
TransactionalCache.afterInsert(Object key,
Object value,
Object version)
Do nothing.
|
boolean |
CacheConcurrencyStrategy.afterInsert(Object key,
Object value,
Object version)
Deprecated.
Called after an item has been inserted (after the transaction completes),
instead of calling release().
|
boolean |
NonstrictReadWriteCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock lock)
Invalidate the item (again, for safety).
|
boolean |
ReadWriteCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock clientLock)
Re-cache the updated state, if and only if there there are
no other concurrent soft locks.
|
boolean |
ReadOnlyCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock lock)
Unsupported!
|
boolean |
TransactionalCache.afterUpdate(Object key,
Object value,
Object version,
SoftLock clientLock)
Do nothing.
|
boolean |
CacheConcurrencyStrategy.afterUpdate(Object key,
Object value,
Object version,
SoftLock lock)
Deprecated.
Called after an item has been updated (after the transaction completes),
instead of calling release().
|
EntityRegionAccessStrategy |
EntityRegion.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.
|
Cache |
EhCacheProvider.buildCache(String name,
Properties properties)
Builds a Cache.
|
Cache |
SingletonEhCacheProvider.buildCache(String name,
Properties properties)
Builds a Cache.
|
Cache |
NoCacheProvider.buildCache(String regionName,
Properties properties)
Configure the cache
|
Cache |
CacheProvider.buildCache(String regionName,
Properties properties)
Deprecated.
Configure the cache
|
Cache |
HashtableCacheProvider.buildCache(String regionName,
Properties properties) |
CollectionRegion |
DelegatingRegionFactory.buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata) |
CollectionRegion |
RegionFactory.buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
Build a cache region specialized for storing collection data.
|
EntityRegion |
DelegatingRegionFactory.buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata) |
EntityRegion |
RegionFactory.buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
Build a cache region specialized for storing entity data.
|
QueryResultsRegion |
DelegatingRegionFactory.buildQueryResultsRegion(String regionName,
Properties properties) |
QueryResultsRegion |
RegionFactory.buildQueryResultsRegion(String regionName,
Properties properties)
Build a cache region specialized for storing query results
|
TimestampsRegion |
DelegatingRegionFactory.buildTimestampsRegion(String regionName,
Properties properties) |
TimestampsRegion |
RegionFactory.buildTimestampsRegion(String regionName,
Properties properties)
Build a cache region specialized for storing update-timestamps data.
|
void |
EhCache.clear()
Remove all elements in the cache, but leave the cache
in a useable state.
|
void |
NonstrictReadWriteCache.clear() |
void |
ReadWriteCache.clear() |
void |
ReadOnlyCache.clear() |
void |
TransactionalCache.clear() |
void |
HashtableCache.clear() |
void |
UpdateTimestampsCache.clear() |
void |
QueryCache.clear() |
void |
CacheConcurrencyStrategy.clear()
Deprecated.
Evict all items from the cache immediately.
|
void |
StandardQueryCache.clear() |
void |
Cache.clear()
Deprecated.
Clear the cache
|
void |
EhCache.destroy()
Remove the cache and make it unuseable.
|
void |
Region.destroy()
The "end state" contract of the region's lifecycle.
|
void |
HashtableCache.destroy() |
void |
Cache.destroy()
Deprecated.
Clean up
|
void |
NonstrictReadWriteCache.evict(Object key)
Invalidate the item
|
void |
ReadWriteCache.evict(Object key)
Do nothing.
|
void |
GeneralDataRegion.evict(Object key)
Evict an item from the cache immediately (without regard for transaction
isolation).
|
void |
ReadOnlyCache.evict(Object key)
Do nothing.
|
void |
TransactionalCache.evict(Object key) |
void |
CacheConcurrencyStrategy.evict(Object key)
Deprecated.
Called after an item has become stale (before the transaction completes).
|
void |
GeneralDataRegion.evictAll()
Evict all contents of this particular cache region (without regard for transaction
isolation).
|
Object |
EhCache.get(Object key)
Gets a value of an element which matches the given key.
|
Object |
GeneralDataRegion.get(Object key)
Get an item from the cache.
|
Object |
HashtableCache.get(Object key) |
Object |
Cache.get(Object key)
Deprecated.
Get an item from the cache, nontransactionally
|
Object |
NonstrictReadWriteCache.get(Object key,
long txTimestamp)
Get the most recent version, if available.
|
Object |
ReadWriteCache.get(Object key,
long txTimestamp)
Do not return an item whose timestamp is later than the current
transaction timestamp.
|
Object |
ReadOnlyCache.get(Object key,
long timestamp) |
Object |
TransactionalCache.get(Object key,
long txTimestamp) |
Object |
CacheConcurrencyStrategy.get(Object key,
long txTimestamp)
Deprecated.
Attempt to retrieve an object from the cache.
|
boolean |
TransactionalCache.insert(Object key,
Object value,
Object currentVersion) |
boolean |
CacheConcurrencyStrategy.insert(Object key,
Object value,
Object currentVersion)
Deprecated.
Called after an item has been inserted (before the transaction completes),
instead of calling evict().
|
void |
UpdateTimestampsCache.invalidate(Serializable[] spaces) |
void |
EhCache.lock(Object key)
Calls to this method should perform there own synchronization.
|
void |
HashtableCache.lock(Object key) |
void |
Cache.lock(Object key)
Deprecated.
If this is a clustered cache, lock the item
|
SoftLock |
NonstrictReadWriteCache.lock(Object key,
Object version)
Do nothing.
|
SoftLock |
ReadWriteCache.lock(Object key,
Object version)
Stop any other transactions reading or writing this item to/from
the cache.
|
SoftLock |
TransactionalCache.lock(Object key,
Object version)
Do nothing, returning null.
|
SoftLock |
CacheConcurrencyStrategy.lock(Object key,
Object version)
Deprecated.
We are going to attempt to update/delete the keyed object.
|
void |
UpdateTimestampsCache.preinvalidate(Serializable[] spaces) |
void |
EhCache.put(Object key,
Object value)
Puts an object into the cache.
|
void |
GeneralDataRegion.put(Object key,
Object value)
Put an item into the cache.
|
void |
HashtableCache.put(Object key,
Object value) |
void |
Cache.put(Object key,
Object value)
Deprecated.
Add an item to the cache, nontransactionally, with
failfast semantics
|
boolean |
NonstrictReadWriteCache.put(Object key,
Object value,
long txTimestamp,
Object version,
Comparator versionComparator,
boolean minimalPut)
Add an item to the cache.
|
boolean |
ReadWriteCache.put(Object key,
Object value,
long txTimestamp,
Object version,
Comparator versionComparator,
boolean minimalPut)
Do not add an item to the cache unless the current transaction
timestamp is later than the timestamp at which the item was
invalidated.
|
boolean |
ReadOnlyCache.put(Object key,
Object value,
long timestamp,
Object version,
Comparator versionComparator,
boolean minimalPut) |
boolean |
TransactionalCache.put(Object key,
Object value,
long txTimestamp,
Object version,
Comparator versionComparator,
boolean minimalPut) |
boolean |
CacheConcurrencyStrategy.put(Object key,
Object value,
long txTimestamp,
Object version,
Comparator versionComparator,
boolean minimalPut)
Deprecated.
Attempt to cache an object, after loading from the database.
|
Object |
EhCache.read(Object key) |
Object |
HashtableCache.read(Object key) |
Object |
Cache.read(Object key)
Deprecated.
Get an item from the cache
|
void |
NonstrictReadWriteCache.release(Object key,
SoftLock lock)
Invalidate the item (again, for safety).
|
void |
ReadWriteCache.release(Object key,
SoftLock clientLock)
Release the soft lock on the item.
|
void |
TransactionalCache.release(Object key,
SoftLock clientLock)
Do nothing.
|
void |
CacheConcurrencyStrategy.release(Object key,
SoftLock lock)
Deprecated.
Called when we have finished the attempted update/delete (which may or
may not have been successful), after transaction completion.
|
void |
EhCache.remove(Object key)
Removes the element which matches the key.
|
void |
NonstrictReadWriteCache.remove(Object key) |
void |
ReadWriteCache.remove(Object key) |
void |
ReadOnlyCache.remove(Object key) |
void |
TransactionalCache.remove(Object key) |
void |
HashtableCache.remove(Object key) |
void |
CacheConcurrencyStrategy.remove(Object key)
Deprecated.
Evict an item from the cache immediately (without regard for transaction
isolation).
|
void |
Cache.remove(Object key)
Deprecated.
Remove an item from the cache
|
void |
EhCacheProvider.start(Properties properties)
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
SingletonEhCacheProvider.start(Properties properties)
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
NoCacheProvider.start(Properties properties)
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory
construction.
|
void |
AbstractJndiBoundCacheProvider.start(Properties properties)
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory
construction.
|
void |
CacheProvider.start(Properties properties)
Deprecated.
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
HashtableCacheProvider.start(Properties properties)
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
DelegatingRegionFactory.start(Settings settings,
Properties properties) |
void |
RegionFactory.start(Settings settings,
Properties properties)
Lifecycle callback to perform any necessary initialization of the
underlying cache implementation(s).
|
void |
EhCache.unlock(Object key)
Calls to this method should perform there own synchronization.
|
void |
HashtableCache.unlock(Object key) |
void |
Cache.unlock(Object key)
Deprecated.
If this is a clustered cache, unlock the item
|
void |
EhCache.update(Object key,
Object value)
Puts an object into the cache.
|
void |
HashtableCache.update(Object key,
Object value) |
void |
Cache.update(Object key,
Object value)
Deprecated.
Add an item to the cache
|
boolean |
TransactionalCache.update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
boolean |
CacheConcurrencyStrategy.update(Object key,
Object value,
Object currentVersion,
Object previousVersion)
Deprecated.
Called after an item has been updated (before the transaction completes),
instead of calling evict().
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityRegionAccessStrategy.afterInsert(Object key,
Object value,
Object version)
Called after an item has been inserted (after the transaction completes),
instead of calling release().
|
boolean |
EntityRegionAccessStrategy.afterUpdate(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().
|
void |
CollectionRegionAccessStrategy.evict(Object key)
Forcibly evict an item from the cache immediately without regard for transaction
isolation.
|
void |
EntityRegionAccessStrategy.evict(Object key)
Forcibly evict an item from the cache immediately without regard for transaction
isolation.
|
void |
CollectionRegionAccessStrategy.evictAll()
Forcibly evict all items from the cache immediately without regard for transaction
isolation.
|
void |
EntityRegionAccessStrategy.evictAll()
Forcibly evict all items from the cache immediately without regard for transaction
isolation.
|
Object |
CollectionRegionAccessStrategy.get(Object key,
long txTimestamp)
Attempt to retrieve an object from the cache.
|
Object |
EntityRegionAccessStrategy.get(Object key,
long txTimestamp)
Attempt to retrieve an object from the cache.
|
boolean |
EntityRegionAccessStrategy.insert(Object key,
Object value,
Object version)
Called after an item has been inserted (before the transaction completes),
instead of calling evict().
|
SoftLock |
CollectionRegionAccessStrategy.lockItem(Object key,
Object version)
We are going to attempt to update/delete the keyed object.
|
SoftLock |
EntityRegionAccessStrategy.lockItem(Object key,
Object version)
We are going to attempt to update/delete the keyed object.
|
SoftLock |
CollectionRegionAccessStrategy.lockRegion()
Lock the entire region
|
SoftLock |
EntityRegionAccessStrategy.lockRegion()
Lock the entire region
|
boolean |
CollectionRegionAccessStrategy.putFromLoad(Object key,
Object value,
long txTimestamp,
Object version)
Attempt to cache an object, after loading from the database.
|
boolean |
EntityRegionAccessStrategy.putFromLoad(Object key,
Object value,
long txTimestamp,
Object version)
Attempt to cache an object, after loading from the database.
|
boolean |
CollectionRegionAccessStrategy.putFromLoad(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.
|
boolean |
EntityRegionAccessStrategy.putFromLoad(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 |
CollectionRegionAccessStrategy.remove(Object key)
Called after an item has become stale (before the transaction completes).
|
void |
EntityRegionAccessStrategy.remove(Object key)
Called after an item has become stale (before the transaction completes).
|
void |
CollectionRegionAccessStrategy.removeAll()
Called to evict data from the entire region
|
void |
EntityRegionAccessStrategy.removeAll()
Called to evict data from the entire region
|
void |
CollectionRegionAccessStrategy.unlockItem(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 |
EntityRegionAccessStrategy.unlockItem(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 |
CollectionRegionAccessStrategy.unlockRegion(SoftLock lock)
Called after we have finished the attempted invalidation of the entire
region
|
void |
EntityRegionAccessStrategy.unlockRegion(SoftLock lock)
Called after we have finished the attempted invalidation of the entire
region
|
boolean |
EntityRegionAccessStrategy.update(Object key,
Object value,
Object currentVersion,
Object previousVersion)
Called after an item has been updated (before the transaction completes),
instead of calling evict().
|
Modifier and Type | Method and Description |
---|---|
CollectionRegion |
NoCachingRegionFactory.buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata) |
EntityRegion |
NoCachingRegionFactory.buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata) |
QueryResultsRegion |
NoCachingRegionFactory.buildQueryResultsRegion(String regionName,
Properties properties) |
TimestampsRegion |
NoCachingRegionFactory.buildTimestampsRegion(String regionName,
Properties properties) |
void |
NoCachingRegionFactory.start(Settings settings,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityAccessStrategyAdapter.afterInsert(Object key,
Object value,
Object version) |
boolean |
EntityAccessStrategyAdapter.afterUpdate(Object key,
Object value,
Object currentVersion,
Object previousVersion,
SoftLock lock) |
CollectionRegionAccessStrategy |
CollectionRegionAdapter.buildAccessStrategy(AccessType accessType) |
EntityRegionAccessStrategy |
EntityRegionAdapter.buildAccessStrategy(AccessType accessType) |
CollectionRegion |
RegionFactoryCacheProviderBridge.buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata) |
EntityRegion |
RegionFactoryCacheProviderBridge.buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata) |
QueryResultsRegion |
RegionFactoryCacheProviderBridge.buildQueryResultsRegion(String regionName,
Properties properties) |
TimestampsRegion |
RegionFactoryCacheProviderBridge.buildTimestampsRegion(String regionName,
Properties properties) |
void |
BaseRegionAdapter.clear() |
void |
BaseRegionAdapter.destroy() |
void |
BaseGeneralDataRegionAdapter.evict(Object key) |
void |
CollectionAccessStrategyAdapter.evict(Object key) |
void |
EntityAccessStrategyAdapter.evict(Object key) |
void |
BaseGeneralDataRegionAdapter.evictAll() |
void |
CollectionAccessStrategyAdapter.evictAll() |
void |
EntityAccessStrategyAdapter.evictAll() |
Object |
BaseGeneralDataRegionAdapter.get(Object key) |
Object |
CollectionAccessStrategyAdapter.get(Object key,
long txTimestamp) |
Object |
EntityAccessStrategyAdapter.get(Object key,
long txTimestamp) |
boolean |
EntityAccessStrategyAdapter.insert(Object key,
Object value,
Object version) |
SoftLock |
CollectionAccessStrategyAdapter.lockItem(Object key,
Object version) |
SoftLock |
EntityAccessStrategyAdapter.lockItem(Object key,
Object version) |
SoftLock |
CollectionAccessStrategyAdapter.lockRegion() |
SoftLock |
EntityAccessStrategyAdapter.lockRegion() |
void |
BaseGeneralDataRegionAdapter.put(Object key,
Object value) |
boolean |
CollectionAccessStrategyAdapter.putFromLoad(Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
EntityAccessStrategyAdapter.putFromLoad(Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
CollectionAccessStrategyAdapter.putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
boolean |
EntityAccessStrategyAdapter.putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
void |
CollectionAccessStrategyAdapter.remove(Object key) |
void |
EntityAccessStrategyAdapter.remove(Object key) |
void |
CollectionAccessStrategyAdapter.removeAll() |
void |
EntityAccessStrategyAdapter.removeAll() |
void |
RegionFactoryCacheProviderBridge.start(Settings settings,
Properties properties) |
void |
CollectionAccessStrategyAdapter.unlockItem(Object key,
SoftLock lock) |
void |
EntityAccessStrategyAdapter.unlockItem(Object key,
SoftLock lock) |
void |
CollectionAccessStrategyAdapter.unlockRegion(SoftLock lock) |
void |
EntityAccessStrategyAdapter.unlockRegion(SoftLock lock) |
boolean |
EntityAccessStrategyAdapter.update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
Constructor and Description |
---|
AbstractCollectionPersister(Collection collection,
CollectionRegionAccessStrategy cacheAccessStrategy,
Configuration cfg,
SessionFactoryImplementor factory) |
BasicCollectionPersister(Collection collection,
CollectionRegionAccessStrategy cacheAccessStrategy,
Configuration cfg,
SessionFactoryImplementor factory) |
OneToManyPersister(Collection collection,
CollectionRegionAccessStrategy cacheAccessStrategy,
Configuration cfg,
SessionFactoryImplementor factory) |
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved