public class CassandraCqlTemplateFactoryBean extends Object implements FactoryBean<CqlTemplate>, InitializingBean
CqlTemplate
.OBJECT_TYPE_ATTRIBUTE
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 FactoryBean<CqlTemplate>
public Class<CqlTemplate> getObjectType()
getObjectType
in interface FactoryBean<CqlTemplate>
public boolean isSingleton()
isSingleton
in interface FactoryBean<CqlTemplate>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public 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–2020 Pivotal Software, Inc.. All rights reserved.