public class EJBQLBaseVisitor extends Object implements EJBQLExpressionVisitor
Modifier and Type | Field and Description |
---|---|
protected boolean |
continueFlag |
Constructor and Description |
---|
EJBQLBaseVisitor() |
EJBQLBaseVisitor(boolean continueFlag) |
Modifier and Type | Method and Description |
---|---|
boolean |
visitAbs(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitAbstractSchemaName(EJBQLExpression expression) |
boolean |
visitAdd(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "add" expression and also after visiting every expression child.
|
boolean |
visitAggregate(EJBQLExpression expression) |
boolean |
visitAll(EJBQLExpression expression) |
boolean |
visitAnd(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "and" expression and also after visiting every expression child.
|
boolean |
visitAny(EJBQLExpression expression) |
boolean |
visitAscending(EJBQLExpression expression) |
boolean |
visitAverage(EJBQLAggregateColumn expression) |
boolean |
visitBetween(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "between" expression and also after visiting every expression
child.
|
boolean |
visitBooleanLiteral(EJBQLExpression expression) |
boolean |
visitClassName(EJBQLExpression expression) |
boolean |
visitConcat(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitConstructor(EJBQLExpression expression) |
boolean |
visitConstructorParameter(EJBQLExpression expression) |
boolean |
visitConstructorParameters(EJBQLExpression expression) |
boolean |
visitCount(EJBQLAggregateColumn expression) |
boolean |
visitCurrentDate(EJBQLExpression expression) |
boolean |
visitCurrentTime(EJBQLExpression expression) |
boolean |
visitCurrentTimestamp(EJBQLExpression expression) |
boolean |
visitDbPath(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitDecimalLiteral(EJBQLDecimalLiteral expression) |
boolean |
visitDelete(EJBQLExpression expression) |
boolean |
visitDescending(EJBQLExpression expression) |
boolean |
visitDistinct(EJBQLExpression expression) |
boolean |
visitDivide(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "divide" expression and also after visiting every expression
child.
|
boolean |
visitEquals(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "equals" expression and also after visiting every expression
child.
|
boolean |
visitEscapeCharacter(EJBQLExpression expression) |
boolean |
visitExists(EJBQLExpression expression) |
boolean |
visitFrom(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitFromItem(EJBQLFromItem expression,
int finishedChildIndex) |
boolean |
visitGreaterOrEqual(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting ">=" expression and also after visiting every expression child.
|
boolean |
visitGreaterThan(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting ">=" expression and also after visiting every expression child.
|
boolean |
visitGroupBy(EJBQLExpression expression) |
boolean |
visitHaving(EJBQLExpression expression) |
boolean |
visitIdentificationVariable(EJBQLExpression expression) |
boolean |
visitIdentifier(EJBQLExpression expression) |
boolean |
visitIn(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitInnerFetchJoin(EJBQLJoin join) |
boolean |
visitInnerJoin(EJBQLJoin join) |
boolean |
visitIntegerLiteral(EJBQLIntegerLiteral expression) |
boolean |
visitIsEmpty(EJBQLExpression expression) |
boolean |
visitIsNull(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitLength(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitLessOrEqual(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "<=" expression and also after visiting every expression child.
|
boolean |
visitLessThan(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "<" expression and also after visiting every expression child.
|
boolean |
visitLike(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "LIKE" expression and also after visiting every expression
child.
|
boolean |
visitLocate(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitLower(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitMax(EJBQLAggregateColumn expression) |
boolean |
visitMemberOf(EJBQLExpression expression) |
boolean |
visitMin(EJBQLAggregateColumn expression) |
boolean |
visitMod(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitMultiply(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "*" expression and also after visiting every expression child.
|
boolean |
visitNamedInputParameter(EJBQLExpression expression) |
boolean |
visitNegative(EJBQLExpression expression) |
boolean |
visitNot(EJBQLExpression expression) |
boolean |
visitNotEquals(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "!=" expression and also after visiting every expression child.
|
boolean |
visitOr(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "or" expression and also after visiting every expression child.
|
boolean |
visitOrderBy(EJBQLExpression expression) |
boolean |
visitOrderByItem(EJBQLExpression expression) |
boolean |
visitOuterFetchJoin(EJBQLJoin join) |
boolean |
visitOuterJoin(EJBQLJoin join) |
boolean |
visitPath(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "path" expression and also after visiting every expression
child.
|
boolean |
visitPatternValue(EJBQLExpression expression) |
boolean |
visitPositionalInputParameter(EJBQLPositionalInputParameter expression) |
boolean |
visitSelect(EJBQLExpression expression) |
boolean |
visitSelectClause(EJBQLExpression expression) |
boolean |
visitSelectExpression(EJBQLExpression expression) |
boolean |
visitSelectExpressions(EJBQLExpression expression) |
boolean |
visitSize(EJBQLExpression expression) |
boolean |
visitSqrt(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitStringLiteral(EJBQLExpression expression) |
boolean |
visitSubselect(EJBQLExpression expression) |
boolean |
visitSubstring(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitSubtract(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "subtract" expression and also after visiting every expression
child.
|
boolean |
visitSum(EJBQLAggregateColumn expression) |
boolean |
visitTok(EJBQLExpression expression) |
boolean |
visitTrim(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitTrimBoth(EJBQLExpression expression) |
boolean |
visitTrimCharacter(EJBQLExpression expression) |
boolean |
visitTrimLeading(EJBQLExpression expression) |
boolean |
visitTrimTrailing(EJBQLExpression expression) |
boolean |
visitUpdate(EJBQLExpression expression) |
boolean |
visitUpdateField(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitUpdateItem(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitUpdateValue(EJBQLExpression expression) |
boolean |
visitUpper(EJBQLExpression expression,
int finishedChildIndex) |
boolean |
visitWhere(EJBQLExpression expression) |
public EJBQLBaseVisitor()
public EJBQLBaseVisitor(boolean continueFlag)
public boolean visitAbs(EJBQLExpression expression, int finishedChildIndex)
visitAbs
in interface EJBQLExpressionVisitor
public boolean visitAbstractSchemaName(EJBQLExpression expression)
visitAbstractSchemaName
in interface EJBQLExpressionVisitor
public boolean visitAdd(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitAdd
in interface EJBQLExpressionVisitor
expression
- an "add" 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.public boolean visitAggregate(EJBQLExpression expression)
visitAggregate
in interface EJBQLExpressionVisitor
public boolean visitAll(EJBQLExpression expression)
visitAll
in interface EJBQLExpressionVisitor
public boolean visitAnd(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitAnd
in interface EJBQLExpressionVisitor
expression
- an "and" 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.public boolean visitAny(EJBQLExpression expression)
visitAny
in interface EJBQLExpressionVisitor
public boolean visitAscending(EJBQLExpression expression)
visitAscending
in interface EJBQLExpressionVisitor
public boolean visitAverage(EJBQLAggregateColumn expression)
visitAverage
in interface EJBQLExpressionVisitor
public boolean visitBetween(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitBetween
in interface EJBQLExpressionVisitor
expression
- an "between" 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.public boolean visitBooleanLiteral(EJBQLExpression expression)
visitBooleanLiteral
in interface EJBQLExpressionVisitor
public boolean visitClassName(EJBQLExpression expression)
visitClassName
in interface EJBQLExpressionVisitor
public boolean visitConcat(EJBQLExpression expression, int finishedChildIndex)
visitConcat
in interface EJBQLExpressionVisitor
public boolean visitConstructor(EJBQLExpression expression)
visitConstructor
in interface EJBQLExpressionVisitor
public boolean visitConstructorParameter(EJBQLExpression expression)
visitConstructorParameter
in interface EJBQLExpressionVisitor
public boolean visitConstructorParameters(EJBQLExpression expression)
visitConstructorParameters
in interface EJBQLExpressionVisitor
public boolean visitCount(EJBQLAggregateColumn expression)
visitCount
in interface EJBQLExpressionVisitor
public boolean visitCurrentDate(EJBQLExpression expression)
visitCurrentDate
in interface EJBQLExpressionVisitor
public boolean visitCurrentTime(EJBQLExpression expression)
visitCurrentTime
in interface EJBQLExpressionVisitor
public boolean visitCurrentTimestamp(EJBQLExpression expression)
visitCurrentTimestamp
in interface EJBQLExpressionVisitor
public boolean visitDecimalLiteral(EJBQLDecimalLiteral expression)
visitDecimalLiteral
in interface EJBQLExpressionVisitor
public boolean visitDelete(EJBQLExpression expression)
visitDelete
in interface EJBQLExpressionVisitor
public boolean visitDescending(EJBQLExpression expression)
visitDescending
in interface EJBQLExpressionVisitor
public boolean visitDbPath(EJBQLExpression expression, int finishedChildIndex)
visitDbPath
in interface EJBQLExpressionVisitor
public boolean visitDistinct(EJBQLExpression expression)
visitDistinct
in interface EJBQLExpressionVisitor
public boolean visitDivide(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitDivide
in interface EJBQLExpressionVisitor
expression
- an "divide" 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.public boolean visitEquals(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitEquals
in interface EJBQLExpressionVisitor
expression
- an "equals" 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.public boolean visitEscapeCharacter(EJBQLExpression expression)
visitEscapeCharacter
in interface EJBQLExpressionVisitor
public boolean visitExists(EJBQLExpression expression)
visitExists
in interface EJBQLExpressionVisitor
public boolean visitFrom(EJBQLExpression expression, int finishedChildIndex)
visitFrom
in interface EJBQLExpressionVisitor
public boolean visitFromItem(EJBQLFromItem expression, int finishedChildIndex)
visitFromItem
in interface EJBQLExpressionVisitor
public boolean visitGreaterOrEqual(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitGreaterOrEqual
in interface EJBQLExpressionVisitor
expression
- an ">=" 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.public boolean visitGreaterThan(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitGreaterThan
in interface EJBQLExpressionVisitor
expression
- an ">=" 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.public boolean visitGroupBy(EJBQLExpression expression)
visitGroupBy
in interface EJBQLExpressionVisitor
public boolean visitHaving(EJBQLExpression expression)
visitHaving
in interface EJBQLExpressionVisitor
public boolean visitIdentificationVariable(EJBQLExpression expression)
visitIdentificationVariable
in interface EJBQLExpressionVisitor
public boolean visitIdentifier(EJBQLExpression expression)
visitIdentifier
in interface EJBQLExpressionVisitor
public boolean visitIn(EJBQLExpression expression, int finishedChildIndex)
visitIn
in interface EJBQLExpressionVisitor
public boolean visitInnerFetchJoin(EJBQLJoin join)
visitInnerFetchJoin
in interface EJBQLExpressionVisitor
public boolean visitInnerJoin(EJBQLJoin join)
visitInnerJoin
in interface EJBQLExpressionVisitor
public boolean visitIntegerLiteral(EJBQLIntegerLiteral expression)
visitIntegerLiteral
in interface EJBQLExpressionVisitor
public boolean visitIsEmpty(EJBQLExpression expression)
visitIsEmpty
in interface EJBQLExpressionVisitor
public boolean visitIsNull(EJBQLExpression expression, int finishedChildIndex)
visitIsNull
in interface EJBQLExpressionVisitor
public boolean visitLength(EJBQLExpression expression, int finishedChildIndex)
visitLength
in interface EJBQLExpressionVisitor
public boolean visitLessOrEqual(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitLessOrEqual
in interface EJBQLExpressionVisitor
expression
- an "<=" 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.public boolean visitLessThan(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitLessThan
in interface EJBQLExpressionVisitor
expression
- an "<" 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.public boolean visitLike(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitLike
in interface EJBQLExpressionVisitor
expression
- an "LIKE" 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.public boolean visitLocate(EJBQLExpression expression, int finishedChildIndex)
visitLocate
in interface EJBQLExpressionVisitor
public boolean visitLower(EJBQLExpression expression, int finishedChildIndex)
visitLower
in interface EJBQLExpressionVisitor
public boolean visitMax(EJBQLAggregateColumn expression)
visitMax
in interface EJBQLExpressionVisitor
public boolean visitMemberOf(EJBQLExpression expression)
visitMemberOf
in interface EJBQLExpressionVisitor
public boolean visitMin(EJBQLAggregateColumn expression)
visitMin
in interface EJBQLExpressionVisitor
public boolean visitMod(EJBQLExpression expression, int finishedChildIndex)
visitMod
in interface EJBQLExpressionVisitor
public boolean visitMultiply(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitMultiply
in interface EJBQLExpressionVisitor
expression
- an "*" 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.public boolean visitNamedInputParameter(EJBQLExpression expression)
visitNamedInputParameter
in interface EJBQLExpressionVisitor
public boolean visitNegative(EJBQLExpression expression)
visitNegative
in interface EJBQLExpressionVisitor
public boolean visitNot(EJBQLExpression expression)
visitNot
in interface EJBQLExpressionVisitor
public boolean visitNotEquals(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitNotEquals
in interface EJBQLExpressionVisitor
expression
- an "!=" 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.public boolean visitOr(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitOr
in interface EJBQLExpressionVisitor
expression
- an "or" 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.public boolean visitOrderBy(EJBQLExpression expression)
visitOrderBy
in interface EJBQLExpressionVisitor
public boolean visitOrderByItem(EJBQLExpression expression)
visitOrderByItem
in interface EJBQLExpressionVisitor
public boolean visitOuterFetchJoin(EJBQLJoin join)
visitOuterFetchJoin
in interface EJBQLExpressionVisitor
public boolean visitOuterJoin(EJBQLJoin join)
visitOuterJoin
in interface EJBQLExpressionVisitor
public boolean visitPath(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitPath
in interface EJBQLExpressionVisitor
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.public boolean visitPatternValue(EJBQLExpression expression)
visitPatternValue
in interface EJBQLExpressionVisitor
public boolean visitPositionalInputParameter(EJBQLPositionalInputParameter expression)
visitPositionalInputParameter
in interface EJBQLExpressionVisitor
public boolean visitSelect(EJBQLExpression expression)
visitSelect
in interface EJBQLExpressionVisitor
public boolean visitSelectClause(EJBQLExpression expression)
visitSelectClause
in interface EJBQLExpressionVisitor
public boolean visitSelectExpression(EJBQLExpression expression)
visitSelectExpression
in interface EJBQLExpressionVisitor
public boolean visitSelectExpressions(EJBQLExpression expression)
visitSelectExpressions
in interface EJBQLExpressionVisitor
public boolean visitSize(EJBQLExpression expression)
visitSize
in interface EJBQLExpressionVisitor
public boolean visitSqrt(EJBQLExpression expression, int finishedChildIndex)
visitSqrt
in interface EJBQLExpressionVisitor
public boolean visitStringLiteral(EJBQLExpression expression)
visitStringLiteral
in interface EJBQLExpressionVisitor
public boolean visitSubselect(EJBQLExpression expression)
visitSubselect
in interface EJBQLExpressionVisitor
public boolean visitSubstring(EJBQLExpression expression, int finishedChildIndex)
visitSubstring
in interface EJBQLExpressionVisitor
public boolean visitSubtract(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitSubtract
in interface EJBQLExpressionVisitor
expression
- an "subtract" 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.public boolean visitSum(EJBQLAggregateColumn expression)
visitSum
in interface EJBQLExpressionVisitor
public boolean visitTok(EJBQLExpression expression)
visitTok
in interface EJBQLExpressionVisitor
public boolean visitTrim(EJBQLExpression expression, int finishedChildIndex)
visitTrim
in interface EJBQLExpressionVisitor
public boolean visitTrimBoth(EJBQLExpression expression)
visitTrimBoth
in interface EJBQLExpressionVisitor
public boolean visitTrimCharacter(EJBQLExpression expression)
visitTrimCharacter
in interface EJBQLExpressionVisitor
public boolean visitTrimLeading(EJBQLExpression expression)
visitTrimLeading
in interface EJBQLExpressionVisitor
public boolean visitTrimTrailing(EJBQLExpression expression)
visitTrimTrailing
in interface EJBQLExpressionVisitor
public boolean visitUpdate(EJBQLExpression expression)
visitUpdate
in interface EJBQLExpressionVisitor
public boolean visitUpdateField(EJBQLExpression expression, int finishedChildIndex)
visitUpdateField
in interface EJBQLExpressionVisitor
public boolean visitUpdateItem(EJBQLExpression expression, int finishedChildIndex)
visitUpdateItem
in interface EJBQLExpressionVisitor
public boolean visitUpdateValue(EJBQLExpression expression)
visitUpdateValue
in interface EJBQLExpressionVisitor
public boolean visitUpper(EJBQLExpression expression, int finishedChildIndex)
visitUpper
in interface EJBQLExpressionVisitor
public boolean visitWhere(EJBQLExpression expression)
visitWhere
in interface EJBQLExpressionVisitor
Copyright © 2001–2014 Apache Cayenne. All rights reserved.