public class CacheJdbcBlobStoreFactory<K,V> extends Object implements javax.cache.configuration.Factory<CacheJdbcBlobStore<K,V>>
Factory
implementation for CacheJdbcBlobStore
.
Use this factory to pass CacheJdbcBlobStore
to CacheConfiguration
.
<bean id= "myDataSource" class="org.gridgain.internal.h2.jdbcx.JdbcDataSource"/> <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> ... <property name="cacheConfiguration"> <list> <bean class="org.apache.ignite.configuration.CacheConfiguration"> ... <property name="cacheStoreFactory"> <bean class="org.apache.ignite.cache.store.jdbc.CacheJdbcBlobStoreFactory"> <property name="user" value = "Ignite" /> <property name="dataSourceBean" value = "myDataSource" /> </bean> </property> </bean> </list> </property> </bean>
For information about Spring framework visit www.springframework.org
Constructor and Description |
---|
CacheJdbcBlobStoreFactory() |
Modifier and Type | Method and Description |
---|---|
CacheJdbcBlobStore<K,V> |
create() |
CacheJdbcBlobStoreFactory<K,V> |
setConnectionUrl(String connUrl)
Sets connection URL.
|
CacheJdbcBlobStoreFactory<K,V> |
setCreateTableQuery(String createTblQry)
Sets create table query.
|
CacheJdbcBlobStoreFactory<K,V> |
setDataSource(DataSource dataSrc)
Sets data source.
|
CacheJdbcBlobStoreFactory<K,V> |
setDataSourceBean(String dataSrcBean)
Sets name of the data source bean.
|
CacheJdbcBlobStoreFactory<K,V> |
setDeleteQuery(String delQry)
Sets delete entry query.
|
CacheJdbcBlobStoreFactory<K,V> |
setInitSchema(boolean initSchema)
Flag indicating whether DB schema should be initialized by Ignite (default behaviour) or
was explicitly created by user.
|
CacheJdbcBlobStoreFactory<K,V> |
setInsertQuery(String insertQry)
Sets insert entry query.
|
CacheJdbcBlobStoreFactory<K,V> |
setLoadQuery(String loadQry)
Sets load query.
|
CacheJdbcBlobStoreFactory<K,V> |
setPassword(String passwd)
Sets password for database access.
|
CacheJdbcBlobStoreFactory<K,V> |
setUpdateQuery(String updateQry)
Sets update entry query.
|
CacheJdbcBlobStoreFactory<K,V> |
setUser(String user)
Sets user name for database access.
|
String |
toString() |
public CacheJdbcBlobStore<K,V> create()
create
in interface javax.cache.configuration.Factory<CacheJdbcBlobStore<K,V>>
public CacheJdbcBlobStoreFactory<K,V> setInitSchema(boolean initSchema)
initSchema
- Initialized schema flag.This
for chaining.CacheJdbcBlobStore.setInitSchema(boolean)
public CacheJdbcBlobStoreFactory<K,V> setConnectionUrl(String connUrl)
connUrl
- Connection URL.This
for chaining.CacheJdbcBlobStore.setConnectionUrl(String)
public CacheJdbcBlobStoreFactory<K,V> setCreateTableQuery(String createTblQry)
createTblQry
- Create table query.This
for chaining.CacheJdbcBlobStore.setCreateTableQuery(String)
public CacheJdbcBlobStoreFactory<K,V> setLoadQuery(String loadQry)
loadQry
- Load queryThis
for chaining.CacheJdbcBlobStore.setLoadQuery(String)
public CacheJdbcBlobStoreFactory<K,V> setUpdateQuery(String updateQry)
updateQry
- Update entry query.This
for chaining.CacheJdbcBlobStore.setUpdateQuery(String)
public CacheJdbcBlobStoreFactory<K,V> setInsertQuery(String insertQry)
insertQry
- Insert entry query.This
for chaining.CacheJdbcBlobStore.setInsertQuery(String)
public CacheJdbcBlobStoreFactory<K,V> setDeleteQuery(String delQry)
delQry
- Delete entry query.This
for chaining.CacheJdbcBlobStore.setDeleteQuery(String)
public CacheJdbcBlobStoreFactory<K,V> setUser(String user)
user
- User name.This
for chaining.CacheJdbcBlobStore.setUser(String)
public CacheJdbcBlobStoreFactory<K,V> setPassword(String passwd)
passwd
- Password.This
for chaining.CacheJdbcBlobStore.setPassword(String)
public CacheJdbcBlobStoreFactory<K,V> setDataSourceBean(String dataSrcBean)
dataSrcBean
- Data source bean name.This
for chaining.CacheJdbcBlobStore.setDataSource(DataSource)
public CacheJdbcBlobStoreFactory<K,V> setDataSource(DataSource dataSrc)
dataSrc
- Data source.This
for chaining.CacheJdbcBlobStore.setDataSource(DataSource)
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024