public class EntityModel extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityModel.Target |
| Modifier and Type | Method and Description |
|---|---|
List<FieldModel> |
getAllColumns() |
List<FieldModel> |
getClusteringColumns() |
String |
getCqlName() |
String |
getGraphqlName() |
Optional<String> |
getInputTypeName() |
String |
getKeyspaceName() |
List<FieldModel> |
getPartitionKey() |
List<FieldModel> |
getPrimaryKey()
The full primary key (partition key + clustering columns), that uniquely identifies a CQL row.
|
List<ConditionModel> |
getPrimaryKeyWhereConditions()
Returns a default list of WHERE conditions that select all primary key columns with
=
relations. |
List<FieldModel> |
getRegularColumns() |
Table |
getTableCqlSchema() |
EntityModel.Target |
getTarget() |
UserDefinedType |
getUdtCqlSchema() |
boolean |
isFederated() |
String |
toString() |
Optional<String> |
validateForUpdate(Collection<ConditionModel> conditions)
Validates a set of conditions to ensure that they form a valid WHERE clause for an UPDATE.
|
Optional<String> |
validateNoFiltering(Collection<ConditionModel> conditions)
Validates a set of conditions to ensure that they will produce a valid CQL query that doesn't
require ALLOW FILTERING for this entity.
|
public String getGraphqlName()
public String getKeyspaceName()
public String getCqlName()
public EntityModel.Target getTarget()
public List<FieldModel> getPartitionKey()
public List<FieldModel> getClusteringColumns()
public List<FieldModel> getPrimaryKey()
public List<ConditionModel> getPrimaryKeyWhereConditions()
=
relations.public List<FieldModel> getRegularColumns()
public List<FieldModel> getAllColumns()
public Table getTableCqlSchema()
public UserDefinedType getUdtCqlSchema()
public boolean isFederated()
public Optional<String> validateNoFiltering(Collection<ConditionModel> conditions)
public Optional<String> validateForUpdate(Collection<ConditionModel> conditions)
Copyright © 2024. All rights reserved.