Class JPQLSymbolResolver

    • Constructor Detail

      • JPQLSymbolResolver

        public JPQLSymbolResolver​(MetaDataManager mmgr,
                                  ClassLoaderResolver clr,
                                  SymbolTable symtbl,
                                  Class cls,
                                  String alias)
        Constructor for symbol resolver.
        Parameters:
        mmgr - MetaData manager
        clr - ClassLoader resolver
        symtbl - Symbol table
        cls - Candidate class
        alias - Candidate alias
    • Method Detail

      • resolveClass

        public Class resolveClass​(String className)
        Method to perform a lookup of the class name from the input name. Makes use of the lookup via "entity name".
        Parameters:
        className - Name of the class
        Returns:
        The class corresponding to this name
        Throws:
        ClassNotResolvedException - thrown if not resolvable using entity name
      • caseSensitiveSymbolNames

        public boolean caseSensitiveSymbolNames()
        Description copied from interface: SymbolResolver
        Whether names of symbols are case-sensitive (e.g JDOQL returns true, but JPQL returns false).
        Returns:
        Whether case sensitive
      • supportsImplicitVariables

        public boolean supportsImplicitVariables()
        Description copied from interface: SymbolResolver
        Whether we should accept implicit variables in the query. JDOQL supports variables, yet JPQL doesn't. Also in JDOQL if the user supplies some explicit variables then it doesn't allow implicit variables.
        Returns:
        Whether to support implicit variables