Package | Description |
---|---|
com.datastax.driver.core.querybuilder |
A CQL3 query builder.
|
Modifier and Type | Method and Description |
---|---|
static Clause |
QueryBuilder.contains(String name,
Object value)
Creates a "contains" where clause stating the provided column must contain
the value provided.
|
static Clause |
QueryBuilder.containsKey(String name,
Object key)
Creates a "contains key" where clause stating the provided column must contain
the key provided.
|
static Clause |
QueryBuilder.eq(List<String> names,
List<?> values)
Creates an "equal" where clause for a group of clustering columns.
|
static Clause |
QueryBuilder.eq(String name,
Object value)
Creates an "equal" where clause stating the provided column must be
equal to the provided value.
|
static Clause |
QueryBuilder.gt(List<String> names,
List<?> values)
Creates a "greater than" where clause for a group of clustering columns.
|
static Clause |
QueryBuilder.gt(String name,
Object value)
Creates a "greater than" where clause stating the provided column must
be greater to the provided value.
|
static Clause |
QueryBuilder.gte(List<String> names,
List<?> values)
Creates a "greater than or equal" where clause for a group of clustering columns.
|
static Clause |
QueryBuilder.gte(String name,
Object value)
Creates a "greater than or equal" where clause stating the provided
column must be greater than or equal to the provided value.
|
static Clause |
QueryBuilder.in(List<String> names,
List<List<?>> values)
Creates an "in" where clause for a group of clustering columns.
|
static Clause |
QueryBuilder.in(String name,
List<?> values)
Create an "in" where clause stating the provided column must be equal
to one of the provided values.
|
static Clause |
QueryBuilder.in(String name,
Object... values)
Create an "in" where clause stating the provided column must be equal
to one of the provided values.
|
static Clause |
QueryBuilder.like(String name,
Object value)
Creates a "like" where clause stating that the provided column must be equal to the provided value.
|
static Clause |
QueryBuilder.lt(List<String> names,
List<?> values)
Creates a "lesser than" where clause for a group of clustering columns.
|
static Clause |
QueryBuilder.lt(String name,
Object value)
Creates a "lesser than" where clause stating the provided column must be less than
the provided value.
|
static Clause |
QueryBuilder.lte(List<String> names,
List<?> values)
Creates a "lesser than or equal" where clause for a group of clustering columns.
|
static Clause |
QueryBuilder.lte(String name,
Object value)
Creates a "lesser than or equal" where clause stating the provided column must
be lesser than or equal to the provided value.
|
Modifier and Type | Method and Description |
---|---|
Update.Where |
Update.Where.and(Clause clause)
Adds the provided clause to this WHERE clause.
|
Update.Conditions |
Update.Conditions.and(Clause condition)
Adds the provided condition for the update.
|
Select.Where |
Select.Where.and(Clause clause)
Adds the provided clause to this WHERE clause.
|
Delete.Where |
Delete.Where.and(Clause clause)
Adds the provided clause to this WHERE clause.
|
Delete.Conditions |
Delete.Conditions.and(Clause condition)
Adds the provided condition for the deletion.
|
Update.Conditions |
Update.onlyIf(Clause condition)
Adds a conditions clause (IF) to this statement.
|
Update.Conditions |
Update.Assignments.onlyIf(Clause condition)
Adds a condition to the UPDATE statement those assignments are part of.
|
Update.Conditions |
Update.Where.onlyIf(Clause condition)
Adds a condition to the UPDATE statement this WHERE clause is part of.
|
Update.Conditions |
Update.Options.onlyIf(Clause condition)
Adds a condition to the UPDATE statement these options are part of.
|
Delete.Conditions |
Delete.onlyIf(Clause condition)
Adds a conditions clause (IF) to this statement.
|
Delete.Conditions |
Delete.Where.onlyIf(Clause condition)
Adds a condition to the DELETE statement this WHERE clause is part of.
|
Update.Where |
Update.where(Clause clause)
Adds a WHERE clause to this statement.
|
Update.Where |
Update.Assignments.where(Clause clause)
Adds a where clause to the UPDATE statement those assignments are part of.
|
Update.Where |
Update.Options.where(Clause clause)
Adds a where clause to the UPDATE statement these options are part of.
|
Update.Where |
Update.Conditions.where(Clause clause)
Adds a where clause to the UPDATE statement these conditions are part of.
|
Select.Where |
Select.where(Clause clause)
Adds a WHERE clause to this statement.
|
Delete.Where |
Delete.where(Clause clause)
Adds a WHERE clause to this statement.
|
Delete.Where |
Delete.Options.where(Clause clause)
Adds a where clause to the DELETE statement these options are part of.
|
Delete.Where |
Delete.Conditions.where(Clause clause)
Adds a where clause to the DELETE statement these conditions are part of.
|