public class Update extends BuiltStatement
Modifier and Type | Class and Description |
---|---|
static class |
Update.Assignments
The assignments of an UPDATE statement.
|
static class |
Update.Conditions
Conditions for an UPDATE statement.
|
static class |
Update.IfExists |
static class |
Update.Options
The options of a UPDATE statement.
|
static class |
Update.Where
The WHERE clause of an UPDATE statement.
|
idempotent
Modifier and Type | Method and Description |
---|---|
Update.Conditions |
onlyIf()
Adds a conditions clause (IF) to this statement.
|
Update.Conditions |
onlyIf(Clause condition)
Adds a conditions clause (IF) to this statement.
|
Update.Options |
using(Using using)
Adds a new options for this UPDATE statement.
|
Update.Where |
where()
Returns a Where statement for this query without adding clause.
|
Update.Where |
where(Clause clause)
Adds a WHERE clause to this statement.
|
Update.Assignments |
with()
Returns the assignments of this UPDATE statement.
|
Update.Assignments |
with(Assignment assignment)
Adds an assignment to this UPDATE 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 Update.Assignments with(Assignment assignment)
with().and(assignment)
.assignment
- the assignment to add.public Update.Assignments with()
public Update.Where where(Clause clause)
where().and(clause)
.clause
- the clause to add.public Update.Where where()
public Update.Conditions onlyIf(Clause condition)
This is a shorter/more readable version for onlyIf().and(condition)
.
condition
- the condition to add.public Update.Conditions onlyIf()
public Update.Options using(Using using)
using
- the option to add.Copyright © 2012–2015. All rights reserved.