com.espertech.esper.client.soda
Class OnDeleteClause

java.lang.Object
  extended by com.espertech.esper.client.soda.OnClause
      extended by com.espertech.esper.client.soda.OnDeleteClause
All Implemented Interfaces:
java.io.Serializable

public class OnDeleteClause
extends OnClause

A clause to delete from a named window based on a triggering event arriving and correlated to the named window events to be deleted.

See Also:
Serialized Form

Constructor Summary
OnDeleteClause()
          Ctor.
OnDeleteClause(java.lang.String windowName, java.lang.String optionalAsName)
          Ctor.
 
Method Summary
static OnDeleteClause create(java.lang.String windowName, java.lang.String optionalAsName)
          Creates an on-delete clause.
 java.lang.String getOptionalAsName()
          Returns the as-provided name for the named window.
 java.lang.String getWindowName()
          Returns the name of the named window to delete from.
 void setOptionalAsName(java.lang.String optionalAsName)
          Sets the as-provided for the named window.
 void setWindowName(java.lang.String windowName)
          Sets the name of the named window.
 void toEPL(java.io.StringWriter writer)
          Renders the clause in textual representation.
 
Methods inherited from class com.espertech.esper.client.soda.OnClause
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnDeleteClause

public OnDeleteClause()
Ctor.


OnDeleteClause

public OnDeleteClause(java.lang.String windowName,
                      java.lang.String optionalAsName)
Ctor.

Parameters:
windowName - is the named window name
optionalAsName - is the as-provided name of the named window
Method Detail

create

public static OnDeleteClause create(java.lang.String windowName,
                                    java.lang.String optionalAsName)
Creates an on-delete clause.

Parameters:
windowName - is the named window name
optionalAsName - is the optional as-provided name
Returns:
on-delete clause

toEPL

public void toEPL(java.io.StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

getWindowName

public java.lang.String getWindowName()
Returns the name of the named window to delete from.

Returns:
named window name

setWindowName

public void setWindowName(java.lang.String windowName)
Sets the name of the named window.

Parameters:
windowName - window name

getOptionalAsName

public java.lang.String getOptionalAsName()
Returns the as-provided name for the named window.

Returns:
name or null

setOptionalAsName

public void setOptionalAsName(java.lang.String optionalAsName)
Sets the as-provided for the named window.

Parameters:
optionalAsName - name to set for window

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com