| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
TreeParserorg.hibernate.hql.antlr.HqlSqlBaseWalkerorg.hibernate.hql.ast.HqlSqlWalkerpublic class HqlSqlWalkerextends HqlSqlBaseWalkerimplements ErrorReporter, ParameterBinder.NamedParameterSourceSqlASTFactoryField Summary |
Fields inherited from class org.hibernate.hql.antlr.HqlSqlBaseWalker | |
_tokenNames, _tokenSet_0 | |
Constructor Summary | |
| |
Method Summary | |
void |
|
protected void | |
protected AST |
|
protected AST |
|
protected void |
|
protected AST |
|
protected void |
|
protected AST |
|
protected AST |
|
ASTPrinter | |
AliasGenerator | |
ArrayList | |
FromClause | |
Map | |
FromClause | |
int | |
LiteralProcessor | |
int[] |
|
int | |
ArrayList | |
ParseErrorHandler | |
Set |
|
String[] | |
Type[] | |
SelectClause | |
SessionFactoryHelper | |
Map | |
boolean |
|
protected boolean |
|
boolean | |
protected void |
|
protected AST |
|
protected AST |
|
static void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
void |
|
void |
|
void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
static boolean | |
public HqlSqlWalker(QueryTranslatorImpl qti, SessionFactoryImplementor sfi, HqlParser parser, Map tokenReplacements, String collectionRole)
Create a new tree transformer.
- Parameters:
qti- Back pointer to the query translator implementation that is using this tree transform.sfi- The session factory implementor where the Hibernate mappings can be found.parser- A reference to the phase-1 parsertokenReplacements- Registers the token replacement map with the walker. This map will be used to substitute function names and constants.collectionRole- The collection role name of the collection used as the basis for the filter, NULL if this is not a collection filter compilation.
public void addQuerySpaces(Serializable[] spaces)
protected void beforeSelectClause()
throws SemanticException
- Overrides:
- beforeSelectClause in interface HqlSqlBaseWalker
protected AST createFromElement(String path,
AST alias,
AST propertyFetch)
throws SemanticException
- Overrides:
- createFromElement in interface HqlSqlBaseWalker
protected AST createFromFilterElement(AST filterEntity,
AST alias)
throws SemanticException
- Overrides:
- createFromFilterElement in interface HqlSqlBaseWalker
protected void createFromJoinElement(AST path,
AST alias,
int joinType,
AST fetchNode,
AST propertyFetch,
AST with)
throws SemanticException
- Overrides:
- createFromJoinElement in interface HqlSqlBaseWalker
protected AST createIntoClause(String path,
AST propertySpec)
throws SemanticException
- Overrides:
- createIntoClause in interface HqlSqlBaseWalker
protected void evaluateAssignment(AST eq)
throws SemanticException
- Overrides:
- evaluateAssignment in interface HqlSqlBaseWalker
protected AST generateNamedParameter(AST delimiterNode,
AST nameNode)
throws SemanticException
- Overrides:
- generateNamedParameter in interface HqlSqlBaseWalker
protected AST generatePositionalParameter(AST inputNode)
throws SemanticException
- Overrides:
- generatePositionalParameter in interface HqlSqlBaseWalker
public ArrayList getAssignmentSpecifications()
public Map getEnabledFilters()
public int getImpliedJoinType()
public int[] getNamedParameterLocations(String name)
throws QueryExceptionReturns the locations of all occurrences of the named parameter.
- Specified by:
- getNamedParameterLocations in interface ParameterBinder.NamedParameterSource
public int getNumberOfParametersInSetClause()
public ArrayList getParameters()
public Set getQuerySpaces()
Returns the set of unique query spaces (a.k.a. table names) that occurred in the query.
- Returns:
- A set of table names (Strings).
public String[] getReturnAliases()
public Map getTokenReplacements()
public boolean isFilter()
protected boolean isNonQualifiedPropertyRef(AST ident)
- Overrides:
- isNonQualifiedPropertyRef in interface HqlSqlBaseWalker
public boolean isShallowQuery()
protected void lookupAlias(AST aliasRef)
throws SemanticException
- Overrides:
- lookupAlias in interface HqlSqlBaseWalker
protected AST lookupNonQualifiedProperty(AST property)
throws SemanticException
- Overrides:
- lookupNonQualifiedProperty in interface HqlSqlBaseWalker
protected AST lookupProperty(AST dot,
boolean root,
boolean inSelect)
throws SemanticException
- Overrides:
- lookupProperty in interface HqlSqlBaseWalker
public static void panic()
protected void postProcessDML(RestrictableStatement statement) throws SemanticException
protected void postProcessDelete(AST delete)
throws SemanticException
- Overrides:
- postProcessDelete in interface HqlSqlBaseWalker
protected void postProcessInsert(AST insert)
throws SemanticException,
QueryException
- Overrides:
- postProcessInsert in interface HqlSqlBaseWalker
protected void postProcessUpdate(AST update)
throws SemanticException
- Overrides:
- postProcessUpdate in interface HqlSqlBaseWalker
protected void prepareArithmeticOperator(AST operator)
throws SemanticException
- Overrides:
- prepareArithmeticOperator in interface HqlSqlBaseWalker
protected void prepareFromClauseInputTree(AST fromClauseInput)
Pre-process the from clause input tree. *
- Overrides:
- prepareFromClauseInputTree in interface HqlSqlBaseWalker
protected void prepareLogicOperator(AST operator)
throws SemanticException
- Overrides:
- prepareLogicOperator in interface HqlSqlBaseWalker
protected void prepareVersioned(AST updateNode,
AST versioned)
throws SemanticException
- Overrides:
- prepareVersioned in interface HqlSqlBaseWalker
protected void processBoolean(AST constant)
throws SemanticException
- Overrides:
- processBoolean in interface HqlSqlBaseWalker
protected void processConstant(AST constant)
throws SemanticException
- Overrides:
- processConstant in interface HqlSqlBaseWalker
protected void processConstructor(AST constructor)
throws SemanticException
- Overrides:
- processConstructor in interface HqlSqlBaseWalker
protected void processFunction(AST functionCall,
boolean inSelect)
throws SemanticException
- Overrides:
- processFunction in interface HqlSqlBaseWalker
protected void processIndex(AST indexOp)
throws SemanticException
- Overrides:
- processIndex in interface HqlSqlBaseWalker
protected void processNumericLiteral(AST literal)
- Overrides:
- processNumericLiteral in interface HqlSqlBaseWalker
protected void processQuery(AST select,
AST query)
throws SemanticException
- Overrides:
- processQuery in interface HqlSqlBaseWalker
protected void pushFromClause(AST fromNode,
AST inputFromNode)Sets the current 'FROM' context.
- Overrides:
- pushFromClause in interface HqlSqlBaseWalker
- Parameters:
fromNode- The new 'FROM' context.inputFromNode- The from node from the input AST.
public void reportError(RecognitionException e)
- Specified by:
- reportError in interface ErrorReporter
public void reportWarning(String s)
- Specified by:
- reportWarning in interface ErrorReporter
protected void resolve(AST node)
throws SemanticException
- Overrides:
- resolve in interface HqlSqlBaseWalker
protected void resolveSelectExpression(AST node)
throws SemanticException
- Overrides:
- resolveSelectExpression in interface HqlSqlBaseWalker
protected void setAlias(AST selectExpr,
AST ident)
- Overrides:
- setAlias in interface HqlSqlBaseWalker
protected void setImpliedJoinType(int joinType)
- Overrides:
- setImpliedJoinType in interface HqlSqlBaseWalker
public static boolean supportsIdGenWithBulkInsertion(IdentifierGenerator generator)