Class 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 Detail

      • 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
    • Constructor Detail

      • JQLC

        public JQLC()
    • 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)
      • checkCandidates

        public void checkCandidates​(Class candidateClass,
                                    Collection candidateCollection)
      • createStringParser

        public static com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JQLParser createStringParser​(String text,
                                                                                                           ErrorMsg errorMsg)
        Returns a JQLParser instance parsing the specified text.