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 Parameters |
buildParameters(graphql.schema.DataFetchingEnvironment environment) |
protected boolean |
containsDirective(graphql.language.OperationDefinition operation,
String directive) |
protected CompletableFuture<Map<String,Object>> |
executeAsyncAccepted(BoundQuery query,
Object originalValue,
UnaryOperator<Parameters> parameters,
StargateGraphqlContext context)
Executes the query in an async way in a fire and forget fashion.
|
protected Column |
getColumn(Table table,
String fieldName) |
protected String |
getDBColumnName(Table table,
String fieldName) |
protected com.datastax.oss.driver.shaded.guava.common.collect.ImmutableMap<String,Object> |
toAcceptedMutationResultWithOriginalValue(Object originalValue) |
protected Map<String,Object> |
toBatchResult(List<Row> rows,
Map<String,Object> originalValue) |
protected List<Map<String,Object>> |
toBatchResults(List<Row> rows,
List<Map<String,Object>> originalValues) |
protected Object |
toDBValue(Column column,
Object value) |
protected CompletableFuture<List<Map<String,Object>>> |
toListOfMutationResultsAccepted(List<Map<String,Object>> originalValues) |
protected Map<String,Object> |
toMutationResult(ResultSet resultSet,
Object originalValue) |
get, get, isAppliedBatchprotected final Table table
protected final NameMapping nameMapping
protected final DbColumnGetter dbColumnGetter
protected DmlFetcher(Table table, NameMapping nameMapping)
protected Parameters buildParameters(graphql.schema.DataFetchingEnvironment environment)
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>> toBatchResults(List<Row> rows, List<Map<String,Object>> originalValues)
protected Map<String,Object> toBatchResult(List<Row> rows, Map<String,Object> originalValue)
protected CompletableFuture<List<Map<String,Object>>> toListOfMutationResultsAccepted(List<Map<String,Object>> originalValues)
protected Map<String,Object> toMutationResult(ResultSet resultSet, Object originalValue)
protected com.datastax.oss.driver.shaded.guava.common.collect.ImmutableMap<String,Object> toAcceptedMutationResultWithOriginalValue(Object originalValue)
protected boolean containsDirective(graphql.language.OperationDefinition operation,
String directive)
protected CompletableFuture<Map<String,Object>> executeAsyncAccepted(BoundQuery query, Object originalValue, UnaryOperator<Parameters> parameters, StargateGraphqlContext context)
Copyright © 2024. All rights reserved.