Class AlterUserTypeSpecification
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.UserTypeNameSpecification
org.springframework.data.cassandra.core.cql.keyspace.AlterUserTypeSpecification
Object to configure a
ALTER TYPE specification.- Since:
- 1.5
- Author:
- Fabio J. Mendes, Mark Paluch
- See Also:
-
CqlIdentifier
-
Method Summary
Modifier and TypeMethodDescriptionadd(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.Adds an ADD to the list of field changes.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.Adds an ALTER to the list of field changes.static AlterUserTypeSpecificationEntry point into theAlterColumnSpecification's fluent API giventypeNameto alter a user type.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.Adds an RENAME to the list of field changes.Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.UserTypeNameSpecification
getName
-
Method Details
-
alterType
Entry point into theAlterColumnSpecification's fluent API giventypeNameto alter a user type. Convenient if imported statically.- Parameters:
typeName- must not be null or empty.- Returns:
- a new
AlterUserTypeSpecification.
-
add
public AlterUserTypeSpecification add(String field, com.datastax.oss.driver.api.core.type.DataType type) Adds an ADD to the list of field changes.- Parameters:
field- must not be null or empty.type- must not be null.- Returns:
thisAlterUserTypeSpecification.
-
add
public 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.- Parameters:
field- must not be null.type- must not be null.- Returns:
thisAlterUserTypeSpecification.
-
alter
public AlterUserTypeSpecification alter(String field, com.datastax.oss.driver.api.core.type.DataType type) Adds an ALTER to the list of field changes.- Parameters:
field- must not be null or empty.type- must not be null.- Returns:
thisAlterUserTypeSpecification.
-
alter
public 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.- Parameters:
field- must not be null.type- must not be null.- Returns:
thisAlterUserTypeSpecification.
-
rename
Adds an RENAME to the list of field changes.- Parameters:
from- must not be null or empty.to- must not be null or empty.- Returns:
thisAlterUserTypeSpecification.
-
rename
public 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.- Parameters:
from- must not be null.to- must not be null or empty.- Returns:
thisAlterUserTypeSpecification.
-
getChanges
- Returns:
- an unmodifiable list of field changes.
-