public class UpdateClause
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
UpdateClause()
Ctor.
|
UpdateClause(java.lang.String eventType,
java.lang.String optionalAsClauseStreamName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 anypublic static UpdateClause create(java.lang.String eventType, Expression expression)
eventType
- the name of the type to updateexpression
- expression returning a value to writepublic UpdateClause addAssignment(Expression expression)
expression
- expression providing the new property valuepublic 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