public abstract class DmlFetcher<ResultT> extends CassandraFetcher<ResultT>
| Modifier and Type | Field and Description |
|---|---|
protected DbColumnGetter |
dbColumnGetter |
protected NameMapping |
nameMapping |
protected Table |
table |
DEFAULT_CONSISTENCY, DEFAULT_PAGE_SIZE, DEFAULT_PARAMETERS, DEFAULT_SERIAL_CONSISTENCY| Modifier | Constructor and Description |
|---|---|
protected |
DmlFetcher(Table table,
NameMapping nameMapping) |
| Modifier and Type | Method and Description |
|---|---|
protected List<BuiltCondition> |
buildClause(Table table,
graphql.schema.DataFetchingEnvironment environment) |
protected List<BuiltCondition> |
buildConditions(Table table,
Map<String,Map<String,Object>> columnList) |
protected boolean |
containsDirective(graphql.language.OperationDefinition operation,
String directive) |
protected CompletableFuture<Map<String,Object>> |
executeAsyncAccepted(DataStore dataStore,
BoundQuery query,
Object originalValue)
Executes the query in an async way in a fire and forget fashion.
|
protected Column |
getColumn(Table table,
String fieldName) |
protected Parameters |
getDatastoreParameters(graphql.schema.DataFetchingEnvironment environment) |
protected String |
getDBColumnName(Table table,
String fieldName) |
protected com.google.common.collect.ImmutableMap<String,Object> |
toAcceptedMutationResultWithOriginalValue(Object originalValue) |
protected Object |
toDBValue(Column column,
Object value) |
protected List<Map<String,Object>> |
toListOfMutationResults(ResultSet resultSet,
List<Map<String,Object>> originalValues) |
protected CompletableFuture<List<Map<String,Object>>> |
toListOfMutationResultsAccepted(List<Map<String,Object>> originalValues) |
protected Map<String,Object> |
toMutationResult(ResultSet resultSet,
Object originalValue) |
get, getprotected final Table table
protected final NameMapping nameMapping
protected final DbColumnGetter dbColumnGetter
protected DmlFetcher(Table table, NameMapping nameMapping)
protected Parameters getDatastoreParameters(graphql.schema.DataFetchingEnvironment environment)
getDatastoreParameters in class CassandraFetcher<ResultT>protected List<BuiltCondition> buildConditions(Table table, Map<String,Map<String,Object>> columnList)
protected List<BuiltCondition> buildClause(Table table, graphql.schema.DataFetchingEnvironment environment)
protected List<Map<String,Object>> toListOfMutationResults(ResultSet resultSet, List<Map<String,Object>> originalValues)
protected CompletableFuture<List<Map<String,Object>>> toListOfMutationResultsAccepted(List<Map<String,Object>> originalValues)
protected Map<String,Object> toMutationResult(ResultSet resultSet, Object originalValue)
protected com.google.common.collect.ImmutableMap<String,Object> toAcceptedMutationResultWithOriginalValue(Object originalValue)
protected boolean containsDirective(graphql.language.OperationDefinition operation,
String directive)
protected CompletableFuture<Map<String,Object>> executeAsyncAccepted(DataStore dataStore, BoundQuery query, Object originalValue)
Copyright © 2021. All rights reserved.