public class HelperStatements extends Object
Modifier and Type | Method and Description |
---|---|
static com.datastax.driver.core.schemabuilder.SchemaStatement |
addNewColumn(String tableName,
String keyspaceName,
String columnName,
com.datastax.driver.core.DataType columnType) |
static com.datastax.driver.core.schemabuilder.SchemaStatement |
changeColumnType(String tableName,
String keyspaceName,
AlterColumnInput input) |
static com.datastax.driver.core.schemabuilder.SchemaStatement |
createKeyspaceStatement(CreateKeyspaceInput input) |
static com.datastax.driver.core.schemabuilder.SchemaStatement |
createTable(String keyspace,
CreateTableInput input) |
static com.datastax.driver.core.schemabuilder.SchemaStatement |
dropColumn(String tableName,
String keyspaceName,
String columnName) |
static com.datastax.driver.core.schemabuilder.SchemaStatement |
dropKeyspaceStatement(String keyspaceName) |
static com.datastax.driver.core.schemabuilder.SchemaStatement |
dropTable(String tableName,
String keyspaceName) |
static com.datastax.driver.core.schemabuilder.SchemaStatement |
renameColumn(String tableName,
String keyspaceName,
String oldColumnName,
String newColumnName) |
static com.datastax.driver.core.DataType |
resolveDataTypeFromString(String dataType)
return the DataType based on a String.
|
public static com.datastax.driver.core.schemabuilder.SchemaStatement createKeyspaceStatement(CreateKeyspaceInput input)
public static com.datastax.driver.core.schemabuilder.SchemaStatement dropKeyspaceStatement(String keyspaceName)
public static com.datastax.driver.core.schemabuilder.SchemaStatement createTable(String keyspace, CreateTableInput input) throws CassandraDBException
CassandraDBException
public static com.datastax.driver.core.schemabuilder.SchemaStatement addNewColumn(String tableName, String keyspaceName, String columnName, com.datastax.driver.core.DataType columnType)
public static com.datastax.driver.core.schemabuilder.SchemaStatement dropColumn(String tableName, String keyspaceName, String columnName)
public static com.datastax.driver.core.schemabuilder.SchemaStatement changeColumnType(String tableName, String keyspaceName, AlterColumnInput input)
public static com.datastax.driver.core.schemabuilder.SchemaStatement renameColumn(String tableName, String keyspaceName, String oldColumnName, String newColumnName)
public static com.datastax.driver.core.schemabuilder.SchemaStatement dropTable(String tableName, String keyspaceName)
public static com.datastax.driver.core.DataType resolveDataTypeFromString(String dataType)
dataType
- string to be resolved to DataTypeCopyright © 2010–2019. All rights reserved.