Class JPQLException

    • Constructor Detail

      • JPQLException

        protected JPQLException()
        INTERNAL Only TopLink can throw and create these excpetions
      • JPQLException

        public JPQLException​(String theMessage)
        INTERNAL Only TopLink can throw and create these excpetions
      • JPQLException

        public JPQLException​(String message,
                             Exception internalException)
        INTERNAL Only TopLink can throw and create these excpetions
      • JPQLException

        protected JPQLException​(String message,
                                Exception internalException,
                                int theErrorCode)
        INTERNAL Only TopLink can throw and create these excpetions
    • Method Detail

      • recognitionException

        public static JPQLException recognitionException​(String theEjbql,
                                                         String theMessage)
        INTERNAL Create an exception to wrap the recognition exception thrown
      • generalParsingException

        public static JPQLException generalParsingException​(String theEjbql,
                                                            Exception theException)
        INTERNAL Create an exception to wrap a general parsing exception
      • generalParsingException

        public static JPQLException generalParsingException​(String theEjbql)
        INTERNAL Create an exception to wrap a general parsing exception
      • resolutionClassNotFoundException

        public static JPQLException resolutionClassNotFoundException​(String query,
                                                                     String theClassName)
      • resolutionClassNotFoundException2

        public static JPQLException resolutionClassNotFoundException2​(String query,
                                                                      int line,
                                                                      int column,
                                                                      String theClassName)
      • missingDescriptorException

        public static JPQLException missingDescriptorException​(String query,
                                                               String theClassName)
      • aliasResolutionException

        public static JPQLException aliasResolutionException​(String query,
                                                             int line,
                                                             int column,
                                                             String theAlias)
      • expressionNotSupported

        public static JPQLException expressionNotSupported​(String query,
                                                           String unsupportedExpression)
      • invalidCollectionMemberDecl

        public static JPQLException invalidCollectionMemberDecl​(String query,
                                                                int line,
                                                                int column,
                                                                String attributeName)
      • constructorClassNotFound

        public static JPQLException constructorClassNotFound​(String query,
                                                             int line,
                                                             int column,
                                                             String className)
      • invalidSizeArgument

        public static JPQLException invalidSizeArgument​(String query,
                                                        int line,
                                                        int column,
                                                        String attributeName)
      • invalidSelectForGroupByQuery

        public static JPQLException invalidSelectForGroupByQuery​(String query,
                                                                 int line,
                                                                 int column,
                                                                 String select,
                                                                 String groupBy)
      • invalidMultipleUseOfSameParameter

        public static JPQLException invalidMultipleUseOfSameParameter​(String query,
                                                                      int line,
                                                                      int column,
                                                                      String parameter,
                                                                      String oldType,
                                                                      String newType)
      • multipleVariableDeclaration

        public static JPQLException multipleVariableDeclaration​(String query,
                                                                int line,
                                                                int column,
                                                                String variable,
                                                                String oldDecl)
      • expectedOrderableOrderByItem

        public static JPQLException expectedOrderableOrderByItem​(String query,
                                                                 int line,
                                                                 int column,
                                                                 String item,
                                                                 String type)
      • invalidCollectionNavigation

        public static JPQLException invalidCollectionNavigation​(String query,
                                                                int line,
                                                                int column,
                                                                String expr,
                                                                String attribute)
      • invalidSetClauseNavigation

        public static JPQLException invalidSetClauseNavigation​(String query,
                                                               int line,
                                                               int column,
                                                               String expr,
                                                               String relationship)
      • invalidEnumEqualExpression

        public static JPQLException invalidEnumEqualExpression​(String query,
                                                               int line,
                                                               int column,
                                                               String enumType,
                                                               String type)
      • entityTypeNotFound

        public static JPQLException entityTypeNotFound​(String query,
                                                       String type)
        JPQLException Entity Type Not Found

        Indicates that a type specified in a JPQL query string cannot be found in the current persistence unit. Ensure that the entity name is properly spelled and matches the name of an entity in the persistence unit being used.

      • entityTypeNotFound2

        public static JPQLException entityTypeNotFound2​(String query,
                                                        int line,
                                                        int column,
                                                        String type)
      • variableCannotHaveMapKey

        public static JPQLException variableCannotHaveMapKey​(String query,
                                                             int line,
                                                             int column,
                                                             String name)
      • nonExistantOrderByAlias

        public static JPQLException nonExistantOrderByAlias​(String query,
                                                            int line,
                                                            int column,
                                                            String alias)
      • indexOnlyAllowedOnVariable

        public static JPQLException indexOnlyAllowedOnVariable​(String query,
                                                               int line,
                                                               int column,
                                                               String node)
      • addInternalException

        public Object addInternalException​(Object theException)
        INTERNAL Add an internal Exception to the collection of internal Exceptions
      • hasInternalExceptions

        public boolean hasInternalExceptions()
        INTERNAL Does this exception have any internal errors?
      • getInternalExceptions

        public Collection getInternalExceptions()
        INTERNAL Return the collection of internal Exceptions. Intialize if there are no exceptions
      • setInternalExceptions

        public void setInternalExceptions​(Collection theExceptions)
        INTERNAL Store the exceptions related to this exception
      • printFullStackTrace

        public void printFullStackTrace()
        PUBLIC Print the stack trace for each error generated by the parser. This method is intended to assist in debugging problems in EJBQL