public abstract class EJBQLPathTranslator extends EJBQLBaseVisitor
Modifier and Type | Field and Description |
---|---|
protected ObjEntity |
currentEntity |
protected String |
fullPath |
protected String |
idPath |
protected String |
joinMarker |
protected String |
lastAlias |
protected String |
lastPathComponent |
continueFlag
Constructor and Description |
---|
EJBQLPathTranslator(EJBQLTranslationContext context) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
appendMultiColumnPath(EJBQLMultiColumnOperand operand) |
protected DbRelationship |
chooseDbRelationship(ObjRelationship relationship)
Checks if the object relationship is flattened and then chooses
the corresponding db relationship.
|
boolean |
isUsingAliases() |
protected void |
processIntermediatePathComponent() |
protected void |
processLastPathComponent() |
protected void |
processTerminatingAttribute(ObjAttribute attribute) |
protected void |
processTerminatingRelationship(ObjRelationship relationship) |
protected void |
resolveJoin(boolean inner) |
void |
setUsingAliases(boolean usingAliases) |
boolean |
visitIdentificationVariable(EJBQLExpression expression) |
boolean |
visitIdentifier(EJBQLExpression expression) |
boolean |
visitPath(EJBQLExpression expression,
int finishedChildIndex)
Called on visiting "path" expression and also after visiting every expression
child.
|
visitAbs, visitAbstractSchemaName, visitAdd, visitAggregate, visitAll, visitAnd, visitAny, visitAscending, visitAverage, visitBetween, visitBooleanLiteral, visitClassName, visitConcat, visitConstructor, visitConstructorParameter, visitConstructorParameters, visitCount, visitCurrentDate, visitCurrentTime, visitCurrentTimestamp, visitDbPath, visitDecimalLiteral, visitDelete, visitDescending, visitDistinct, visitDivide, visitEquals, visitEscapeCharacter, visitExists, visitFrom, visitFromItem, visitGreaterOrEqual, visitGreaterThan, visitGroupBy, visitHaving, visitIn, visitInnerFetchJoin, visitInnerJoin, visitIntegerLiteral, visitIsEmpty, visitIsNull, visitLength, visitLessOrEqual, visitLessThan, visitLike, visitLocate, visitLower, visitMax, visitMemberOf, visitMin, visitMod, visitMultiply, visitNamedInputParameter, visitNegative, visitNot, visitNotEquals, visitOr, visitOrderBy, visitOrderByItem, visitOuterFetchJoin, visitOuterJoin, visitPatternValue, visitPositionalInputParameter, visitSelect, visitSelectClause, visitSelectExpression, visitSelectExpressions, visitSize, visitSqrt, visitStringLiteral, visitSubselect, visitSubstring, visitSubtract, visitSum, visitTok, visitTrim, visitTrimBoth, visitTrimCharacter, visitTrimLeading, visitTrimTrailing, visitUpdate, visitUpdateField, visitUpdateItem, visitUpdateValue, visitUpper, visitWhere
protected ObjEntity currentEntity
protected String lastPathComponent
protected String lastAlias
protected String idPath
protected String joinMarker
protected String fullPath
public EJBQLPathTranslator(EJBQLTranslationContext context)
protected abstract void appendMultiColumnPath(EJBQLMultiColumnOperand operand)
public boolean visitPath(EJBQLExpression expression, int finishedChildIndex)
EJBQLExpressionVisitor
visitPath
in interface EJBQLExpressionVisitor
visitPath
in class EJBQLBaseVisitor
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 visitIdentifier(EJBQLExpression expression)
visitIdentifier
in interface EJBQLExpressionVisitor
visitIdentifier
in class EJBQLBaseVisitor
public boolean visitIdentificationVariable(EJBQLExpression expression)
visitIdentificationVariable
in interface EJBQLExpressionVisitor
visitIdentificationVariable
in class EJBQLBaseVisitor
protected void resolveJoin(boolean inner)
protected void processIntermediatePathComponent()
protected void processLastPathComponent()
protected void processTerminatingAttribute(ObjAttribute attribute)
protected void processTerminatingRelationship(ObjRelationship relationship)
protected DbRelationship chooseDbRelationship(ObjRelationship relationship)
relationship
- the object relationshipDbRelationship
public boolean isUsingAliases()
public void setUsingAliases(boolean usingAliases)
Copyright © 2001–2014 Apache Cayenne. All rights reserved.