public static final class Query.CompleteBuilder
extends java.lang.Object
DeleteQuery.| Modifier and Type | Method and Description |
|---|---|
Query |
build()
Builds immutable instance of
Query. |
Query.CompleteBuilder |
columns(java.lang.String... columns)
Optional: Specifies list of columns that should be received.
|
Query.CompleteBuilder |
distinct(boolean distinct)
Optional: Specifies distinct option.
|
Query.CompleteBuilder |
groupBy(java.lang.String groupBy)
Optional: Specifies
GROUP BY clause. |
Query.CompleteBuilder |
having(java.lang.String having)
Optional: Specifies
HAVING clause. |
Query.CompleteBuilder |
limit(int limit)
Optional: Specifies
LIMIT clause. |
Query.CompleteBuilder |
limit(int offset,
int quantity)
Optional: Specifies
LIMIT clause. |
Query.CompleteBuilder |
limit(java.lang.String limit)
Optional: Specifies
LIMIT clause. |
Query.CompleteBuilder |
observesTags(java.util.Collection<java.lang.String> tags)
Optional: Specifies set of tags which should be observed by this query.
|
Query.CompleteBuilder |
observesTags(java.lang.String tag,
java.lang.String... tags)
Optional: Specifies set of tags which should be observed by this query.
|
Query.CompleteBuilder |
orderBy(java.lang.String orderBy)
Optional: Specifies
ORDER BY clause. |
Query.CompleteBuilder |
table(java.lang.String table)
Specifies table name.
|
Query.CompleteBuilder |
where(java.lang.String where)
Optional: Specifies
WHERE clause. |
Query.CompleteBuilder |
whereArgs(java.util.List<?> whereArgs)
Optional: Specifies arguments for where clause.
|
<T> Query.CompleteBuilder |
whereArgs(T... whereArgs)
Optional: Specifies arguments for where clause.
|
@NonNull public Query.CompleteBuilder table(@NonNull java.lang.String table)
table - non-null and not empty table name.Query.table()@NonNull public Query.CompleteBuilder distinct(boolean distinct)
Set true if you want each row to be unique, false otherwise.
Default value is false.
distinct - distinct option.Query.distinct()@NonNull public Query.CompleteBuilder columns(@Nullable java.lang.String... columns)
If list will be null or empty — all columns will be received.
Default value is null.
columns - list of columns to receive.Query.columns()@NonNull public Query.CompleteBuilder where(@Nullable java.lang.String where)
WHERE clause.
Optional filter declaring which rows to return.
Formatted as an SQL WHERE clause (excluding the WHERE itself).
Passing null will RETURN all rows for the given table.
Default value is null.
where - WHERE clause.Query.where()@NonNull public <T> Query.CompleteBuilder whereArgs(@Nullable T... whereArgs)
Passed objects will be immediately converted list of
to String via calling Object.toString().
Default value is null.
whereArgs - list of arguments for where clause.Query.whereArgs()@NonNull public Query.CompleteBuilder whereArgs(@Nullable java.util.List<?> whereArgs)
Passed objects will be immediately converted list of
to String via calling Object.toString().
Default value is null.
whereArgs - list of arguments for where clause.Query.whereArgs()@NonNull public Query.CompleteBuilder groupBy(@Nullable java.lang.String groupBy)
GROUP BY clause.
Optional filter declaring how to group rows.
Formatted as an SQL GROUP BY clause (excluding the GROUP BY itself).
Passing null will cause the rows to not be grouped.
Default value is null.
groupBy - GROUP BY clause.Query.groupBy()@NonNull public Query.CompleteBuilder having(@Nullable java.lang.String having)
HAVING clause.
Optional filter declare which row groups to include in the cursor, if row grouping is being used.
Formatted as an SQL HAVING clause (excluding the HAVING itself).
Passing null will cause all row groups to be included,
and is required when row grouping is not being used.
Default value is null.
having - HAVING clause.Query.having()@NonNull public Query.CompleteBuilder orderBy(@Nullable java.lang.String orderBy)
ORDER BY clause.
Optional specifier to how to order the rows.
Formatted as an SQL ORDER BY clause (excluding the ORDER BY itself).
Passing null will use the default sort order, which may be unordered.
Default value is null.
orderBy - ORDER BY clause.Query.orderBy()@NonNull public Query.CompleteBuilder limit(@Nullable java.lang.String limit)
LIMIT clause.
Optional specifier that limits the number of rows returned by the query.
Formatted as LIMIT clause: "[offset], rows". Examples:
"5" — will limit output to first five rows."5, 12" — will limit output to 12 rows with start offset == 5.
Passing null denotes no LIMIT clause.
Default value is null.
limit - LIMIT clause.Query.limit(),
limit(int),
limit(int, int),
The LIMIT clause documentation@NonNull public Query.CompleteBuilder limit(int limit)
LIMIT clause.
Optional specifier that limits the number of rows returned by the query.
limit - positive number of rows returned by the query.Query.limit(),
limit(String),
limit(int, int),
The LIMIT clause documentation@NonNull public Query.CompleteBuilder limit(int offset, int quantity)
LIMIT clause.
Optional specifier that limits the number of rows returned by the query.
Examples:
"offset = 5, quantity = 12" — will limit output to 12 rows with start offset 5.offset - non-negative start position.quantity - positive number of queried rows.Query.limit(),
limit(String),
limit(int),
The LIMIT clause documentation@NonNull public Query.CompleteBuilder observesTags(@NonNull java.lang.String tag, @Nullable java.lang.String... tags)
tag - the first required tag which will be observed by this query.tags - optional set of tags which will be observed by this query.Query.observesTags(),
StorIOSQLite.observeChangesOfTag(String)@NonNull public Query.CompleteBuilder observesTags(@Nullable java.util.Collection<java.lang.String> tags)
tags - set of tags which will be observed by this query.Query.observesTags(),
StorIOSQLite.observeChangesOfTag(String)