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 Class
candidateClass
protected ErrorMsg
errorMsg
protected JQLAST
filterAST
protected JQLAST
importsAST
protected static ResourceBundle
messages
I18N supportprotected JQLAST
orderingAST
protected JQLAST
paramsAST
protected JQLAST
queryAST
protected JQLAST
resultAST
protected Map
retrieveDescCache
RD cache, key is a string build from actual param values (see ParameterTable.getKeyForRetrieveDescCache).protected TypeTable
typetab
protected JQLAST
varsAST
-
Constructor Summary
Constructors Constructor Description JQLC()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCandidates(Class candidateClass, Collection candidateCollection)
RetrieveDesc
codeGen(PersistenceManager pm, ParameterTable paramtab)
static com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JQLParser
createStringParser(String text, ErrorMsg errorMsg)
Returns a JQLParser instance parsing the specified text.void
declareImports(String imports)
void
declareParameters(String parameters)
void
declareVariables(String variables)
void
semanticCheck(ParameterTable paramtab)
void
setClass(Class candidateClass)
void
setFilter(String filter)
void
setOrdering(String ordering)
void
setPrefetchEnabled(boolean prefetchEnabled)
void
setResult(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)
-
-