public final class InsertQuery
extends java.lang.Object
StorIOSQLite.
Instances of this class are immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
InsertQuery.Builder
Builder for
InsertQuery. |
static class |
InsertQuery.CompleteBuilder
Compile-time safe part of builder for
DeleteQuery. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
affectsTags()
Gets optional immutable set of tags which will be affected by this query.
|
static InsertQuery.Builder |
builder()
Creates new builder for
InsertQuery. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
nullColumnHack()
Gets tricky-wiki hack for
null columns in
SQLiteDatabase. |
java.lang.String |
table()
Gets table name.
|
InsertQuery.CompleteBuilder |
toBuilder()
Returns the new builder that has the same content as this query.
|
java.lang.String |
toString() |
@NonNull public java.lang.String table()
@Nullable public java.lang.String nullColumnHack()
null columns in
SQLiteDatabase.
SQL doesn't allow inserting a completely empty row
without naming at least one column name. If your provided values
are empty, no column names are known and an empty row can't be
inserted. If not set to null, the nullColumnHack
parameter provides the name of nullable column name to explicitly
insert a NULL into in the case where your values is empty.
NULL columns.@NonNull public java.util.Set<java.lang.String> affectsTags()
They will be used to notify observers of that tags.
@NonNull public InsertQuery.CompleteBuilder toBuilder()
InsertQuery.CompleteBuilder with content of this query.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object@NonNull public static InsertQuery.Builder builder()
InsertQuery.InsertQuery.Builder.