- java.lang.Object
-
- net.sf.jsqlparser.statement.update.UpdateSet
-
- All Implemented Interfaces:
Serializable
public class UpdateSet extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionList<Column>columnsprotected ExpressionList<Expression>values
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Expression expression)Add another expression to the existing value list.voidadd(ExpressionList<?> expressionList)voidadd(Column column)Add another column to the existing column list.voidadd(Column column, Expression value)static StringBuilderappendUpdateSetsTo(StringBuilder builder, Collection<UpdateSet> updateSets)ColumngetColumn(int index)ExpressionList<Column>getColumns()ExpressiongetValue(int index)ExpressionList<?>getValues()voidsetColumns(ExpressionList<Column> columns)voidsetValues(ExpressionList values)
-
-
-
Field Detail
-
columns
protected ExpressionList<Column> columns
-
values
protected ExpressionList<Expression> values
-
-
Constructor Detail
-
UpdateSet
public UpdateSet()
-
UpdateSet
public UpdateSet(Column column)
-
UpdateSet
public UpdateSet(Column column, Expression value)
-
-
Method Detail
-
appendUpdateSetsTo
public static final StringBuilder appendUpdateSetsTo(StringBuilder builder, Collection<UpdateSet> updateSets)
-
getColumns
public ExpressionList<Column> getColumns()
-
setColumns
public void setColumns(ExpressionList<Column> columns)
-
getColumn
public Column getColumn(int index)
-
getValues
public ExpressionList<?> getValues()
-
setValues
public void setValues(ExpressionList values)
-
getValue
public Expression getValue(int index)
-
add
public void add(Column column, Expression value)
-
add
public void add(Column column)
Add another column to the existing column list. Transform this list into a ParenthesedExpression list when needed.- Parameters:
column-
-
add
public void add(Expression expression)
Add another expression to the existing value list. Transform this list into a ParenthesedExpression list when needed.- Parameters:
expression-
-
add
public void add(ExpressionList<?> expressionList)
-
-