public class AlterUserTypeSpecification extends UserTypeNameSpecification
ALTER TYPE specification.CqlIdentifier| 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(String typeName)
Entry point into the
AlterColumnSpecification's fluent API given typeName to alter a user 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.
|
getNamepublic static AlterUserTypeSpecification alterType(String typeName)
AlterColumnSpecification's fluent API given typeName to alter a user type.
Convenient if imported statically.typeName - must not be null or empty.AlterUserTypeSpecification.public AlterUserTypeSpecification add(String field, com.datastax.driver.core.DataType type)
field - must not be null or empty.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 null or empty.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 null or empty.to - must not be null or empty.this AlterUserTypeSpecification.public AlterUserTypeSpecification rename(CqlIdentifier from, CqlIdentifier to)
from - must not be null.to - must not be null or empty.this AlterUserTypeSpecification.public List<ColumnChangeSpecification> getChanges()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.