public class TableAccessExpression extends ExpressionBase
Constructor and Description |
---|
TableAccessExpression()
Ctor.
|
TableAccessExpression(String tableName,
List<Expression> keyExpressions,
String optionalColumn,
Expression optionalAggregate)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
List<Expression> |
getKeyExpressions()
Returns the primary key expressions.
|
Expression |
getOptionalAggregate()
Returns the optional table column aggregation accessor to use.
|
String |
getOptionalColumn()
Returns the optional table column name to access.
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
String |
getTableName()
Returns the table name.
|
void |
setKeyExpressions(List<Expression> keyExpressions)
Sets the primary key expressions.
|
void |
setOptionalAggregate(Expression optionalAggregate)
Sets the optional table column aggregation accessor to use.
|
void |
setOptionalColumn(String optionalColumn)
Sets the optional table column name to access.
|
void |
setTableName(String tableName)
Sets the table name.
|
void |
toPrecedenceFreeEPL(StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
public TableAccessExpression()
public TableAccessExpression(String tableName, List<Expression> keyExpressions, String optionalColumn, Expression optionalAggregate)
tableName
- the table namekeyExpressions
- the list of key expressions for each table primary key in the same order as declaredoptionalColumn
- optional column nameoptionalAggregate
- optional aggregation functionpublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to usepublic String getTableName()
public void setTableName(String tableName)
tableName
- table namepublic List<Expression> getKeyExpressions()
public void setKeyExpressions(List<Expression> keyExpressions)
keyExpressions
- primary key expressionspublic String getOptionalColumn()
public void setOptionalColumn(String optionalColumn)
optionalColumn
- table column name or null if accessing rowpublic Expression getOptionalAggregate()
public void setOptionalAggregate(Expression optionalAggregate)
optionalAggregate
- table column aggregation accessor