org.apache.oozie.util.db
Class SqlStatement.Update

java.lang.Object
  extended by org.apache.oozie.util.db.SqlStatement
      extended by org.apache.oozie.util.db.SqlStatement.Update
Enclosing class:
SqlStatement

public static class SqlStatement.Update
extends SqlStatement

UPDATE SQL Statement generator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.oozie.util.db.SqlStatement
SqlStatement.Condition, SqlStatement.Delete, SqlStatement.Insert, SqlStatement.ResultSetReader, SqlStatement.Select, SqlStatement.Update
 
Field Summary
 
Fields inherited from class org.apache.oozie.util.db.SqlStatement
forUpdate, sb, values
 
Method Summary
 SqlStatement.Update set(Schema.Column column, Object value)
          SET clause for update statement
 String toString()
          Return the UPDATE statement
 SqlStatement.Update where(SqlStatement.Condition condition)
          Set condition for updating
 
Methods inherited from class org.apache.oozie.util.db.SqlStatement
and, between, deleteFrom, getCount, getNewStatementWithValues, greaterThan, greaterThanOrEqual, in, in, insertInto, isEqual, isLike, isNotEqual, isNotLike, isNotNull, isNull, lessThan, lessThanOrEqual, notBetween, notIn, notIn, or, parse, prepare, prepare, prepareAndSetValues, prepareForBatch, selectAllFrom, selectColumns, setValue, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

set

public SqlStatement.Update set(Schema.Column column,
                               Object value)
SET clause for update statement

Parameters:
column - column name
value - A temporary place holder which can be replaced while preparing
Returns:
Update for cascading

where

public SqlStatement.Update where(SqlStatement.Condition condition)
Set condition for updating

Parameters:
condition - condition for where clause
Returns:
Update for cascading

toString

public String toString()
Return the UPDATE statement

Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.