|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
public interface QueryAnalysis
This interface describes the result of a query analysis.
| Method Summary | |
|---|---|
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 |
DataDefinition |
getParameterTypes()
Gets the types of the query parameters, as resulted from the query analysis. |
DataDefinition |
getProjectionType()
Gets the type of the fields between SELECT and FROM |
String |
getQuery()
Gets the original query that is analyzed by this object |
int |
parameterAt(int index)
Gets the number of the parameter mentioned at the position indicated by the given index. query parameters may not get mentioned in the order of their $number, for example $1 may not appear first in the query, $2 may not appear second in the query, etc. |
int |
parameterNumber()
Gets the total number of parameters in the query; like $1, $2 etc. |
String |
writeInSQLQuery(NameResolver nr)
generate SQL |
| Method Detail |
|---|
String getQuery()
DataDefinition getProjectionType()
Map<String,DataDefinition> getLabelTypes()
DataDefinition getLabelType(String labelName)
labelName - the name of the label
DataDefinition getParameterTypes()
int parameterNumber()
parameterAt(int)int parameterAt(int index)
parameterNumber()String writeInSQLQuery(NameResolver nr)
nr - the NameResolver that maps DataDefinition names to database names
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||