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