public abstract class BaseQuery<T,Q extends BaseQuery<T,Q>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseQuery.Comparison |
protected class |
BaseQuery.KeyColumnValue |
protected class |
BaseQuery.OrderByHandler |
protected class |
BaseQuery.Relation |
protected class |
BaseQuery.RelationHandler |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
AND |
protected BaseQuery.RelationHandler |
clusteringHandler |
protected java.util.List<BaseQuery.Relation> |
clusteringRelations |
protected T |
clusteringTemplate |
protected java.lang.Class<T> |
entityClass |
protected Inspector |
inspector |
protected int |
limit |
protected java.util.List<BaseQuery.Relation> |
orderBy |
protected BaseQuery.OrderByHandler |
orderByHandler |
protected T |
orderByTemplate |
protected BaseQuery.RelationHandler |
partitionHandler |
protected java.util.List<BaseQuery.Relation> |
partitionRelations |
protected T |
partitionTemplate |
protected Sibyl |
sibyl |
protected TableGenerator |
table |
| Constructor and Description |
|---|
BaseQuery(Sibyl sibyl,
java.lang.Class<T> entityClass) |
| Modifier and Type | Method and Description |
|---|---|
<R extends java.lang.Comparable<R>> |
ascending(java.util.function.BiConsumer<T,R> consumer,
R from,
R to) |
Q |
ascending(java.util.function.Consumer<T> consumer) |
protected void |
buildClusteringKeys(java.lang.StringBuilder builder,
java.util.Map<java.lang.String,java.lang.Object> map) |
protected void |
buildOrderBy(java.lang.StringBuilder builder) |
protected void |
buildPartitionKeys(java.lang.StringBuilder builder,
java.util.Map<java.lang.String,java.lang.Object> map) |
protected java.lang.StringBuilder |
buildQuery(java.util.Map<java.lang.String,java.lang.Object> map) |
protected void |
buildRelation(java.lang.StringBuilder builder,
java.util.Map<java.lang.String,java.lang.Object> map,
BaseQuery.Relation relation) |
protected Q |
clearOrderBy() |
<R extends java.lang.Comparable<R>> |
descending(java.util.function.BiConsumer<T,R> consumer,
R from,
R to) |
Q |
descending(java.util.function.Consumer<T> consumer) |
<R> Q |
equalTo(java.util.function.BiConsumer<T,R> consumer,
R value) |
protected <R> Q |
greaterThan(java.util.function.BiConsumer<T,R> consumer,
R value) |
protected <R> Q |
greaterThanOrEqualTo(java.util.function.BiConsumer<T,R> consumer,
R value) |
protected <R> Q |
lessThan(java.util.function.BiConsumer<T,R> consumer,
R value) |
protected <R> Q |
lessThanOrEqualTo(java.util.function.BiConsumer<T,R> consumer,
R value) |
int |
limit() |
Q |
limit(int limit) |
protected Q |
newOrderBy(java.util.function.Consumer<T> consumer,
BaseQuery.Comparison comparison) |
protected <R> Q |
newRelation(java.util.function.BiConsumer<T,R> consumer,
R value,
BaseQuery.Comparison comparison,
java.util.List<BaseQuery.Relation> list,
boolean partition) |
<R> Q |
partition(java.util.function.BiConsumer<T,R> consumer,
R value) |
protected java.util.List<T> |
select() |
protected void |
validate() |
protected void |
validatePartitionKeys() |
protected void |
validClusteringKeys() |
protected static final java.lang.String AND
protected Sibyl sibyl
protected T partitionTemplate
protected T clusteringTemplate
protected T orderByTemplate
protected BaseQuery.RelationHandler partitionHandler
protected BaseQuery.RelationHandler clusteringHandler
protected BaseQuery.OrderByHandler orderByHandler
protected java.util.List<BaseQuery.Relation> partitionRelations
protected java.util.List<BaseQuery.Relation> orderBy
protected java.util.List<BaseQuery.Relation> clusteringRelations
protected int limit
protected java.lang.Class<T> entityClass
protected TableGenerator table
protected Inspector inspector
public Q limit(int limit)
public int limit()
protected <R> Q newRelation(java.util.function.BiConsumer<T,R> consumer, R value, BaseQuery.Comparison comparison, java.util.List<BaseQuery.Relation> list, boolean partition)
protected Q newOrderBy(java.util.function.Consumer<T> consumer, BaseQuery.Comparison comparison)
protected <R> Q lessThanOrEqualTo(java.util.function.BiConsumer<T,R> consumer, R value)
protected <R> Q greaterThanOrEqualTo(java.util.function.BiConsumer<T,R> consumer, R value)
public <R extends java.lang.Comparable<R>> Q ascending(java.util.function.BiConsumer<T,R> consumer, R from, R to)
public <R extends java.lang.Comparable<R>> Q descending(java.util.function.BiConsumer<T,R> consumer, R from, R to)
protected Q clearOrderBy()
protected void buildRelation(java.lang.StringBuilder builder,
java.util.Map<java.lang.String,java.lang.Object> map,
BaseQuery.Relation relation)
protected void buildPartitionKeys(java.lang.StringBuilder builder,
java.util.Map<java.lang.String,java.lang.Object> map)
protected void buildClusteringKeys(java.lang.StringBuilder builder,
java.util.Map<java.lang.String,java.lang.Object> map)
protected void buildOrderBy(java.lang.StringBuilder builder)
protected void validate()
protected java.util.List<T> select()
protected java.lang.StringBuilder buildQuery(java.util.Map<java.lang.String,java.lang.Object> map)
protected void validatePartitionKeys()
protected void validClusteringKeys()