net.sf.jsqlparser.statement.update
Class Update

java.lang.Object
  extended by net.sf.jsqlparser.statement.update.Update
All Implemented Interfaces:
Statement

public class Update
extends java.lang.Object
implements Statement

The update statement.


Field Summary
private  java.util.List columns
           
private  java.util.List expressions
           
private  Table table
           
private  Expression where
           
 
Constructor Summary
Update()
           
 
Method Summary
 void accept(StatementVisitor statementVisitor)
           
 java.util.List getColumns()
          The Columns in this update (as col1 and col2 in UPDATE col1='a', col2='b')
 java.util.List getExpressions()
          The Expressions in this update (as 'a' and 'b' in UPDATE col1='a', col2='b')
 Table getTable()
           
 Expression getWhere()
           
 void setColumns(java.util.List list)
           
 void setExpressions(java.util.List list)
           
 void setTable(Table name)
           
 void setWhere(Expression expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

private Table table

where

private Expression where

columns

private java.util.List columns

expressions

private java.util.List expressions
Constructor Detail

Update

public Update()
Method Detail

accept

public void accept(StatementVisitor statementVisitor)
Specified by:
accept in interface Statement

getTable

public Table getTable()

getWhere

public Expression getWhere()

setTable

public void setTable(Table name)

setWhere

public void setWhere(Expression expression)

getColumns

public java.util.List getColumns()
The Columns in this update (as col1 and col2 in UPDATE col1='a', col2='b')

Returns:
a list of Columns

getExpressions

public java.util.List getExpressions()
The Expressions in this update (as 'a' and 'b' in UPDATE col1='a', col2='b')

Returns:
a list of Expressions

setColumns

public void setColumns(java.util.List list)

setExpressions

public void setExpressions(java.util.List list)