T - The type of POJO associated with this statement.public class DeleteImpl<T> extends StatementImpl<Void,VoidFuture,T> implements Delete<T>
DeleteImpl class extends the functionality of Cassandra's
Delete class to provide
support for POJOs.| Modifier and Type | Class and Description |
|---|---|
static class |
DeleteImpl.BuilderImpl<T>
The
BuilderImpl class defines an in-construction DELETE statement. |
static class |
DeleteImpl.ConditionsImpl<T>
Conditions for a DELETE statement.
|
static class |
DeleteImpl.OptionsImpl<T>
The
OptionsImpl class defines the options of a DELETE statement. |
static class |
DeleteImpl.SelectionImpl<T>
The
SelectionImpl class defines a selection clause for an
in-construction DELETE statement. |
static class |
DeleteImpl.WhereImpl<T>
The
WhereImpl class defines WHERE clause for a DELETE
statement. |
Delete.Builder<T>, Delete.Conditions<T>, Delete.Options<T>, Delete.Selection<T>, Delete.Where<T>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allSelected
Flag to keep track of whether or not the special * has been selected.
|
protected List<Object> |
columnNames
List of columns deleted.
|
bridge, CI_PREFIX, idempotent, isCounterOp, mgr, MK_PREFIX, resultClass, simpleSize, UDT_C_PREFIX| Constructor and Description |
|---|
DeleteImpl(ClassInfoImpl.Context context,
String[] tables,
List<Object> columnNames,
boolean allSelected,
StatementManagerImpl mgr,
StatementBridge bridge)
Instantiates a new
DeleteImpl object. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
<U> Optional<Using<U>> |
getUsing(String name) |
Delete<T> |
ifExists() |
Delete.Conditions<T> |
onlyIf() |
Delete.Conditions<T> |
onlyIf(Clause condition) |
protected int |
simpleSize()
Gets the number of simple statements in this statement.
|
java.util.stream.Stream<TableInfo<T>> |
tables() |
Delete.Options<T> |
using(Using<?> using) |
java.util.stream.Stream<Using<?>> |
usings() |
Delete.Where<T> |
where() |
Delete.Where<T> |
where(Clause clause) |
appendGroupSubType, appendOptions, buildQueryString, buildStatements, clearKeyspace, disable, disableErrorTracing, disableTracing, enable, enableErrorTracing, enableErrorTracing, enableTracing, enableTracing, execute, executeAsync, executeAsync0, 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 boolean allSelected
public DeleteImpl(ClassInfoImpl.Context context, String[] tables, List<Object> columnNames, boolean allSelected, StatementManagerImpl mgr, StatementBridge bridge)
DeleteImpl object.context - the non-null class info context associated
with this statementtables - the tables to delete fromcolumnNames - the columns names that should be deleted by the queryallSelected - true if the special COUNT() or *
has been selectedmgr - the non-null statement managerbridge - the non-null statement bridgeNullPointerException - if context is nullIllegalArgumentException - if unable to compute the keyspace or table
names based from the given objectprotected 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)public java.util.stream.Stream<TableInfo<T>> tables()
tables in interface Delete<T>Update.tables()public Delete.Where<T> where(Clause clause)
where in interface Delete<T>Delete.where(org.helenus.driver.Clause)public Delete.Where<T> where()
where in interface Delete<T>Delete.where()public Delete.Options<T> using(Using<?> using)
using in interface Delete<T>Delete.using(org.helenus.driver.Using)public java.util.stream.Stream<Using<?>> usings()
usings in interface Delete<T>Insert.usings()public <U> Optional<Using<U>> getUsing(String name)
getUsing in interface Delete<T>Insert.getUsing(java.lang.String)public Delete<T> ifExists()
ifExists in interface Delete<T>Delete.ifExists()public Delete.Conditions<T> onlyIf(Clause condition)
onlyIf in interface Delete<T>Delete.onlyIf(org.helenus.driver.Clause)public Delete.Conditions<T> onlyIf()
onlyIf in interface Delete<T>Delete.onlyIf()Copyright (C) 2015-2017 The Helenus Driver Project Authors.