Query
, InsertQuery
MongoDBInsertQuery
, SQLInsertQuery
public abstract class AbstractInsertQuery<C extends DatabaseCollection> extends AbstractQuery implements InsertQuery
Modifier and Type | Class | Description |
---|---|---|
static class |
AbstractInsertQuery.Entry |
Query.Option
Modifier and Type | Field | Description |
---|---|---|
protected C |
collection |
|
protected List<AbstractInsertQuery.Entry> |
entries |
|
protected List<FindQuery> |
queries |
EMPTY_OBJECT_ARRAY, EMPTY_STRING_ARRAY
Constructor | Description |
---|---|
AbstractInsertQuery(C collection) |
executeAsync, getLogger
executeAndGetGeneratedKeys
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, executeAsync, executeAsync
protected final C extends DatabaseCollection collection
protected final List<AbstractInsertQuery.Entry> entries
public AbstractInsertQuery(C collection)
public InsertQuery set(String field, Object... values)
set
in interface InsertQuery
public InsertQuery set(String field, List<Object> values)
set
in interface InsertQuery
public InsertQuery set(String field)
set
in interface InsertQuery
public InsertQuery fields(String... fields)
InsertQuery
fields
in interface InsertQuery
fields
- The fields to definepublic InsertQuery values(Object... values)
values
in interface InsertQuery
public InsertQuery query(FindQuery query)
query
in interface InsertQuery
public QueryResult executeAndGetGeneratedKeys(String... keyColumns)
executeAndGetGeneratedKeys
in interface InsertQuery
public int executeAndGetGeneratedKeyAsInt(String keyColumn, Object... values)
executeAndGetGeneratedKeyAsInt
in interface InsertQuery
public long executeAndGetGeneratedKeyAsLong(String keyColumn, Object... values)
executeAndGetGeneratedKeyAsLong
in interface InsertQuery
public CompletableFuture<QueryResult> executeAsyncAndGetGeneratedKeys(String[] keyColumns, Object... values)
executeAsyncAndGetGeneratedKeys
in interface InsertQuery
public CompletableFuture<QueryResult> executeAsyncAndGetGeneratedKeys(String... keyColumns)
executeAsyncAndGetGeneratedKeys
in interface InsertQuery
public CompletableFuture<Integer> executeAsyncAndGetGeneratedKeyAsInt(String keyColumn, Object... values)
executeAsyncAndGetGeneratedKeyAsInt
in interface InsertQuery
public CompletableFuture<Long> executeAsyncAndGetGeneratedKeyAsLong(String keyColumn, Object... values)
executeAsyncAndGetGeneratedKeyAsLong
in interface InsertQuery
public QueryResult execute(Object... values)
Query
public AbstractInsertQuery.Entry getEntry(String name)
Copyright © 2020. All rights reserved.