T - The type of POJO associated with this statement.public class InsertImpl<T> extends StatementImpl<Void,VoidFuture,T> implements Insert<T>
InsertImpl class extends the functionality of Cassandra's
Insert class to provide support
for POJOs.| Modifier and Type | Class and Description |
|---|---|
static class |
InsertImpl.BuilderImpl<T>
The
BuilderImpl class defines an in-construction INSERT statement. |
static class |
InsertImpl.OptionsImpl<T>
The
OptionsImpl class defines the options of an INSERT
statement. |
Insert.Builder<T>, Insert.Options<T>bridge, CI_PREFIX, idempotent, isCounterOp, mgr, MK_PREFIX, resultClass, simpleSize, UDT_C_PREFIX| Modifier and Type | Method and Description |
|---|---|
protected void |
appendGroupSubType(StringBuilder builder)
Appends the sub-type of group this is; used when building a query string.
|
protected void |
appendGroupType(StringBuilder builder)
Appends the type of group this is; used when building a query string.
|
protected StringBuilder[] |
buildQueryStrings()
Builds the query strings (one per underlying statement) to be collected if
the statement represents some a batch, sequence, or a group statement.
|
protected VoidFuture |
executeAsync0()
Executes this statement asynchronously.
|
<U> Optional<Using<U>> |
getUsing(String name) |
Insert<T> |
ifNotExists() |
boolean |
isEmpty() |
protected int |
simpleSize()
Gets the number of simple statements in this statement.
|
java.util.stream.Stream<TableInfo<T>> |
tables() |
Insert.Options<T> |
using(Using<?> using) |
java.util.stream.Stream<Using<?>> |
usings() |
Insert<T> |
value(String name) |
Insert<T> |
value(String name,
Object value) |
Insert<T> |
values(String... names) |
Insert<T> |
valuesFromObject() |
appendOptions, buildQueryString, buildStatements, clearKeyspace, disable, disableErrorTracing, disableTracing, enable, enableErrorTracing, enableErrorTracing, enableTracing, enableTracing, execute, executeAsync, executeAsyncRaw, executeAsyncRaw0, executeRaw, getClassInfo, getClassInfoImpl, getConsistencyLevel, getContext, getDefaultTimestamp, getFetchSize, getKeyspace, getObject, getObjectClass, getPOJOContext, getQueryString, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, getUserData, init, init, isCounterOp, isDirty, isEnabled, isErrorTracing, isIdempotent, isTracing, setConsistencyLevel, setCounterOp, setDefaultTimestamp, setDirty, setDirty, setFetchSize, setIdempotent, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel, setUserData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectgetClassInfo, getObjectClassdisable, disableErrorTracing, disableTracing, enable, enableErrorTracing, enableErrorTracing, enableTracing, enableTracing, execute, executeAsync, executeAsyncRaw, executeRaw, getConsistencyLevel, getDefaultTimestamp, getFetchSize, getKeyspace, getQueryString, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, getUserData, isEnabled, isErrorTracing, isIdempotent, isTracing, setConsistencyLevel, setDefaultTimestamp, setFetchSize, setIdempotent, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel, setUserDataprotected int simpleSize()
simpleSize in class StatementImpl<Void,VoidFuture,T>StatementImpl.simpleSize()protected StringBuilder[] buildQueryStrings()
buildQueryStrings in class StatementImpl<Void,VoidFuture,T>null if nothing to batchStatementImpl.buildQueryStrings()protected void appendGroupType(StringBuilder builder)
appendGroupType in class StatementImpl<Void,VoidFuture,T>builder - the builder to which to append the type of groupStatementImpl.appendGroupType(java.lang.StringBuilder)protected void appendGroupSubType(StringBuilder builder)
appendGroupSubType in class StatementImpl<Void,VoidFuture,T>builder - the builder to which to append the sub-type of groupStatementImpl.appendGroupSubType(java.lang.StringBuilder)protected VoidFuture executeAsync0()
ResultSetFuture.
Note that for queries that doesn't return a result (INSERT, UPDATE and
DELETE), you will need to access the result future (that is call one of
its get method to make sure the statement's execution was successful.executeAsync0 in class StatementImpl<Void,VoidFuture,T>StatementImpl.executeAsync0()public boolean isEmpty()
isEmpty in interface Insert<T>Insert.isEmpty()public java.util.stream.Stream<TableInfo<T>> tables()
tables in interface Insert<T>Insert.tables()public Insert<T> valuesFromObject()
valuesFromObject in interface Insert<T>Insert.valuesFromObject()public Insert<T> value(String name)
value in interface Insert<T>Insert.value(java.lang.String)public Insert<T> values(String... names)
values in interface Insert<T>Insert.values(java.lang.String[])public Insert<T> value(String name, Object value)
value in interface Insert<T>Insert.value(java.lang.String, java.lang.Object)public Insert.Options<T> using(Using<?> using)
using in interface Insert<T>Insert.using(org.helenus.driver.Using)public java.util.stream.Stream<Using<?>> usings()
usings in interface Insert<T>Insert.usings()public <U> Optional<Using<U>> getUsing(String name)
getUsing in interface Insert<T>Insert.getUsing(java.lang.String)public Insert<T> ifNotExists()
ifNotExists in interface Insert<T>Insert.ifNotExists()Copyright (C) 2015-2017 The Helenus Driver Project Authors.