Class EJBQLSelectColumnsTranslator
java.lang.Object
org.apache.cayenne.ejbql.EJBQLBaseVisitor
org.apache.cayenne.access.translator.ejbql.EJBQLSelectColumnsTranslator
- All Implemented Interfaces:
EJBQLExpressionVisitor
Translator of the EJBQL select clause.
- Since:
- 3.0
-
Field Summary
Fields inherited from class org.apache.cayenne.ejbql.EJBQLBaseVisitor
continueFlag
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendColumn
(String javaType, String alias, DbAttribute dbAttribute, String columnAlias) boolean
visitAggregate
(EJBQLExpression expression) boolean
visitDbPath
(EJBQLExpression expression, int finishedChildIndex) boolean
visitIdentifier
(EJBQLExpression expression) boolean
visitPath
(EJBQLExpression expression, int finishedChildIndex) Called on visiting "path" expression and also after visiting every expression child.boolean
visitSelectExpression
(EJBQLExpression expression) Methods inherited from class org.apache.cayenne.ejbql.EJBQLBaseVisitor
visitAbs, visitAbstractSchemaName, visitAdd, visitAll, visitAnd, visitAny, visitAscending, visitAverage, visitBetween, visitBooleanLiteral, visitClassName, visitConcat, visitConstructor, visitConstructorParameter, visitConstructorParameters, visitCount, visitCurrentDate, visitCurrentTime, visitCurrentTimestamp, visitDecimalLiteral, visitDelete, visitDescending, visitDistinct, visitDivide, visitEquals, visitEscapeCharacter, visitExists, visitFrom, visitFromItem, visitGreaterOrEqual, visitGreaterThan, visitGroupBy, visitHaving, visitIdentificationVariable, visitIn, visitInnerFetchJoin, visitInnerJoin, visitIntegerLiteral, visitIsEmpty, visitIsNull, visitLength, visitLessOrEqual, visitLessThan, visitLike, visitLocate, visitLower, visitMax, visitMemberOf, visitMin, visitMod, visitMultiply, visitNamedInputParameter, visitNamedInputParameterForIn, visitNegative, visitNot, visitNotEquals, visitOr, visitOrderBy, visitOrderByItem, visitOuterFetchJoin, visitOuterJoin, visitPatternValue, visitPositionalInputParameter, visitPositionalInputParameterForIn, visitSelect, visitSelectClause, visitSelectExpressions, visitSize, visitSqrt, visitStringLiteral, visitSubselect, visitSubstring, visitSubtract, visitSum, visitTok, visitTrim, visitTrimBoth, visitTrimCharacter, visitTrimLeading, visitTrimTrailing, visitUpdate, visitUpdateField, visitUpdateItem, visitUpdateValue, visitUpper, visitWhere
-
Field Details
-
context
-
-
Constructor Details
-
EJBQLSelectColumnsTranslator
-
-
Method Details
-
visitSelectExpression
- Specified by:
visitSelectExpression
in interfaceEJBQLExpressionVisitor
- Overrides:
visitSelectExpression
in classEJBQLBaseVisitor
-
visitAggregate
- Specified by:
visitAggregate
in interfaceEJBQLExpressionVisitor
- Overrides:
visitAggregate
in classEJBQLBaseVisitor
-
visitDbPath
- Specified by:
visitDbPath
in interfaceEJBQLExpressionVisitor
- Overrides:
visitDbPath
in classEJBQLBaseVisitor
-
visitPath
Description copied from interface:EJBQLExpressionVisitor
Called on visiting "path" expression and also after visiting every expression child.- Specified by:
visitPath
in interfaceEJBQLExpressionVisitor
- Overrides:
visitPath
in classEJBQLBaseVisitor
- Parameters:
expression
- a "path" node being visited.finishedChildIndex
- "-1" when the expression node is visited for the first time, before its children; otherwise this is an index of a child just visited.
-
visitIdentifier
- Specified by:
visitIdentifier
in interfaceEJBQLExpressionVisitor
- Overrides:
visitIdentifier
in classEJBQLBaseVisitor
-
appendColumn
public void appendColumn(String javaType, String alias, DbAttribute dbAttribute, String columnAlias)
-