|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.makumba.providers.QueryAnalysisProvider
public abstract class QueryAnalysisProvider
| Field Summary | |
|---|---|
(package private) boolean |
initializedCache
|
(package private) NamedResources |
inlinedQueries
|
| Constructor Summary | |
|---|---|
QueryAnalysisProvider()
|
|
| Method Summary | |
|---|---|
Object |
checkExprSetOrNullable(String from,
String expr)
Checks if an expression is valid, nullable or set |
Object |
checkLabelSetOrNullable(String from,
String referenceSequence)
Checks if an id is nullable, and if so, return the path to the null pointer |
abstract FieldDefinition |
getAlternativeField(DataDefinition dd,
String fn)
Returns a possible alternative field to the one indicated. |
abstract String |
getParameterSyntax()
return the first character(s) in a parameter designator |
abstract String |
getPrimaryKeyNotation(String label)
Returns the notation of the primary key in the query language |
QueryAnalysis |
getQueryAnalysis(String query)
|
protected abstract QueryAnalysis |
getRawQueryAnalysis(String query)
|
String |
inlineFunctions(String query)
|
(package private) static boolean |
isMakId(char c)
Checks if a character can be part of a makumba identifier |
static void |
main(String[] args)
|
abstract boolean |
selectGroupOrOrderAsLabels()
Returns whether the GROUP BY or ORDER BY sections can include labels |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
NamedResources inlinedQueries
boolean initializedCache
| Constructor Detail |
|---|
public QueryAnalysisProvider()
| Method Detail |
|---|
protected abstract QueryAnalysis getRawQueryAnalysis(String query)
public QueryAnalysis getQueryAnalysis(String query)
public String inlineFunctions(String query)
public abstract boolean selectGroupOrOrderAsLabels()
public abstract FieldDefinition getAlternativeField(DataDefinition dd,
String fn)
public abstract String getPrimaryKeyNotation(String label)
label - the label of the object
public Object checkExprSetOrNullable(String from,
String expr)
expr - the expression
null otherwisestatic boolean isMakId(char c)
c - the character to check
true if the character can be part of a makumba identifier, false otherwise
public Object checkLabelSetOrNullable(String from,
String referenceSequence)
referenceSequence - a sequence like field1.field2.field3
null otherwisepublic abstract String getParameterSyntax()
public static void main(String[] args)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||