Package | Description |
---|---|
org.springframework.data.cassandra.core.cql.generator |
CQL generators for Keyspace object actions.
|
org.springframework.data.cassandra.core.cql.keyspace |
Keyspace object action specifications such as
CREATE TABLE , DROP INDEX . |
Modifier and Type | Method and Description |
---|---|
static String |
AlterTableCqlGenerator.toCql(AlterTableSpecification specification)
Generates a CQL statement from the given
specification . |
Constructor and Description |
---|
AlterTableCqlGenerator(AlterTableSpecification specification)
Create a new
AlterTableCqlGenerator . |
Modifier and Type | Method and Description |
---|---|
AlterTableSpecification |
AlterTableSpecification.add(com.datastax.oss.driver.api.core.CqlIdentifier column,
com.datastax.oss.driver.api.core.type.DataType type)
Adds an
ADD to the list of column changes. |
AlterTableSpecification |
AlterTableSpecification.add(String column,
com.datastax.oss.driver.api.core.type.DataType type)
Adds an
ADD to the list of column changes. |
AlterTableSpecification |
AlterTableSpecification.alter(com.datastax.oss.driver.api.core.CqlIdentifier column,
com.datastax.oss.driver.api.core.type.DataType type)
Adds an ALTER to the list of column changes.
|
AlterTableSpecification |
AlterTableSpecification.alter(String column,
com.datastax.oss.driver.api.core.type.DataType type)
Adds an ALTER to the list of column changes.
|
static AlterTableSpecification |
AlterTableSpecification.alterTable(com.datastax.oss.driver.api.core.CqlIdentifier tableName)
Entry point into the
AlterTableSpecification 's fluent API given tableName to alter a table. |
static AlterTableSpecification |
AlterTableSpecification.alterTable(String tableName)
Entry point into the
AlterTableSpecification 's fluent API given tableName to alter a table. |
AlterTableSpecification |
AlterTableSpecification.drop(com.datastax.oss.driver.api.core.CqlIdentifier column) |
AlterTableSpecification |
AlterTableSpecification.drop(String column) |
AlterTableSpecification |
AlterTableSpecification.rename(com.datastax.oss.driver.api.core.CqlIdentifier from,
com.datastax.oss.driver.api.core.CqlIdentifier to)
Adds a
RENAME to the list of column changes. |
AlterTableSpecification |
AlterTableSpecification.rename(String from,
String to)
Adds a
RENAME to the list of column changes. |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.