Class AddColumnSpecification
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.AddColumnSpecification
Value object representing a specification to add a column.
- Author:
- Matthew Adams, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.cassandra.core.cql.keyspace.ColumnChangeSpecification
name
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddColumnSpecification
addColumn
(com.datastax.oss.driver.api.core.CqlIdentifier name, com.datastax.oss.driver.api.core.type.DataType type) static AddColumnSpecification
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
-
addColumn
public static AddColumnSpecification addColumn(String name, com.datastax.oss.driver.api.core.type.DataType type) - Parameters:
name
- must not be null or empty.type
- must not be null.- Returns:
- a new
AddColumnSpecification
.
-
addColumn
public static AddColumnSpecification addColumn(com.datastax.oss.driver.api.core.CqlIdentifier name, com.datastax.oss.driver.api.core.type.DataType type) - Parameters:
name
- must not be null.type
- must not be null.- Returns:
- a new
AddColumnSpecification
.
-