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
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(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, getObject, getQueryString, getRoutingKey, getValues, isIdempotent, setForceNoValues, toString
disableTracing, enableTracing, getConsistencyLevel, getFetchSize, getRetryPolicy, getSerialConsistencyLevel, isTracing, setConsistencyLevel, setFetchSize, setIdempotent, setPagingState, setPagingStateUnsafe, setRetryPolicy, setSerialConsistencyLevel
public Delete.Where where(Clause clause)
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)
.
condition
- the condition to add.public Delete.Conditions onlyIf()
public Delete.Options using(Using using)
using
- the option to add.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.
Copyright © 2012–2015. All rights reserved.