|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.UpdateClause
public class UpdateClause
Specification for the update clause.
Constructor Summary | |
---|---|
UpdateClause()
Ctor. |
|
UpdateClause(java.lang.String eventType,
java.lang.String optionalAsClauseStreamName)
Ctor. |
Method Summary | |
---|---|
UpdateClause |
addAssignment(Expression expression)
Adds a property to set to the clause. |
static UpdateClause |
create(java.lang.String eventType,
Expression expression)
Ctor. |
java.util.List<Assignment> |
getAssignments()
Returns the list of property assignments. |
java.lang.String |
getEventType()
Returns the name of the event type to update. |
java.lang.String |
getOptionalAsClauseStreamName()
Returns the stream name. |
Expression |
getOptionalWhereClause()
Returns the where-clause if any. |
static void |
renderEPLAssignments(java.io.StringWriter writer,
java.util.List<Assignment> assignments)
Write assignments. |
void |
setAssignments(java.util.List<Assignment> assignments)
Sets a list of property assignments. |
void |
setEventType(java.lang.String eventType)
Returns the name of the event type to update. |
void |
setOptionalAsClauseStreamName(java.lang.String optionalAsClauseStreamName)
Returns the stream name. |
void |
setOptionalWhereClause(Expression optionalWhereClause)
Sets the where-clause if any. |
void |
toEPL(java.io.StringWriter writer)
Renders the clause in EPL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateClause()
public UpdateClause(java.lang.String eventType, java.lang.String optionalAsClauseStreamName)
eventType
- the name of the type to updateoptionalAsClauseStreamName
- as-clause for update, if anyMethod Detail |
---|
public static UpdateClause create(java.lang.String eventType, Expression expression)
eventType
- the name of the type to updateexpression
- expression returning a value to write
public UpdateClause addAssignment(Expression expression)
expression
- expression providing the new property value
public java.util.List<Assignment> getAssignments()
public void setAssignments(java.util.List<Assignment> assignments)
assignments
- list of pairs of property name and expressionpublic java.lang.String getEventType()
public void setEventType(java.lang.String eventType)
eventType
- name of typepublic Expression getOptionalWhereClause()
public void setOptionalWhereClause(Expression optionalWhereClause)
optionalWhereClause
- where clausepublic java.lang.String getOptionalAsClauseStreamName()
public void setOptionalAsClauseStreamName(java.lang.String optionalAsClauseStreamName)
optionalAsClauseStreamName
- stream namepublic void toEPL(java.io.StringWriter writer)
writer
- to output topublic static void renderEPLAssignments(java.io.StringWriter writer, java.util.List<Assignment> assignments)
writer
- to write toassignments
- to write
|
© 2006-2015 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 |