public class JdbcMapStore<T extends Serializable> extends Object implements com.hazelcast.core.MapStore<Serializable,T>, com.hazelcast.core.MapLoaderLifecycleSupport
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
datasource |
| Constructor and Description |
|---|
JdbcMapStore(DataSource datasource,
String tableName,
DatabaseStoreQueryBuilderStrategy databaseStoreQueryBuilderStrategy,
org.mule.runtime.api.serialization.SerializationProtocol serializationProtocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Serializable key) |
void |
deleteAll(Collection<Serializable> collection) |
void |
destroy() |
void |
init(com.hazelcast.core.HazelcastInstance hazelcastInstance,
Properties properties,
String mapName) |
T |
load(Serializable key) |
Map<Serializable,T> |
loadAll(Collection<Serializable> keys) |
List<Serializable> |
loadAllKeys() |
void |
store(Serializable key,
T value) |
void |
storeAll(Map<Serializable,T> map) |
protected final DataSource datasource
public JdbcMapStore(DataSource datasource, String tableName, DatabaseStoreQueryBuilderStrategy databaseStoreQueryBuilderStrategy, org.mule.runtime.api.serialization.SerializationProtocol serializationProtocol) throws SQLException
SQLExceptionpublic T load(Serializable key)
load in interface com.hazelcast.core.MapLoader<Serializable,T extends Serializable>public Map<Serializable,T> loadAll(Collection<Serializable> keys)
loadAll in interface com.hazelcast.core.MapLoader<Serializable,T extends Serializable>MapLoader.loadAll(java.util.Collection)public List<Serializable> loadAllKeys()
loadAllKeys in interface com.hazelcast.core.MapLoader<Serializable,T extends Serializable>MapLoader.loadAllKeys()public void store(Serializable key, T value)
store in interface com.hazelcast.core.MapStore<Serializable,T extends Serializable>MapStore.store(java.lang.Object, java.lang.Object)public void storeAll(Map<Serializable,T> map)
storeAll in interface com.hazelcast.core.MapStore<Serializable,T extends Serializable>MapStore.storeAll(java.util.Map)public void delete(Serializable key)
delete in interface com.hazelcast.core.MapStore<Serializable,T extends Serializable>MapStore.delete(java.lang.Object)public void deleteAll(Collection<Serializable> collection)
deleteAll in interface com.hazelcast.core.MapStore<Serializable,T extends Serializable>MapStore.deleteAll(java.util.Collection)public void init(com.hazelcast.core.HazelcastInstance hazelcastInstance,
Properties properties,
String mapName)
init in interface com.hazelcast.core.MapLoaderLifecycleSupportpublic void destroy()
destroy in interface com.hazelcast.core.MapLoaderLifecycleSupportCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.