com.datastax.driver.core.querybuilder
Class Update

java.lang.Object
  extended by com.datastax.driver.core.Statement
      extended by com.datastax.driver.core.RegularStatement
          extended by com.datastax.driver.core.querybuilder.BuiltStatement
              extended by com.datastax.driver.core.querybuilder.Update

public class Update
extends BuiltStatement

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

with

public Update.Assignments with(Assignment assignment)
Adds an assignment to this UPDATE statement. This is a shorter/more readable version for with().and(assignment).

Parameters:
assignment - the assignment to add.
Returns:
the Assignments of this UPDATE statement.

with

public Update.Assignments with()
Returns the assignments of this UPDATE statement.

Returns:
the assignments of this UPDATE statement.

where

public Update.Where where(Clause clause)
Adds a WHERE clause to this statement. This is a shorter/more readable version for where().and(clause).

Parameters:
clause - the clause to add.
Returns:
the where clause of this query to which more clause can be added.

where

public Update.Where where()
Returns a Where statement for this query without adding clause.

Returns:
the where clause of this query to which more clause can be added.

onlyIf

public Update.Conditions onlyIf(Clause condition)
Adds a conditions clause (IF) to this statement.

This is a shorter/more readable version for onlyIf().and(condition).

Parameters:
condition - the condition to add.
Returns:
the conditions of this query to which more conditions can be added.

onlyIf

public Update.Conditions onlyIf()
Adds a conditions clause (IF) to this statement.

Returns:
the conditions of this query to which more conditions can be added.

using

public Update.Options using(Using using)
Adds a new options for this UPDATE statement.

Parameters:
using - the option to add.
Returns:
the options of this UPDATE statement.


Copyright © 2014. All rights reserved.