net.sf.jsqlparser.statement.update
Class Update
java.lang.Object
net.sf.jsqlparser.statement.update.Update
- All Implemented Interfaces:
- Statement
public class Update
- extends java.lang.Object
- implements Statement
The update statement.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
private Table table
where
private Expression where
columns
private java.util.List columns
expressions
private java.util.List expressions
Update
public Update()
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
Column
s in this update (as col1 and col2 in UPDATE col1='a', col2='b')
- Returns:
- a list of
Column
s
getExpressions
public java.util.List getExpressions()
- The
Expression
s in this update (as 'a' and 'b' in UPDATE col1='a', col2='b')
- Returns:
- a list of
Expression
s
setColumns
public void setColumns(java.util.List list)
setExpressions
public void setExpressions(java.util.List list)