com.espertech.esper.client.soda
Class SelectClauseExpression

java.lang.Object
  extended by com.espertech.esper.client.soda.SelectClauseExpression
All Implemented Interfaces:
SelectClauseElement, java.io.Serializable

public class SelectClauseExpression
extends java.lang.Object
implements SelectClauseElement

Part of a select-clause to describe individual select-clause expressions.

See Also:
Serialized Form

Constructor Summary
SelectClauseExpression()
          Ctor.
SelectClauseExpression(Expression expression)
          Ctor.
SelectClauseExpression(Expression expression, java.lang.String optionalAsName)
          Ctor.
 
Method Summary
 java.lang.String getAsName()
          Returns the optional "as"-name of the expression, or null if not defined
 Expression getExpression()
          Returns the selection expression.
 boolean isAnnotatedByEventFlag()
          Returns indicator whether annotated as "@eventbean"
 void setAnnotatedByEventFlag(boolean annotatedByEventFlag)
          Sets indicator whether annotated as "@eventbean"
 void setAsName(java.lang.String asName)
          Sets the optional "as"-name of the expression, or null if not defined
 void setExpression(Expression expression)
          Sets the selection expression.
 void toEPLElement(java.io.StringWriter writer)
          Renders the element in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectClauseExpression

public SelectClauseExpression()
Ctor.


SelectClauseExpression

public SelectClauseExpression(Expression expression)
Ctor.

Parameters:
expression - is the selection expression

SelectClauseExpression

public SelectClauseExpression(Expression expression,
                              java.lang.String optionalAsName)
Ctor.

Parameters:
expression - is the selection expression
optionalAsName - is the "as"-tag for the expression
Method Detail

getExpression

public Expression getExpression()
Returns the selection expression.

Returns:
expression

setExpression

public void setExpression(Expression expression)
Sets the selection expression.

Parameters:
expression - is the selection expression

getAsName

public java.lang.String getAsName()
Returns the optional "as"-name of the expression, or null if not defined

Returns:
tag or null for selection expression

setAsName

public void setAsName(java.lang.String asName)
Sets the optional "as"-name of the expression, or null if not defined

Parameters:
asName - column name or null for selection expression

isAnnotatedByEventFlag

public boolean isAnnotatedByEventFlag()
Returns indicator whether annotated as "@eventbean"

Returns:
"@eventbean" indicator

setAnnotatedByEventFlag

public void setAnnotatedByEventFlag(boolean annotatedByEventFlag)
Sets indicator whether annotated as "@eventbean"

Parameters:
annotatedByEventFlag - "@eventbean" indicator

toEPLElement

public void toEPLElement(java.io.StringWriter writer)
Renders the element in textual representation.

Specified by:
toEPLElement in interface SelectClauseElement
Parameters:
writer - to output to

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