|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.OnClause
com.espertech.esper.client.soda.OnSetClause
public class OnSetClause
A clause to assign new values to variables based on a triggering event arriving.
Constructor Summary | |
---|---|
OnSetClause()
Ctor. |
Method Summary | |
---|---|
OnSetClause |
addAssignment(String variable,
Expression expression)
Adds a variable to set to the clause. |
static OnSetClause |
create(String variableName,
Expression expression)
Creates a new on-set clause for setting variables, and adds a variable to set. |
List<Pair<String,Expression>> |
getAssignments()
Returns the list of variable assignments. |
void |
setAssignments(List<Pair<String,Expression>> assignments)
Sets a list of variable assignments. |
void |
toEPL(StringWriter writer)
Renders the clause in EPL. |
Methods inherited from class com.espertech.esper.client.soda.OnClause |
---|
createOnDelete, createOnSelect, createOnSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnSetClause()
Method Detail |
---|
public static OnSetClause create(String variableName, Expression expression)
variableName
- is the variable nameexpression
- is the assignment expression providing the new variable value
public OnSetClause addAssignment(String variable, Expression expression)
variable
- to setexpression
- expression providing the new variable value
public List<Pair<String,Expression>> getAssignments()
public void setAssignments(List<Pair<String,Expression>> assignments)
assignments
- list of pairs of variable name and expressionpublic void toEPL(StringWriter writer)
writer
- to output to
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |