Class CacheJdbcBlobStoreFactory<K,V>
- java.lang.Object
- 
- org.apache.ignite.cache.store.jdbc.CacheJdbcBlobStoreFactory<K,V>
 
- 
- All Implemented Interfaces:
- Serializable,- javax.cache.configuration.Factory<CacheJdbcBlobStore<K,V>>
 
 public class CacheJdbcBlobStoreFactory<K,V> extends Object implements javax.cache.configuration.Factory<CacheJdbcBlobStore<K,V>> Factoryimplementation forCacheJdbcBlobStore. Use this factory to passCacheJdbcBlobStoretoCacheConfiguration.Spring Example<bean id= "myDataSource" class="org.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- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description CacheJdbcBlobStoreFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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.StringtoString()
 
- 
- 
- 
Method Detail- 
createpublic CacheJdbcBlobStore<K,V> create() - Specified by:
- createin interface- javax.cache.configuration.Factory<K>
 
 - 
setInitSchemapublic CacheJdbcBlobStoreFactory<K,V> setInitSchema(boolean initSchema) Flag indicating whether DB schema should be initialized by Ignite (default behaviour) or was explicitly created by user.- Parameters:
- initSchema- Initialized schema flag.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setInitSchema(boolean)
 
 - 
setConnectionUrlpublic CacheJdbcBlobStoreFactory<K,V> setConnectionUrl(String connUrl) Sets connection URL.- Parameters:
- connUrl- Connection URL.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setConnectionUrl(String)
 
 - 
setCreateTableQuerypublic CacheJdbcBlobStoreFactory<K,V> setCreateTableQuery(String createTblQry) Sets create table query.- Parameters:
- createTblQry- Create table query.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setCreateTableQuery(String)
 
 - 
setLoadQuerypublic CacheJdbcBlobStoreFactory<K,V> setLoadQuery(String loadQry) Sets load query.- Parameters:
- loadQry- Load query
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setLoadQuery(String)
 
 - 
setUpdateQuerypublic CacheJdbcBlobStoreFactory<K,V> setUpdateQuery(String updateQry) Sets update entry query.- Parameters:
- updateQry- Update entry query.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setUpdateQuery(String)
 
 - 
setInsertQuerypublic CacheJdbcBlobStoreFactory<K,V> setInsertQuery(String insertQry) Sets insert entry query.- Parameters:
- insertQry- Insert entry query.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setInsertQuery(String)
 
 - 
setDeleteQuerypublic CacheJdbcBlobStoreFactory<K,V> setDeleteQuery(String delQry) Sets delete entry query.- Parameters:
- delQry- Delete entry query.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setDeleteQuery(String)
 
 - 
setUserpublic CacheJdbcBlobStoreFactory<K,V> setUser(String user) Sets user name for database access.- Parameters:
- user- User name.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setUser(String)
 
 - 
setPasswordpublic CacheJdbcBlobStoreFactory<K,V> setPassword(String passwd) Sets password for database access.- Parameters:
- passwd- Password.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setPassword(String)
 
 - 
setDataSourceBeanpublic CacheJdbcBlobStoreFactory<K,V> setDataSourceBean(String dataSrcBean) Sets name of the data source bean.- Parameters:
- dataSrcBean- Data source bean name.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setDataSource(DataSource)
 
 - 
setDataSourcepublic CacheJdbcBlobStoreFactory<K,V> setDataSource(DataSource dataSrc) Sets data source. Data source should be fully configured and ready-to-use.- Parameters:
- dataSrc- Data source.
- Returns:
- Thisfor chaining.
- See Also:
- CacheJdbcBlobStore.setDataSource(DataSource)
 
 
- 
 
-