Class FieldSpecification
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.FieldSpecification
Base value object class to specify user type fields.
A FieldSpecification
consists of a name and a DataType
.
- Since:
- 1.5
- Author:
- Mark Paluch
- See Also:
-
CqlIdentifier
-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldSpecification
of
(com.datastax.oss.driver.api.core.CqlIdentifier name, com.datastax.oss.driver.api.core.type.DataType type) static FieldSpecification
toCql()
toCql
(StringBuilder cql) toString()
-
Method Details
-
of
public static FieldSpecification of(String name, com.datastax.oss.driver.api.core.type.DataType type) - Parameters:
name
- must not be null or empty.type
- must not be null.
-
of
public static FieldSpecification of(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:
-
toCql
-
toCql
-
toString
-