public class FieldSpecification extends Object
FieldSpecification consists of a name and a DataType.CqlIdentifier| Constructor and Description |
|---|
FieldSpecification() |
| Modifier and Type | Method and Description |
|---|---|
FieldSpecification |
name(CqlIdentifier name)
Sets the field name.
|
FieldSpecification |
name(String name)
Sets the field name.
|
String |
toCql() |
StringBuilder |
toCql(StringBuilder cql) |
String |
toString() |
FieldSpecification |
type(com.datastax.driver.core.DataType type)
Sets the column's type.
|
public FieldSpecification name(String name)
name - must not be empty or null.this FieldSpecification.public FieldSpecification name(CqlIdentifier name)
name - must not be null.this FieldSpecification.public FieldSpecification type(com.datastax.driver.core.DataType type)
type - The data type of the field, must not be null.this FieldSpecification.public String toCql()
public StringBuilder toCql(StringBuilder cql)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.