public class CassandraCqlTemplateFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<CqlTemplate>, org.springframework.beans.factory.InitializingBean
CqlTemplate.| Constructor and Description |
|---|
CassandraCqlTemplateFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
CqlTemplate |
getObject() |
Class<CqlTemplate> |
getObjectType() |
boolean |
isSingleton() |
void |
setSession(com.datastax.driver.core.Session session)
Sets the Cassandra
Session to use. |
public CqlTemplate getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<CqlTemplate>public Class<CqlTemplate> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<CqlTemplate>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<CqlTemplate>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setSession(com.datastax.driver.core.Session session)
Session to use. The CqlTemplate will use the logged keyspace of the underlying
Session. Don't change the keyspace using CQL but use multiple Session and CqlTemplate
beans.session - must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.