org.hibernate.cache

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Database ORM » hibernate » org.hibernate.cache 
org.hibernate.cache

This package defines APIs/SPIs and implementations for the Hibernate second-level cache.

The legacy (and now deprecated) approach to caching is defined by the {@link org.hibernate.cache.CacheProvider} and {@link org.hibernate.cache.Cache} interfaces as well as the {@link org.hibernate.cache.CacheConcurrencyStrategy} interface along with the various implementations of all these interfaces. In that scheme, a {@link org.hibernate.cache.CacheProvider} defined how to configure and perform lifecycle operations in regards to a particular underlying caching library; it also defined how to build {@link org.hibernate.cache.Cache} instances which in turn defined how to access the "regions" of the underlying cache instance. For entity and collection data cache regions, {@link org.hibernate.cache.CacheConcurrencyStrategy} wrapped access to those cache regions to apply transactional/concurrent access semantics.

The improved approach is based on {@link org.hibernate.cache.RegionFactory}, the various {@link org.hibernate.cache.Region} specializations and the two access strategies contracts ({@link org.hibernate.cache.access.EntityRegionAccessStrategy} and {@link org.hibernate.cache.access.CollectionRegionAccessStrategy}). The general approach here is that {@link org.hibernate.cache.RegionFactory} defined how to configure and perform lifecycle operations in regards to a particular underlying caching library (or libraries). {@link org.hibernate.cache.RegionFactory} also defines how to build specialized {@link org.hibernate.cache.Region} instances based on the type of data we will be storing in that given region. The fact that {@link org.hibernate.cache.RegionFactory} is asked to build specialized regions (as opposed to just general access) is the first improvement over the legacy scheme. The second improvement is the fact that the regions (well the ones like entity and collection regions that are responsible for storing {@link org.hibernate.cache.TransactionalDataRegion transactional} data) are asked to build their own access strategies (see {@link org.hibernate.cache.EntityRegion#buildAccessStrategy} and {@link org.hibernate.cache.CollectionRegion#buildAccessStrategy}).

Java Source File NameTypeComment
AbstractJndiBoundCacheProvider.javaClass Support for CacheProvider implementations which are backed by caches bound into JNDI namespace.
Cache.javaInterface Implementors define a caching algorithm.
CacheConcurrencyStrategy.javaInterface Implementors manage transactional access to cached data.
CacheDataDescription.javaInterface Describes attributes regarding the type of data to be cached.
CacheException.javaClass
CacheFactory.javaClass
CacheKey.javaClass Allows multiple entity classes / collection roles to be stored in the same cache region.
CacheProvider.javaInterface Support for pluggable caches.
CollectionRegion.javaInterface Defines the contract for a cache region which will specifically be used to store collection data.
EhCache.javaClass EHCache plugin for Hibernate

EHCache uses a net.sf.ehcache.store.MemoryStore and a net.sf.ehcache.store.DiskStore . The net.sf.ehcache.store.DiskStore requires that both keys and values be java.io.Serializable . However the MemoryStore does not and in ehcache-1.2 nonSerializable Objects are permitted.

EhCacheProvider.javaClass Cache Provider plugin for ehcache-1.2.
EhCacheTest.javaClass
EntityRegion.javaInterface Defines the contract for a cache region which will specifically be used to store entity data.
FilterKey.javaClass Allows cached queries to be keyed by enabled filters.
GeneralDataRegion.javaInterface Contract for general-purpose cache regions.
HashtableCache.javaClass
HashtableCacheProvider.javaClass A simple in-memory Hashtable-based cache impl.
JndiBoundTreeCacheProvider.javaClass Support for JBossCache (TreeCache), where the cache instance is available via JNDI lookup.
NoCacheProvider.javaClass Implementation of NoCacheProvider.
NoCachingEnabledException.javaClass Implementation of NoCachingEnabledException.
NonstrictReadWriteCache.javaClass Caches data that is sometimes updated without ever locking the cache. If concurrent access to an item is possible, this concurrency strategy makes no guarantee that the item returned from the cache is the latest version available in the database.
OptimisticCache.javaInterface A contract for transactional cache implementations which support optimistic locking of items within the cache.

The optimisitic locking capabilities are only utilized for the entity cache regions.

Unlike the methods on the Cache interface, all the methods here will only ever be called from access scenarios where versioned data is actually a possiblity (i.e., entity data).

OptimisticCacheSource.javaInterface Contract for sources of optimistically lockable data sent to the second level cache.
OptimisticTreeCache.javaClass Represents a particular region within the given JBossCache TreeCache utilizing TreeCache's optimistic locking capabilities.
OptimisticTreeCacheProvider.javaClass Support for a standalone JBossCache TreeCache instance utilizing TreeCache's optimistic locking capabilities.
OptimisticTreeCacheTest.javaClass
OSCache.javaClass
OSCacheProvider.javaClass Support for OpenSymphony OSCache.
PessimisticTreeCacheTest.javaClass
QueryCache.javaInterface Defines the contract for caches capable of storing query results.
QueryCacheFactory.javaInterface Defines a factory for query cache instances.
QueryKey.javaClass A key that identifies a particular query with bound parameter values.
QueryKeyTest.javaClass Tests relating to QueryKey instances.
QueryResultsRegion.javaInterface Defines the contract for a cache region which will specifically be used to store query results.
ReadOnlyCache.javaClass Caches data that is never updated.
ReadWriteCache.javaClass Caches data that is sometimes updated while maintaining the semantics of "read committed" isolation level.
Region.javaInterface Defines a contract for accessing a particular named region within the underlying cache implementation.
RegionFactory.javaInterface Contract for building second level cache regions.

Implementors should define a constructor in one of two forms:

Use the first when we need to read config properties prior to RegionFactory.start being called.
SingletonEhCacheProvider.javaClass Singleton cache Provider plugin for Hibernate 3.2 and ehcache-1.2.
StandardQueryCache.javaClass The standard implementation of the Hibernate QueryCache interface.
StandardQueryCacheFactory.javaClass Standard Hibernate implementation of the QueryCacheFactory interface.
SwarmCache.javaClass
SwarmCacheProvider.javaClass Support for SwarmCache replicated cache.
Timestamper.javaClass Generates increasing identifiers (in a single VM only). Not valid across multiple VMs.
TimestampsRegion.javaInterface Defines the contract for a cache region which will specifically be used to store entity "update timestamps".
TransactionalCache.javaClass Support for fully transactional cache implementations like JBoss TreeCache.
TransactionalDataRegion.javaInterface Defines contract for regions which hold transactionally-managed data.
TransactionAwareCache.javaInterface
TreeCache.javaClass Represents a particular region within the given JBossCache TreeCache.
TreeCacheProvider.javaClass Support for a standalone JBossCache (TreeCache) instance.
UpdateTimestampsCache.javaClass Tracks the timestamps of the most recent updates to particular tables.
ww__w._j___av__a__2_s_.___c___o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.