public class AlterUserTypeSpecification extends UserTypeNameSpecification<AlterUserTypeSpecification>
ALTER TYPE specification.CqlIdentifier| Constructor and Description |
|---|
AlterUserTypeSpecification() |
| Modifier and Type | Method and Description |
|---|---|
AlterUserTypeSpecification |
add(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
AlterUserTypeSpecification |
add(String field,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
AlterUserTypeSpecification |
alter(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ALTER to the list of field changes.
|
AlterUserTypeSpecification |
alter(String field,
com.datastax.driver.core.DataType type)
Adds an ALTER to the list of field changes.
|
static AlterUserTypeSpecification |
alterType()
Entry point into the
AlterUserTypeSpecification's fluent API to alter a type. |
static AlterUserTypeSpecification |
alterType(CqlIdentifier typeName)
Entry point into the
AlterUserTypeSpecification's fluent API to alter a type. |
static AlterUserTypeSpecification |
alterType(String typeName)
Entry point into the
AlterUserTypeSpecification's fluent API to alter a type. |
List<ColumnChangeSpecification> |
getChanges() |
AlterUserTypeSpecification |
rename(CqlIdentifier from,
CqlIdentifier to)
Adds an RENAME to the list of field changes.
|
AlterUserTypeSpecification |
rename(String from,
String to)
Adds an RENAME to the list of field changes.
|
getName, name, namepublic static AlterUserTypeSpecification alterType()
AlterUserTypeSpecification's fluent API to alter a type. Convenient if imported
statically.public static AlterUserTypeSpecification alterType(String typeName)
AlterUserTypeSpecification's fluent API to alter a type. Convenient if imported
statically.public static AlterUserTypeSpecification alterType(CqlIdentifier typeName)
AlterUserTypeSpecification's fluent API to alter a type. Convenient if imported
statically.public AlterUserTypeSpecification add(String field, com.datastax.driver.core.DataType type)
field - must not be empty or null.type - must not be null.this AlterUserTypeSpecification.public AlterUserTypeSpecification add(CqlIdentifier field, com.datastax.driver.core.DataType type)
field - must not be null.type - must not be null.this AlterUserTypeSpecification.public AlterUserTypeSpecification alter(String field, com.datastax.driver.core.DataType type)
field - must not be empty or null.type - must not be null.this AlterUserTypeSpecification.public AlterUserTypeSpecification alter(CqlIdentifier field, com.datastax.driver.core.DataType type)
field - must not be null.type - must not be null.this AlterUserTypeSpecification.public AlterUserTypeSpecification rename(String from, String to)
from - must not be empty or null.to - must not be empty or null.this AlterUserTypeSpecification.public AlterUserTypeSpecification rename(CqlIdentifier from, CqlIdentifier to)
from - must not be null.to - must not be empty or null.this AlterUserTypeSpecification.public List<ColumnChangeSpecification> getChanges()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.