Class FieldSpecification

java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.FieldSpecification

public class FieldSpecification extends Object
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 Details

    • of

      public static FieldSpecification of(String name, com.datastax.oss.driver.api.core.type.DataType type)
      Create a new FieldSpecification for the given name and DataType
      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)
      Create a new FieldSpecification given name and DataType.
      Parameters:
      name - must not be null.
      type - must not be null.
      Returns:
    • toCql

      public String toCql()
    • toCql

      public StringBuilder toCql(StringBuilder cql)
    • toString

      public String toString()
      Overrides:
      toString in class Object