public class CacheHibernateBlobStoreFactory<K,V> extends Object implements javax.cache.configuration.Factory<CacheHibernateBlobStore<K,V>>
Factory
implementation for CacheHibernateBlobStore
.
Use this factory to pass CacheHibernateBlobStore
to CacheConfiguration
.
... CacheHibernateBlobStoreFactory<String, String> factory = new CacheHibernateBlobStoreFactory<String, String>(); factory.setSessionFactory(sesFactory); ...
... <bean id="cache.hibernate.store.factory" class="org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStoreFactory"> <property name="sessionFactory"> <bean class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="hibernateProperties"> <value> connection.url=jdbc:gg-h2:mem: show_sql=true hbm2ddl.auto=true hibernate.dialect=org.hibernate.dialect.H2Dialect </value> </property> <property name="mappingResources"> <list> <value> org/apache/ignite/cache/store/hibernate/CacheHibernateBlobStoreEntry.hbm.xml </value> </list> </property> </bean> </property> </bean> ...
... <bean id="cache.hibernate.store.factory1" class="org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStoreFactory"> <property name="sessionFactory"> <bean class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="hibernateProperties"> <value> connection.url=jdbc:gg-h2:mem: show_sql=true hbm2ddl.auto=true hibernate.dialect=org.hibernate.dialect.H2Dialect </value> </property> <property name="annotatedClasses"> <list> <value> org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStoreEntry </value> </list> </property> </bean> </property> </bean> ...
... <bean id="cache.hibernate.store.factory2" class="org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStoreFactory"> <property name="hibernateProperties"> <props> <prop key="connection.url">jdbc:gg-h2:mem:</prop> <prop key="hbm2ddl.auto">update</prop> <prop key="show_sql">true</prop> </props> </property> </bean> ...
For information about Spring framework visit www.springframework.org
Constructor and Description |
---|
CacheHibernateBlobStoreFactory() |
Modifier and Type | Method and Description |
---|---|
CacheHibernateBlobStore<K,V> |
create() |
CacheHibernateBlobStoreFactory<K,V> |
setHibernateConfigurationPath(String hibernateCfgPath)
Sets hibernate configuration path.
|
CacheHibernateBlobStoreFactory<K,V> |
setHibernateProperties(Properties hibernateProps)
Sets Hibernate properties.
|
CacheHibernateBlobStoreFactory<K,V> |
setSessionFactory(org.hibernate.SessionFactory sesFactory)
Sets session factory.
|
CacheHibernateBlobStoreFactory<K,V> |
setSessionFactoryBean(String sesFactory)
Sets name of the data source bean.
|
String |
toString() |
public CacheHibernateBlobStore<K,V> create()
create
in interface javax.cache.configuration.Factory<CacheHibernateBlobStore<K,V>>
public CacheHibernateBlobStoreFactory<K,V> setSessionFactory(org.hibernate.SessionFactory sesFactory)
sesFactory
- Session factory.This
for chaining.CacheHibernateBlobStore.setSessionFactory(SessionFactory)
public CacheHibernateBlobStoreFactory<K,V> setSessionFactoryBean(String sesFactory)
sesFactory
- Session factory bean name.This
for chaining.CacheHibernateBlobStore.setSessionFactory(SessionFactory)
public CacheHibernateBlobStoreFactory<K,V> setHibernateConfigurationPath(String hibernateCfgPath)
This may be either URL or file path or classpath resource.
hibernateCfgPath
- URL or file path or classpath resource
pointing to hibernate configuration XML file.This
for chaining.CacheHibernateBlobStore.setHibernateConfigurationPath(String)
public CacheHibernateBlobStoreFactory<K,V> setHibernateProperties(Properties hibernateProps)
hibernateProps
- Hibernate properties.This
for chaining.CacheHibernateBlobStore.setHibernateProperties(Properties)
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024