com.espertech.esper.client.soda
Class TableAccessExpression

java.lang.Object
  extended by com.espertech.esper.client.soda.ExpressionBase
      extended by com.espertech.esper.client.soda.TableAccessExpression
All Implemented Interfaces:
Expression, java.io.Serializable

public class TableAccessExpression
extends ExpressionBase

Table access expression.

See Also:
Serialized Form

Constructor Summary
TableAccessExpression()
          Ctor.
TableAccessExpression(java.lang.String tableName, java.util.List<Expression> keyExpressions, java.lang.String optionalColumn, Expression optionalAggregate)
          Ctor.
 
Method Summary
 java.util.List<Expression> getKeyExpressions()
          Returns the primary key expressions.
 Expression getOptionalAggregate()
          Returns the optional table column aggregation accessor to use.
 java.lang.String getOptionalColumn()
          Returns the optional table column name to access.
 ExpressionPrecedenceEnum getPrecedence()
          Returns precedence.
 java.lang.String getTableName()
          Returns the table name.
 void setKeyExpressions(java.util.List<Expression> keyExpressions)
          Sets the primary key expressions.
 void setOptionalAggregate(Expression optionalAggregate)
          Sets the optional table column aggregation accessor to use.
 void setOptionalColumn(java.lang.String optionalColumn)
          Sets the optional table column name to access.
 void setTableName(java.lang.String tableName)
          Sets the table name.
 void toPrecedenceFreeEPL(java.io.StringWriter writer)
          Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
 
Methods inherited from class com.espertech.esper.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableAccessExpression

public TableAccessExpression()
Ctor.


TableAccessExpression

public TableAccessExpression(java.lang.String tableName,
                             java.util.List<Expression> keyExpressions,
                             java.lang.String optionalColumn,
                             Expression optionalAggregate)
Ctor.

Parameters:
tableName - the table name
keyExpressions - the list of key expressions for each table primary key in the same order as declared
optionalColumn - optional column name
optionalAggregate - optional aggregation function
Method Detail

getPrecedence

public ExpressionPrecedenceEnum getPrecedence()
Description copied from interface: Expression
Returns precedence.

Returns:
precedence

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer)
Description copied from class: ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Specified by:
toPrecedenceFreeEPL in class ExpressionBase
Parameters:
writer - is the output to use

getTableName

public java.lang.String getTableName()
Returns the table name.

Returns:
table name

setTableName

public void setTableName(java.lang.String tableName)
Sets the table name.

Parameters:
tableName - table name

getKeyExpressions

public java.util.List<Expression> getKeyExpressions()
Returns the primary key expressions.

Returns:
primary key expressions

setKeyExpressions

public void setKeyExpressions(java.util.List<Expression> keyExpressions)
Sets the primary key expressions.

Parameters:
keyExpressions - primary key expressions

getOptionalColumn

public java.lang.String getOptionalColumn()
Returns the optional table column name to access.

Returns:
table column name or null if accessing row

setOptionalColumn

public void setOptionalColumn(java.lang.String optionalColumn)
Sets the optional table column name to access.

Parameters:
optionalColumn - table column name or null if accessing row

getOptionalAggregate

public Expression getOptionalAggregate()
Returns the optional table column aggregation accessor to use.

Returns:
table column aggregation accessor

setOptionalAggregate

public void setOptionalAggregate(Expression optionalAggregate)
Sets the optional table column aggregation accessor to use.

Parameters:
optionalAggregate - table column aggregation accessor

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