Class JQLC
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JQLC
-
public class JQLC extends Object
- Version:
- 0.1 Note: this class allows to override its fields even after all the processing is done via the corresponding setXXX methods. This is not expected behavior. A better solution would be to change all setters to be private and have use a constructor to populate all the values. The constructor will call private setters to process the arguments.
- Author:
- Michael Bouschen
-
-
Field Summary
Fields Modifier and Type Field Description protected ClasscandidateClassprotected ErrorMsgerrorMsgprotected JQLASTfilterASTprotected JQLASTimportsASTprotected static ResourceBundlemessagesI18N supportprotected JQLASTorderingASTprotected JQLASTparamsASTprotected JQLASTqueryASTprotected JQLASTresultASTprotected MapretrieveDescCacheRD cache, key is a string build from actual param values (see ParameterTable.getKeyForRetrieveDescCache).protected TypeTabletypetabprotected JQLASTvarsAST
-
Constructor Summary
Constructors Constructor Description JQLC()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCandidates(Class candidateClass, Collection candidateCollection)RetrieveDesccodeGen(PersistenceManager pm, ParameterTable paramtab)static com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JQLParsercreateStringParser(String text, ErrorMsg errorMsg)Returns a JQLParser instance parsing the specified text.voiddeclareImports(String imports)voiddeclareParameters(String parameters)voiddeclareVariables(String variables)voidsemanticCheck(ParameterTable paramtab)voidsetClass(Class candidateClass)voidsetFilter(String filter)voidsetOrdering(String ordering)voidsetPrefetchEnabled(boolean prefetchEnabled)voidsetResult(String result)
-
-
-
Field Detail
-
typetab
protected TypeTable typetab
-
errorMsg
protected ErrorMsg errorMsg
-
candidateClass
protected Class candidateClass
-
filterAST
protected JQLAST filterAST
-
importsAST
protected JQLAST importsAST
-
varsAST
protected JQLAST varsAST
-
paramsAST
protected JQLAST paramsAST
-
orderingAST
protected JQLAST orderingAST
-
resultAST
protected JQLAST resultAST
-
queryAST
protected JQLAST queryAST
-
retrieveDescCache
protected Map retrieveDescCache
RD cache, key is a string build from actual param values (see ParameterTable.getKeyForRetrieveDescCache). It's ok to use WeakHashMap from java.util, because the key is a string which is not referenced by the RD.
-
messages
protected static final ResourceBundle messages
I18N support
-
-
Method Detail
-
setClass
public void setClass(Class candidateClass)
-
declareImports
public void declareImports(String imports)
-
declareParameters
public void declareParameters(String parameters)
-
declareVariables
public void declareVariables(String variables)
-
setOrdering
public void setOrdering(String ordering)
-
setResult
public void setResult(String result)
-
setFilter
public void setFilter(String filter)
-
setPrefetchEnabled
public void setPrefetchEnabled(boolean prefetchEnabled)
-
semanticCheck
public void semanticCheck(ParameterTable paramtab)
-
codeGen
public RetrieveDesc codeGen(PersistenceManager pm, ParameterTable paramtab)
-
checkCandidates
public void checkCandidates(Class candidateClass, Collection candidateCollection)
-
-