public class OnSetClause extends OnClause
Constructor and Description |
---|
OnSetClause()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
OnSetClause |
addAssignment(Expression expression)
Adds a variable to set to the clause.
|
static OnSetClause |
create(Expression expression)
Creates a new on-set clause for setting variables, and adds a variable to set.
|
List<Assignment> |
getAssignments()
Returns the list of variable assignments.
|
void |
setAssignments(List<Assignment> assignments)
Sets a list of variable assignments.
|
void |
toEPL(StringWriter writer,
EPStatementFormatter formatter)
Renders the clause in EPL.
|
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
public static OnSetClause create(Expression expression)
expression
- is the assignment expression providing the new variable valuepublic OnSetClause addAssignment(Expression expression)
expression
- expression providing the new variable valuepublic List<Assignment> getAssignments()
public void setAssignments(List<Assignment> assignments)
assignments
- list of pairs of variable name and expressionpublic void toEPL(StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formatting