public class CassandraSessionFactoryBean extends CassandraCqlSessionFactoryBean
Session with support
for executing CQL and initializing the database schema (a.k.a. keyspace).KeyspaceMetadata,
TableMetadata| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEFAULT_CREATE_IF_NOT_EXISTS |
protected static boolean |
DEFAULT_DROP_TABLES |
protected static boolean |
DEFAULT_DROP_UNUSED_TABLES |
exceptionTranslator, logger| Constructor and Description |
|---|
CassandraSessionFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
createTables(boolean dropTables,
boolean dropUnused,
boolean ifNotExists) |
protected void |
dropTables(boolean dropUnused) |
protected CassandraAdminOperations |
getCassandraAdminOperations() |
CassandraConverter |
getConverter() |
protected CassandraMappingContext |
getMappingContext() |
SchemaAction |
getSchemaAction() |
protected void |
performSchemaAction() |
void |
setConverter(CassandraConverter converter) |
void |
setSchemaAction(SchemaAction schemaAction) |
destroy, executeScripts, getCluster, getKeyspaceName, getObject, getObjectType, getSession, getShutdownScripts, getStartupScripts, isConnected, isSingleton, setCluster, setKeyspaceName, setShutdownScripts, setStartupScripts, translateExceptionIfPossibleprotected static final boolean DEFAULT_CREATE_IF_NOT_EXISTS
protected static final boolean DEFAULT_DROP_TABLES
protected static final boolean DEFAULT_DROP_UNUSED_TABLES
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class CassandraCqlSessionFactoryBeanExceptionprotected void performSchemaAction()
protected void createTables(boolean dropTables,
boolean dropUnused,
boolean ifNotExists)
protected void dropTables(boolean dropUnused)
protected CassandraAdminOperations getCassandraAdminOperations()
public void setConverter(CassandraConverter converter)
public CassandraConverter getConverter()
protected CassandraMappingContext getMappingContext()
public void setSchemaAction(SchemaAction schemaAction)
public SchemaAction getSchemaAction()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.