|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.eclipse.persistence.exceptions.EclipseLinkException org.eclipse.persistence.exceptions.JPQLException
public class JPQLException
Purpose: EJBQL parsing and resolution problems will raise this exception
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException |
---|
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException |
Constructor Summary | |
---|---|
protected |
JPQLException()
INTERNAL Only TopLink can throw and create these excpetions |
|
JPQLException(java.lang.String theMessage)
INTERNAL Only TopLink can throw and create these excpetions |
|
JPQLException(java.lang.String message,
java.lang.Exception internalException)
INTERNAL Only TopLink can throw and create these excpetions |
protected |
JPQLException(java.lang.String message,
java.lang.Exception internalException,
int theErrorCode)
INTERNAL Only TopLink can throw and create these excpetions |
Method Summary | |
---|---|
java.lang.Object |
addInternalException(java.lang.Object theException)
INTERNAL Add an internal Exception to the collection of internal Exceptions |
static JPQLException |
aliasResolutionException(java.lang.String query,
int line,
int column,
java.lang.String theAlias)
|
static JPQLException |
classNotFoundException(java.lang.String theClassName,
java.lang.String theMessage,
java.lang.Exception theException)
|
static JPQLException |
constructorClassNotFound(java.lang.String query,
int line,
int column,
java.lang.String className)
|
static JPQLException |
entityTypeNotFound(java.lang.String query,
java.lang.String type)
JPQLException[8034] Entity Type Not Found Indicates that a type specified in a JPQL query string cannot be found in the current persistence unit. |
static JPQLException |
entityTypeNotFound2(java.lang.String query,
int line,
int column,
java.lang.String type)
|
static JPQLException |
expectedCharFound(java.lang.String query,
int line,
int column,
java.lang.String expected,
java.lang.String found,
java.lang.Exception ex)
|
static JPQLException |
expectedOrderableOrderByItem(java.lang.String query,
int line,
int column,
java.lang.String item,
java.lang.String type)
|
static JPQLException |
expressionNotSupported(java.lang.String query,
java.lang.String unsupportedExpression)
|
static JPQLException |
generalParsingException(java.lang.String theEjbql)
INTERNAL Create an exception to wrap a general parsing exception |
static JPQLException |
generalParsingException(java.lang.String theEjbql,
java.lang.Exception theException)
INTERNAL Create an exception to wrap a general parsing exception |
java.util.Collection |
getInternalExceptions()
INTERNAL Return the collection of internal Exceptions. |
boolean |
hasInternalExceptions()
INTERNAL Does this exception have any internal errors? |
static JPQLException |
indexOnlyAllowedOnVariable(java.lang.String query,
int line,
int column,
java.lang.String node)
|
static JPQLException |
invalidCollectionMemberDecl(java.lang.String query,
int line,
int column,
java.lang.String attributeName)
|
static JPQLException |
invalidCollectionNavigation(java.lang.String query,
int line,
int column,
java.lang.String expr,
java.lang.String attribute)
|
static JPQLException |
invalidContextKeyException(java.lang.String query,
java.lang.String theKey)
|
static JPQLException |
invalidEnumEqualExpression(java.lang.String query,
int line,
int column,
java.lang.String enumType,
java.lang.String type)
|
static JPQLException |
invalidEnumLiteral(java.lang.String query,
int line,
int column,
java.lang.String enumType,
java.lang.String literal)
|
static JPQLException |
invalidExpressionArgument(java.lang.String query,
int line,
int column,
java.lang.String expression,
java.lang.String attributeName,
java.lang.String type)
|
static JPQLException |
invalidFunctionArgument(java.lang.String query,
int line,
int column,
java.lang.String functionName,
java.lang.String attributeName,
java.lang.String type)
|
static JPQLException |
invalidHavingExpression(java.lang.String query,
int line,
int column,
java.lang.String having,
java.lang.String groupBy)
|
static JPQLException |
invalidMultipleUseOfSameParameter(java.lang.String query,
int line,
int column,
java.lang.String parameter,
java.lang.String oldType,
java.lang.String newType)
|
static JPQLException |
invalidNavigation(java.lang.String query,
int line,
int column,
java.lang.String expr,
java.lang.String lhs,
java.lang.String type)
|
static JPQLException |
invalidSelectForGroupByQuery(java.lang.String query,
int line,
int column,
java.lang.String select,
java.lang.String groupBy)
|
static JPQLException |
invalidSetClauseNavigation(java.lang.String query,
int line,
int column,
java.lang.String expr,
java.lang.String relationship)
|
static JPQLException |
invalidSetClauseTarget(java.lang.String query,
int line,
int column,
java.lang.String expr,
java.lang.String attribute)
|
static JPQLException |
invalidSizeArgument(java.lang.String query,
int line,
int column,
java.lang.String attributeName)
|
static JPQLException |
missingDescriptorException(java.lang.String query,
java.lang.String theClassName)
|
static JPQLException |
missingMappingException(java.lang.String query,
java.lang.String theAttributeName)
|
static JPQLException |
multipleVariableDeclaration(java.lang.String query,
int line,
int column,
java.lang.String variable,
java.lang.String oldDecl)
|
static JPQLException |
nonExistantOrderByAlias(java.lang.String query,
int line,
int column,
java.lang.String alias)
|
static JPQLException |
notYetImplemented(java.lang.String query,
java.lang.String detail)
|
void |
printFullStackTrace()
PUBLIC Print the stack trace for each error generated by the parser. |
static JPQLException |
recognitionException(java.lang.String theEjbql,
java.lang.String theMessage)
INTERNAL Create an exception to wrap the recognition exception thrown |
static JPQLException |
resolutionClassNotFoundException(java.lang.String query,
java.lang.String theClassName)
|
static JPQLException |
resolutionClassNotFoundException2(java.lang.String query,
int line,
int column,
java.lang.String theClassName)
|
void |
setInternalExceptions(java.util.Collection theExceptions)
INTERNAL Store the exceptions related to this exception |
static JPQLException |
syntaxError(java.lang.String query,
java.lang.Exception ex)
|
static JPQLException |
syntaxErrorAt(java.lang.String query,
int line,
int column,
java.lang.String token,
java.lang.Exception ex)
|
static JPQLException |
unexpectedChar(java.lang.String query,
int line,
int column,
java.lang.String unexpected,
java.lang.Exception ex)
|
static JPQLException |
unexpectedEOF(java.lang.String query,
int line,
int column,
java.lang.Exception ex)
|
static JPQLException |
unexpectedToken(java.lang.String query,
int line,
int column,
java.lang.String token,
java.lang.Exception ex)
|
static JPQLException |
unknownAttribute(java.lang.String query,
int line,
int column,
java.lang.String attribute,
java.lang.String type)
|
static JPQLException |
unsupportJoinArgument(java.lang.String query,
int line,
int column,
java.lang.String join,
java.lang.String type)
|
static JPQLException |
variableCannotHaveMapKey(java.lang.String query,
int line,
int column,
java.lang.String name)
|
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException |
---|
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int recognitionException
public static final int generalParsingException
public static final int classNotFoundException
public static final int aliasResolutionException
public static final int resolutionClassNotFoundException
public static final int missingDescriptorException
public static final int missingMappingException
public static final int invalidContextKeyException
public static final int expressionNotSupported
public static final int generalParsingException2
public static final int invalidCollectionMemberDecl
public static final int notYetImplemented
public static final int constructorClassNotFound
public static final int invalidSizeArgument
public static final int invalidEnumLiteral
public static final int invalidSelectForGroupByQuery
public static final int invalidHavingExpression
public static final int invalidMultipleUseOfSameParameter
public static final int multipleVariableDeclaration
public static final int invalidFunctionArgument
public static final int expectedOrderableOrderByItem
public static final int invalidExpressionArgument
public static final int syntaxError
public static final int syntaxErrorAt
public static final int unexpectedToken
public static final int unexpectedChar
public static final int expectedCharFound
public static final int unexpectedEOF
public static final int invalidNavigation
public static final int unknownAttribute
public static final int unsupportJoinArgument
public static final int invalidSetClauseTarget
public static final int invalidSetClauseNavigation
public static final int entityTypeNotFound
entityTypeNotFound(String, String)
,
Constant Field Valuespublic static final int invalidEnumEqualExpression
public static final int invalidCollectionNavigation
public static final int entityTypeNotFound2
public static final int resolutionClassNotFoundException2
public static final int variableCannotHaveMapKey
public static final int nonExistantOrderByAlias
public static final int indexOnlyAllowedOnVariable
public java.util.Collection internalExceptions
Constructor Detail |
---|
protected JPQLException()
public JPQLException(java.lang.String theMessage)
public JPQLException(java.lang.String message, java.lang.Exception internalException)
protected JPQLException(java.lang.String message, java.lang.Exception internalException, int theErrorCode)
Method Detail |
---|
public static JPQLException recognitionException(java.lang.String theEjbql, java.lang.String theMessage)
public static JPQLException generalParsingException(java.lang.String theEjbql, java.lang.Exception theException)
public static JPQLException generalParsingException(java.lang.String theEjbql)
public static JPQLException classNotFoundException(java.lang.String theClassName, java.lang.String theMessage, java.lang.Exception theException)
public static JPQLException resolutionClassNotFoundException(java.lang.String query, java.lang.String theClassName)
public static JPQLException resolutionClassNotFoundException2(java.lang.String query, int line, int column, java.lang.String theClassName)
public static JPQLException missingDescriptorException(java.lang.String query, java.lang.String theClassName)
public static JPQLException missingMappingException(java.lang.String query, java.lang.String theAttributeName)
public static JPQLException aliasResolutionException(java.lang.String query, int line, int column, java.lang.String theAlias)
public static JPQLException invalidContextKeyException(java.lang.String query, java.lang.String theKey)
public static JPQLException expressionNotSupported(java.lang.String query, java.lang.String unsupportedExpression)
public static JPQLException invalidCollectionMemberDecl(java.lang.String query, int line, int column, java.lang.String attributeName)
public static JPQLException notYetImplemented(java.lang.String query, java.lang.String detail)
public static JPQLException constructorClassNotFound(java.lang.String query, int line, int column, java.lang.String className)
public static JPQLException invalidSizeArgument(java.lang.String query, int line, int column, java.lang.String attributeName)
public static JPQLException invalidEnumLiteral(java.lang.String query, int line, int column, java.lang.String enumType, java.lang.String literal)
public static JPQLException invalidSelectForGroupByQuery(java.lang.String query, int line, int column, java.lang.String select, java.lang.String groupBy)
public static JPQLException invalidHavingExpression(java.lang.String query, int line, int column, java.lang.String having, java.lang.String groupBy)
public static JPQLException invalidMultipleUseOfSameParameter(java.lang.String query, int line, int column, java.lang.String parameter, java.lang.String oldType, java.lang.String newType)
public static JPQLException multipleVariableDeclaration(java.lang.String query, int line, int column, java.lang.String variable, java.lang.String oldDecl)
public static JPQLException invalidFunctionArgument(java.lang.String query, int line, int column, java.lang.String functionName, java.lang.String attributeName, java.lang.String type)
public static JPQLException invalidExpressionArgument(java.lang.String query, int line, int column, java.lang.String expression, java.lang.String attributeName, java.lang.String type)
public static JPQLException unsupportJoinArgument(java.lang.String query, int line, int column, java.lang.String join, java.lang.String type)
public static JPQLException expectedOrderableOrderByItem(java.lang.String query, int line, int column, java.lang.String item, java.lang.String type)
public static JPQLException syntaxError(java.lang.String query, java.lang.Exception ex)
public static JPQLException syntaxErrorAt(java.lang.String query, int line, int column, java.lang.String token, java.lang.Exception ex)
public static JPQLException unexpectedToken(java.lang.String query, int line, int column, java.lang.String token, java.lang.Exception ex)
public static JPQLException unexpectedChar(java.lang.String query, int line, int column, java.lang.String unexpected, java.lang.Exception ex)
public static JPQLException expectedCharFound(java.lang.String query, int line, int column, java.lang.String expected, java.lang.String found, java.lang.Exception ex)
public static JPQLException unexpectedEOF(java.lang.String query, int line, int column, java.lang.Exception ex)
public static JPQLException invalidNavigation(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String lhs, java.lang.String type)
public static JPQLException invalidCollectionNavigation(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String attribute)
public static JPQLException invalidSetClauseTarget(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String attribute)
public static JPQLException invalidSetClauseNavigation(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String relationship)
public static JPQLException unknownAttribute(java.lang.String query, int line, int column, java.lang.String attribute, java.lang.String type)
public static JPQLException invalidEnumEqualExpression(java.lang.String query, int line, int column, java.lang.String enumType, java.lang.String type)
public static JPQLException entityTypeNotFound(java.lang.String query, java.lang.String type)
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.
public static JPQLException entityTypeNotFound2(java.lang.String query, int line, int column, java.lang.String type)
public static JPQLException variableCannotHaveMapKey(java.lang.String query, int line, int column, java.lang.String name)
public static JPQLException nonExistantOrderByAlias(java.lang.String query, int line, int column, java.lang.String alias)
public static JPQLException indexOnlyAllowedOnVariable(java.lang.String query, int line, int column, java.lang.String node)
public java.lang.Object addInternalException(java.lang.Object theException)
public boolean hasInternalExceptions()
public java.util.Collection getInternalExceptions()
public void setInternalExceptions(java.util.Collection theExceptions)
public void printFullStackTrace()
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |