|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.datastax.driver.core.Statement
com.datastax.driver.core.RegularStatement
com.datastax.driver.core.querybuilder.BuiltStatement
com.datastax.driver.core.querybuilder.Update
public class Update
A built UPDATE statement.
Nested Class Summary | |
---|---|
static class |
Update.Assignments
The assignments of an UPDATE statement. |
static class |
Update.Conditions
Conditions for an UDPATE statement. |
static class |
Update.Options
The options of a UDPATE statement. |
static class |
Update.Where
The WHERE clause of an UPDATE statement. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.datastax.driver.core.querybuilder.BuiltStatement |
---|
getKeyspace, getQueryString, getRoutingKey, getValues, setForceNoValues, toString |
Methods inherited from class com.datastax.driver.core.Statement |
---|
disableTracing, enableTracing, getConsistencyLevel, getFetchSize, getRetryPolicy, getSerialConsistencyLevel, isTracing, setConsistencyLevel, setFetchSize, setRetryPolicy, setSerialConsistencyLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |