public class AlterUserTypeSpecification extends UserTypeNameSpecification
ALTER TYPE specification.CqlIdentifier| Modifier and Type | Method and Description |
|---|---|
AlterUserTypeSpecification |
add(com.datastax.oss.driver.api.core.CqlIdentifier field,
com.datastax.oss.driver.api.core.type.DataType type)
Adds an ADD to the list of field changes.
|
AlterUserTypeSpecification |
add(String field,
com.datastax.oss.driver.api.core.type.DataType type)
Adds an ADD to the list of field changes.
|
AlterUserTypeSpecification |
alter(com.datastax.oss.driver.api.core.CqlIdentifier field,
com.datastax.oss.driver.api.core.type.DataType type)
Adds an ALTER to the list of field changes.
|
AlterUserTypeSpecification |
alter(String field,
com.datastax.oss.driver.api.core.type.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(com.datastax.oss.driver.api.core.CqlIdentifier from,
com.datastax.oss.driver.api.core.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.oss.driver.api.core.type.DataType type)
field - must not be null or empty.type - must not be null.this AlterUserTypeSpecification.public AlterUserTypeSpecification add(com.datastax.oss.driver.api.core.CqlIdentifier field, com.datastax.oss.driver.api.core.type.DataType type)
field - must not be null.type - must not be null.this AlterUserTypeSpecification.public AlterUserTypeSpecification alter(String field, com.datastax.oss.driver.api.core.type.DataType type)
field - must not be null or empty.type - must not be null.this AlterUserTypeSpecification.public AlterUserTypeSpecification alter(com.datastax.oss.driver.api.core.CqlIdentifier field, com.datastax.oss.driver.api.core.type.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(com.datastax.oss.driver.api.core.CqlIdentifier from, com.datastax.oss.driver.api.core.CqlIdentifier to)
from - must not be null.to - must not be null or empty.this AlterUserTypeSpecification.public List<ColumnChangeSpecification> getChanges()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.