Class CacheJdbcPersonStore
- java.lang.Object
-
- org.apache.ignite.cache.store.CacheStoreAdapter<java.lang.Long,Person>
-
- org.apache.ignite.examples.datagrid.store.jdbc.CacheJdbcPersonStore
-
- All Implemented Interfaces:
javax.cache.integration.CacheLoader<java.lang.Long,Person>,javax.cache.integration.CacheWriter<java.lang.Long,Person>,CacheStore<java.lang.Long,Person>
public class CacheJdbcPersonStore extends CacheStoreAdapter<java.lang.Long,Person>
Example ofCacheStoreimplementation that uses JDBC transaction with cache transactions and mapsLongtoPerson.
-
-
Constructor Summary
Constructors Constructor Description CacheJdbcPersonStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.Object key)Personload(java.lang.Long key)voidloadCache(IgniteBiInClosure<java.lang.Long,Person> clo, java.lang.Object... args)voidwrite(javax.cache.Cache.Entry<? extends java.lang.Long,? extends Person> entry)-
Methods inherited from class org.apache.ignite.cache.store.CacheStoreAdapter
deleteAll, loadAll, sessionEnd, toString, writeAll
-
-
-
-
Method Detail
-
load
public Person load(java.lang.Long key)
-
write
public void write(javax.cache.Cache.Entry<? extends java.lang.Long,? extends Person> entry)
-
delete
public void delete(java.lang.Object key)
-
loadCache
public void loadCache(IgniteBiInClosure<java.lang.Long,Person> clo, java.lang.Object... args)
- Specified by:
loadCachein interfaceCacheStore<java.lang.Long,Person>- Overrides:
loadCachein classCacheStoreAdapter<java.lang.Long,Person>
-
-