public class AlterTableCqlGenerator extends TableOptionsCqlGenerator<AlterTableSpecification>
ALTER TABLE statements.AlterTableSpecification,
TableOptionsCqlGenerator| Constructor and Description |
|---|
AlterTableCqlGenerator(AlterTableSpecification specification)
Creates a new {@link AlterTableCqlGenerator}.
|
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
changesCql(StringBuilder cql) |
protected ColumnChangeCqlGenerator<?> |
getCqlGeneratorFor(ColumnChangeSpecification change) |
protected StringBuilder |
optionsCql(StringBuilder cql) |
protected StringBuilder |
preambleCql(StringBuilder cql) |
static String |
toCql(AlterTableSpecification specification)
Generates a CQL statement from the given
specification. |
StringBuilder |
toCql(StringBuilder cql) |
optionValueMap, specgetSpecification, setSpecification, toCqlpublic AlterTableCqlGenerator(AlterTableSpecification specification)
specification - must not be null.public static String toCql(AlterTableSpecification specification)
specification.specification - must not be null.public StringBuilder toCql(StringBuilder cql)
toCql in class TableNameCqlGenerator<TableOptionsSpecification<AlterTableSpecification>>protected StringBuilder preambleCql(StringBuilder cql)
protected StringBuilder changesCql(StringBuilder cql)
protected ColumnChangeCqlGenerator<?> getCqlGeneratorFor(ColumnChangeSpecification change)
protected StringBuilder optionsCql(StringBuilder cql)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.