public class Delete extends BuiltStatement
Modifier and Type | Class and Description |
---|---|
static class |
Delete.Builder
An in-construction DELETE statement.
|
static class |
Delete.Conditions
Conditions for a DELETE statement.
|
static class |
Delete.Options
The options of a DELETE statement.
|
static class |
Delete.Selection
An column selection clause for an in-construction DELETE statement.
|
static class |
Delete.Where
The WHERE clause of a DELETE statement.
|
idempotent, NULL_PAYLOAD_VALUE
Modifier and Type | Method and Description |
---|---|
Delete |
ifExists()
Sets the 'IF EXISTS' option for this DELETE statement.
|
Delete.Conditions |
onlyIf()
Adds a conditions clause (IF) to this statement.
|
Delete.Conditions |
onlyIf(Clause condition)
Adds a conditions clause (IF) to this statement.
|
Delete.Options |
using()
Returns the options for this DELETE statement.
|
Delete.Options |
using(Using using)
Adds a new options for this DELETE statement.
|
Delete.Where |
where()
Returns a Where statement for this query without adding clause.
|
Delete.Where |
where(Clause clause)
Adds a WHERE clause to this statement.
|
escapeId, getKeyspace, getNamedValues, getObject, getObject, getQueryString, getRoutingKey, getValues, hasValues, isIdempotent, setForceNoValues, toString, usesNamedValues
getQueryString, hasValues, requestSizeInBytes
disableTracing, enableTracing, getConsistencyLevel, getDefaultTimestamp, getFetchSize, getHost, getOutgoingPayload, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, isBatchIdempotent, isTracing, setConsistencyLevel, setDefaultTimestamp, setFetchSize, setHost, setIdempotent, setOutgoingPayload, setPagingState, setPagingState, setPagingStateUnsafe, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel
public Delete.Where where(Clause clause)
This is a shorter/more readable version for where().and(clause)
.
clause
- the clause to add.public Delete.Where where()
public Delete.Conditions onlyIf(Clause condition)
This is a shorter/more readable version for onlyIf().and(condition)
.
This will configure the statement as non-idempotent, see Statement.isIdempotent()
for more information.
condition
- the condition to add.public Delete.Conditions onlyIf()
This will configure the statement as non-idempotent, see Statement.isIdempotent()
for more information.
public Delete.Options using(Using using)
using
- the option to add.public Delete.Options using()
Chain this with Delete.Options.and(Using)
to add options.
public Delete ifExists()
A delete with that option will report whether the statement actually resulted in data being deleted. The existence check and deletion are done transactionally in the sense that if multiple clients attempt to delete a given row with this option, then at most one may succeed.
Please keep in mind that using this option has a non negligible performance impact and
should be avoided when possible. This will configure the statement as non-idempotent, see
Statement.isIdempotent()
for more information.
Copyright © 2012–2018. All rights reserved.