|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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(String entityName) Constructor which accepts an entityName |
|
HibernateCacheStore(String sEntityName, File configurationFile) Constructor which accepts an entityName and a hibernate configuration resource. |
|
HibernateCacheStore(String sEntityName, String sResource) Constructor which accepts an entityName and a hibernate configuration resource. |
Method Summary | |
---|---|
void |
erase(Object key) Erase a Hibernate entity given an id (key) |
void |
eraseAll(Collection keys) Erase a set of Hibernate entities given an collection of ids (keys) |
void |
store(Object key, Object value) Store a Hibernate entity given an id (key) and entity (value) <p/> The entity must have an identifier attribute, and it must be either null (undefined) or equal to the cache key. |
void |
storeAll(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(String entityName)
entityName
- the Hibernate entity (the fully-qualified class name)public HibernateCacheStore(String sEntityName, String sResource)
sEntityName
- Hibernate entity (i.e. the HQL table name)sResource
- Hibernate config classpath resource (e.g. hibernate.cfg.xml)public HibernateCacheStore(String sEntityName, File configurationFile)
sEntityName
- Hibernate entity (i.e. the HQL table name)configurationFile
- Hibernate config file (e.g. hibernate.cfg.xml)Method Detail |
---|
public void store(Object key, Object value)
store
in interface CacheStore
key
- the cache key; specifically, the entity idvalue
- the cache value; specifically, the entitypublic void storeAll(Map entries)
storeAll
in interface CacheStore
entries
- a mapping of ids (keys) to entities (values)public void erase(Object key)
erase
in interface CacheStore
key
- the cache key; specifically, the entity idpublic void eraseAll(Collection keys)
eraseAll
in interface CacheStore
keys
- the cache keys; specifically, the entity ids
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |