Class JPQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.JPQLException
- All Implemented Interfaces:
Serializable
Purpose: EJBQL parsing and resolution problems will raise this exception
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
Constructor Summary
ModifierConstructorDescriptionprotected
INTERNAL Only TopLink can throw and create these excpetionsJPQLException
(String theMessage) INTERNAL Only TopLink can throw and create these excpetionsJPQLException
(String message, Exception internalException) INTERNAL Only TopLink can throw and create these excpetionsprotected
JPQLException
(String message, Exception internalException, int theErrorCode) INTERNAL Only TopLink can throw and create these excpetions -
Method Summary
Modifier and TypeMethodDescriptionaddInternalException
(Object theException) INTERNAL Add an internal Exception to the collection of internal Exceptionsstatic JPQLException
aliasResolutionException
(String query, int line, int column, String theAlias) static JPQLException
classNotFoundException
(String theClassName, String theMessage, Exception theException) static JPQLException
constructorClassNotFound
(String query, int line, int column, String className) static JPQLException
entityTypeNotFound
(String query, String type) JPQLException
Entity Type Not Foundstatic JPQLException
entityTypeNotFound2
(String query, int line, int column, String type) static JPQLException
expectedCharFound
(String query, int line, int column, String expected, String found, Exception ex) static JPQLException
expectedOrderableOrderByItem
(String query, int line, int column, String item, String type) static JPQLException
expressionNotSupported
(String query, String unsupportedExpression) static JPQLException
generalParsingException
(String theEjbql) INTERNAL Create an exception to wrap a general parsing exceptionstatic JPQLException
generalParsingException
(String theEjbql, Exception theException) INTERNAL Create an exception to wrap a general parsing exceptionINTERNAL Return the collection of internal Exceptions.boolean
INTERNAL Does this exception have any internal errors?static JPQLException
indexOnlyAllowedOnVariable
(String query, int line, int column, String node) static JPQLException
invalidCollectionMemberDecl
(String query, int line, int column, String attributeName) static JPQLException
invalidCollectionNavigation
(String query, int line, int column, String expr, String attribute) static JPQLException
invalidContextKeyException
(String query, String theKey) static JPQLException
invalidEnumEqualExpression
(String query, int line, int column, String enumType, String type) static JPQLException
invalidEnumLiteral
(String query, int line, int column, String enumType, String literal) static JPQLException
invalidExpressionArgument
(String query, int line, int column, String expression, String attributeName, String type) static JPQLException
invalidFunctionArgument
(String query, int line, int column, String functionName, String attributeName, String type) static JPQLException
invalidHavingExpression
(String query, int line, int column, String having, String groupBy) static JPQLException
invalidMultipleUseOfSameParameter
(String query, int line, int column, String parameter, String oldType, String newType) static JPQLException
invalidNavigation
(String query, int line, int column, String expr, String lhs, String type) static JPQLException
invalidSelectForGroupByQuery
(String query, int line, int column, String select, String groupBy) static JPQLException
invalidSetClauseNavigation
(String query, int line, int column, String expr, String relationship) static JPQLException
invalidSetClauseTarget
(String query, int line, int column, String expr, String attribute) static JPQLException
invalidSizeArgument
(String query, int line, int column, String attributeName) static JPQLException
missingDescriptorException
(String query, String theClassName) static JPQLException
missingMappingException
(String query, String theAttributeName) static JPQLException
multipleVariableDeclaration
(String query, int line, int column, String variable, String oldDecl) static JPQLException
nonExistantOrderByAlias
(String query, int line, int column, String alias) static JPQLException
notYetImplemented
(String query, String detail) void
PUBLIC Print the stack trace for each error generated by the parser.static JPQLException
recognitionException
(String theEjbql, String theMessage) INTERNAL Create an exception to wrap the recognition exception thrownstatic JPQLException
resolutionClassNotFoundException
(String query, String theClassName) static JPQLException
resolutionClassNotFoundException2
(String query, int line, int column, String theClassName) void
setInternalExceptions
(Collection theExceptions) INTERNAL Store the exceptions related to this exceptionstatic JPQLException
syntaxError
(String query, Exception ex) static JPQLException
syntaxErrorAt
(String query, int line, int column, String token, Exception ex) static JPQLException
unexpectedChar
(String query, int line, int column, String unexpected, Exception ex) static JPQLException
unexpectedEOF
(String query, int line, int column, Exception ex) static JPQLException
unexpectedToken
(String query, int line, int column, String token, Exception ex) static JPQLException
unknownAttribute
(String query, int line, int column, String attribute, String type) static JPQLException
unsupportJoinArgument
(String query, int line, int column, String join, String type) static JPQLException
variableCannotHaveMapKey
(String query, int line, int column, String name) Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
recognitionException
public static final int recognitionException- See Also:
-
generalParsingException
public static final int generalParsingException- See Also:
-
classNotFoundException
public static final int classNotFoundException- See Also:
-
aliasResolutionException
public static final int aliasResolutionException- See Also:
-
resolutionClassNotFoundException
public static final int resolutionClassNotFoundException- See Also:
-
missingDescriptorException
public static final int missingDescriptorException- See Also:
-
missingMappingException
public static final int missingMappingException- See Also:
-
invalidContextKeyException
public static final int invalidContextKeyException- See Also:
-
expressionNotSupported
public static final int expressionNotSupported- See Also:
-
generalParsingException2
public static final int generalParsingException2- See Also:
-
invalidCollectionMemberDecl
public static final int invalidCollectionMemberDecl- See Also:
-
notYetImplemented
public static final int notYetImplemented- See Also:
-
constructorClassNotFound
public static final int constructorClassNotFound- See Also:
-
invalidSizeArgument
public static final int invalidSizeArgument- See Also:
-
invalidEnumLiteral
public static final int invalidEnumLiteral- See Also:
-
invalidSelectForGroupByQuery
public static final int invalidSelectForGroupByQuery- See Also:
-
invalidHavingExpression
public static final int invalidHavingExpression- See Also:
-
invalidMultipleUseOfSameParameter
public static final int invalidMultipleUseOfSameParameter- See Also:
-
multipleVariableDeclaration
public static final int multipleVariableDeclaration- See Also:
-
invalidFunctionArgument
public static final int invalidFunctionArgument- See Also:
-
expectedOrderableOrderByItem
public static final int expectedOrderableOrderByItem- See Also:
-
invalidExpressionArgument
public static final int invalidExpressionArgument- See Also:
-
syntaxError
public static final int syntaxError- See Also:
-
syntaxErrorAt
public static final int syntaxErrorAt- See Also:
-
unexpectedToken
public static final int unexpectedToken- See Also:
-
unexpectedChar
public static final int unexpectedChar- See Also:
-
expectedCharFound
public static final int expectedCharFound- See Also:
-
unexpectedEOF
public static final int unexpectedEOF- See Also:
-
unknownAttribute
public static final int unknownAttribute- See Also:
-
unsupportJoinArgument
public static final int unsupportJoinArgument- See Also:
-
invalidSetClauseTarget
public static final int invalidSetClauseTarget- See Also:
-
entityTypeNotFound
public static final int entityTypeNotFound -
invalidEnumEqualExpression
public static final int invalidEnumEqualExpression- See Also:
-
entityTypeNotFound2
public static final int entityTypeNotFound2- See Also:
-
resolutionClassNotFoundException2
public static final int resolutionClassNotFoundException2- See Also:
-
variableCannotHaveMapKey
public static final int variableCannotHaveMapKey- See Also:
-
nonExistantOrderByAlias
public static final int nonExistantOrderByAlias- See Also:
-
indexOnlyAllowedOnVariable
public static final int indexOnlyAllowedOnVariable- See Also:
-
internalExceptions
-
-
Constructor Details
-
JPQLException
protected JPQLException()INTERNAL Only TopLink can throw and create these excpetions -
JPQLException
INTERNAL Only TopLink can throw and create these excpetions -
JPQLException
INTERNAL Only TopLink can throw and create these excpetions -
JPQLException
INTERNAL Only TopLink can throw and create these excpetions
-
-
Method Details
-
recognitionException
INTERNAL Create an exception to wrap the recognition exception thrown -
generalParsingException
INTERNAL Create an exception to wrap a general parsing exception -
generalParsingException
INTERNAL Create an exception to wrap a general parsing exception -
classNotFoundException
public static JPQLException classNotFoundException(String theClassName, String theMessage, Exception theException) -
resolutionClassNotFoundException
-
resolutionClassNotFoundException2
public static JPQLException resolutionClassNotFoundException2(String query, int line, int column, String theClassName) -
missingDescriptorException
-
missingMappingException
-
aliasResolutionException
public static JPQLException aliasResolutionException(String query, int line, int column, String theAlias) -
invalidContextKeyException
-
expressionNotSupported
-
invalidCollectionMemberDecl
public static JPQLException invalidCollectionMemberDecl(String query, int line, int column, String attributeName) -
notYetImplemented
-
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) -
invalidEnumLiteral
public static JPQLException invalidEnumLiteral(String query, int line, int column, String enumType, String literal) -
invalidSelectForGroupByQuery
public static JPQLException invalidSelectForGroupByQuery(String query, int line, int column, String select, String groupBy) -
invalidHavingExpression
public static JPQLException invalidHavingExpression(String query, int line, int column, String having, 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) -
invalidFunctionArgument
public static JPQLException invalidFunctionArgument(String query, int line, int column, String functionName, String attributeName, String type) -
invalidExpressionArgument
public static JPQLException invalidExpressionArgument(String query, int line, int column, String expression, String attributeName, String type) -
unsupportJoinArgument
public static JPQLException unsupportJoinArgument(String query, int line, int column, String join, String type) -
expectedOrderableOrderByItem
public static JPQLException expectedOrderableOrderByItem(String query, int line, int column, String item, String type) -
syntaxError
-
syntaxErrorAt
public static JPQLException syntaxErrorAt(String query, int line, int column, String token, Exception ex) -
unexpectedToken
public static JPQLException unexpectedToken(String query, int line, int column, String token, Exception ex) -
unexpectedChar
public static JPQLException unexpectedChar(String query, int line, int column, String unexpected, Exception ex) -
expectedCharFound
public static JPQLException expectedCharFound(String query, int line, int column, String expected, String found, Exception ex) -
unexpectedEOF
-
invalidSetClauseTarget
public static JPQLException invalidSetClauseTarget(String query, int line, int column, String expr, String attribute) -
unknownAttribute
public static JPQLException unknownAttribute(String query, int line, int column, String attribute, String type) -
invalidEnumEqualExpression
public static JPQLException invalidEnumEqualExpression(String query, int line, int column, String enumType, String type) -
entityTypeNotFound
JPQLException
Entity Type Not FoundIndicates 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
-
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
INTERNAL Add an internal Exception to the collection of internal Exceptions -
hasInternalExceptions
public boolean hasInternalExceptions()INTERNAL Does this exception have any internal errors? -
getInternalExceptions
INTERNAL Return the collection of internal Exceptions. Intialize if there are no exceptions -
setInternalExceptions
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
-