public class UserTypeSpecification<T extends UserTypeSpecification<T>> extends UserTypeNameSpecification<T>
UserTypeSpecification
.CqlIdentifier
Constructor and Description |
---|
UserTypeSpecification() |
Modifier and Type | Method and Description |
---|---|
T |
field(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
T |
field(String name,
com.datastax.driver.core.DataType type)
Adds the given field to the type.
|
List<FieldSpecification> |
getFields() |
getName, name, name
public T field(String name, com.datastax.driver.core.DataType type)
name
- must not be empty or null.type
- The data type of the field.this
specification.public T field(CqlIdentifier name, com.datastax.driver.core.DataType type)
name
- must not null.type
- must not be null.this
specification.public List<FieldSpecification> getFields()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.