|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.makumba.providers.query.hql.HqlAnalyzer
public class HqlAnalyzer
| Constructor Summary | |
|---|---|
HqlAnalyzer(antlr.collections.AST pass1,
DataDefinition knownLabels)
|
|
HqlAnalyzer(String query1)
|
|
| Method Summary | |
|---|---|
String |
getHackedQuery(String query)
|
DataDefinition |
getLabelType(String labelName)
Gets the type of a label used within the query FIXME: remove, inline everywhere as getLabelTypes().get(labelName) for that to work, OQL and MQL need to put their aliases also in the Map returned by getLabelTypes() HQL does not support aliases in the first place |
Map<String,DataDefinition> |
getLabelTypes()
Gets the type of the fields between FROM and WHERE |
List<String> |
getOrderedParameterNames()
|
DataDefinition |
getParameterTypes()
Gets the types of the query parameters, as resulted from the query analysis. |
antlr.collections.AST |
getPass1Tree()
return the pass1 (syntax) AST tree |
DataDefinition |
getProjectionType()
Gets the type of the fields between SELECT and FROM |
String |
getQuery()
Gets the original query that is analyzed by this object |
(package private) String |
getTypeName(int i)
|
Collection<String> |
getWarnings()
Get the warnings resulted from query analysis |
int |
parameterAt(int index)
|
int |
parameterNumber()
|
String |
toString()
|
String |
writeInSQLQuery(NameResolver nr)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HqlAnalyzer(antlr.collections.AST pass1,
DataDefinition knownLabels)
public HqlAnalyzer(String query1)
| Method Detail |
|---|
public DataDefinition getProjectionType()
QueryAnalysis
getProjectionType in interface QueryAnalysispublic DataDefinition getLabelType(String labelName)
QueryAnalysis
getLabelType in interface QueryAnalysislabelName - the name of the label
public DataDefinition getParameterTypes()
QueryAnalysis
getParameterTypes in interface QueryAnalysispublic int parameterNumber()
public int parameterAt(int index)
public List<String> getOrderedParameterNames()
String getTypeName(int i)
public String toString()
toString in class Objectpublic String getHackedQuery(String query)
public String getQuery()
QueryAnalysis
getQuery in interface QueryAnalysispublic Map<String,DataDefinition> getLabelTypes()
QueryAnalysis
getLabelTypes in interface QueryAnalysispublic String writeInSQLQuery(NameResolver nr)
public antlr.collections.AST getPass1Tree()
QueryAnalysis
getPass1Tree in interface QueryAnalysispublic Collection<String> getWarnings()
QueryAnalysis
getWarnings in interface QueryAnalysis
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||