|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.hibernate.HibernateCacheLoader
com.tangosol.coherence.hibernate.HibernateCacheStore
public class HibernateCacheStore
Data-driven CacheStore implementation for Hibernate tables
Field Summary |
---|
Fields inherited from class com.tangosol.coherence.hibernate.HibernateCacheLoader |
---|
PARAM_IDS |
Constructor Summary | |
---|---|
HibernateCacheStore() Default constructor. |
|
HibernateCacheStore(java.lang.String entityName) Constructor which accepts an entityName |
|
HibernateCacheStore(java.lang.String sEntityName, java.io.File configurationFile) Constructor which accepts an entityName and a hibernate configuration resource. |
|
HibernateCacheStore(java.lang.String sEntityName, SessionFactory sessionFactory) Constructor which accepts an entityName and a Hibernate SessionFactory. |
|
HibernateCacheStore(java.lang.String sEntityName, java.lang.String sResource) Constructor which accepts an entityName and a hibernate configuration resource. |
Method Summary | |
---|---|
void |
erase(java.lang.Object key) Erase a Hibernate entity given an id (key) |
void |
eraseAll(java.util.Collection keys) Erase a set of Hibernate entities given an collection of ids (keys) |
void |
store(java.lang.Object key, java.lang.Object value) Store a Hibernate entity given an id (key) and entity (value) The entity must have an identifier attribute, and it must be either null (undefined) or equal to the cache key. |
void |
storeAll(java.util.Map entries) Store a collection of Hibernate entities given a Map of ids (keys) and entities (values) |
Methods inherited from class com.tangosol.coherence.hibernate.HibernateCacheLoader |
---|
closeSession, createEntityFromId, ensureInitialized, getEntityClassMetadata, getEntityName, getLoadAllQuery, getSessionFactory, initialize, load, loadAll, openSession, setEntityClassMetadata, setEntityName, setLoadAllQuery, setSessionFactory, validateIdentifier |
Methods inherited from interface com.tangosol.net.cache.CacheLoader |
---|
load, loadAll |
Constructor Detail |
---|
public HibernateCacheStore()
public HibernateCacheStore(java.lang.String entityName)
entityName
- the Hibernate entity (the fully-qualified class name)public HibernateCacheStore(java.lang.String sEntityName, java.lang.String sResource)
sEntityName
- Hibernate entity (i.e. the HQL table name)sResource
- Hibernate config classpath resource (e.g. hibernate.cfg.xml)public HibernateCacheStore(java.lang.String sEntityName, java.io.File configurationFile)
sEntityName
- Hibernate entity (i.e. the HQL table name)configurationFile
- Hibernate config file (e.g. hibernate.cfg.xml)public HibernateCacheStore(java.lang.String sEntityName, SessionFactory sessionFactory)
sEntityName
- Hibernate entity (i.e. the HQL table name)sessionFactory
- Hibernate SessionFactoryMethod Detail |
---|
public void store(java.lang.Object key, java.lang.Object value)
The entity must have an identifier attribute, and it must be either null (undefined) or equal to the cache key.
store
in interface CacheStore
key
- the cache key; specifically, the entity idvalue
- the cache value; specifically, the entitypublic void storeAll(java.util.Map entries)
storeAll
in interface CacheStore
entries
- a mapping of ids (keys) to entities (values)public void erase(java.lang.Object key)
erase
in interface CacheStore
key
- the cache key; specifically, the entity idpublic void eraseAll(java.util.Collection keys)
eraseAll
in interface CacheStore
keys
- the cache keys; specifically, the entity ids
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |