Class AlterColumnSpecification
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.ColumnChangeSpecification
org.springframework.data.cassandra.core.cql.keyspace.ColumnTypeChangeSpecification
org.springframework.data.cassandra.core.cql.keyspace.AlterColumnSpecification
Value object representing a specification to alter a column.
- Author:
- Matthew T. Adams, Mark Paluch
- See Also:
-
CqlIdentifier
-
Field Summary
Fields inherited from class org.springframework.data.cassandra.core.cql.keyspace.ColumnChangeSpecification
name
-
Method Summary
Modifier and TypeMethodDescriptionstatic AlterColumnSpecification
alterColumn
(com.datastax.oss.driver.api.core.CqlIdentifier name, com.datastax.oss.driver.api.core.type.DataType type) Entry point into theAlterColumnSpecification
's fluent API givenname
andDataType
to alter a column.static AlterColumnSpecification
alterColumn
(String name, com.datastax.oss.driver.api.core.type.DataType type) Entry point into theAlterColumnSpecification
's fluent API givenname
andDataType
to alter a column.Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.ColumnTypeChangeSpecification
getType
Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.ColumnChangeSpecification
getName
-
Method Details
-
alterColumn
public static AlterColumnSpecification alterColumn(String name, com.datastax.oss.driver.api.core.type.DataType type) Entry point into theAlterColumnSpecification
's fluent API givenname
andDataType
to alter a column. Convenient if imported statically.- Parameters:
name
- must not be null or empty.type
- must not be null.- Returns:
- a new
AlterColumnSpecification
.
-
alterColumn
public static AlterColumnSpecification alterColumn(com.datastax.oss.driver.api.core.CqlIdentifier name, com.datastax.oss.driver.api.core.type.DataType type) Entry point into theAlterColumnSpecification
's fluent API givenname
andDataType
to alter a column. Convenient if imported statically.- Parameters:
name
- must not be null.type
- must not be null.- Returns:
- a new
AlterColumnSpecification
.
-