|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.EJBQLException
public class EJBQLException
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 |
EJBQLException()
INTERNAL Only TopLink can throw and create these excpetions |
protected |
EJBQLException(java.lang.String theMessage)
INTERNAL Only TopLink can throw and create these excpetions |
protected |
EJBQLException(java.lang.String message,
java.lang.Exception internalException)
INTERNAL Only TopLink can throw and create these excpetions |
protected |
EJBQLException(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 EJBQLException |
aliasResolutionException(java.lang.String theAlias)
|
static EJBQLException |
classNotFoundException(java.lang.String theClassName,
java.lang.String theMessage,
java.lang.Exception theException)
|
static EJBQLException |
constructorClassNotFound(java.lang.String className)
|
static EJBQLException |
expectedCharFound(java.lang.String query,
java.lang.String expected,
java.lang.String found)
|
static EJBQLException |
expectedOrderableOrderByItem(java.lang.String item,
java.lang.String type)
|
static EJBQLException |
expressionNotSupported(java.lang.String unsupportedExpression)
|
static EJBQLException |
generalParsingException(java.lang.String theEjbql)
INTERNAL Create an exception to wrap a general parsing exception |
static EJBQLException |
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 EJBQLException |
invalidCollectionMemberDecl(java.lang.String attributeName)
|
static EJBQLException |
invalidContextKeyException(java.lang.String theKey)
|
static EJBQLException |
invalidEnumLiteral(java.lang.String enumType,
java.lang.String constant)
|
static EJBQLException |
invalidExpressionArgument(java.lang.String functionName,
java.lang.String attributeName,
java.lang.String type)
|
static EJBQLException |
invalidFunctionArgument(java.lang.String functionName,
java.lang.String attributeName,
java.lang.String type)
|
static EJBQLException |
invalidHavingExpression(java.lang.String having,
java.lang.String groupBy)
|
static EJBQLException |
invalidMultipleUseOfSameParameter(java.lang.String parameter,
java.lang.String oldType,
java.lang.String newType)
|
static EJBQLException |
invalidNavigation(java.lang.String expr,
java.lang.String lhs,
java.lang.String type)
|
static EJBQLException |
invalidSelectForGroupByQuery(java.lang.String select,
java.lang.String groupBy)
|
static EJBQLException |
invalidSizeArgument(java.lang.String attributeName)
|
static EJBQLException |
missingDescriptorException(java.lang.String theClassName)
|
static EJBQLException |
missingMappingException(java.lang.String theAttributeName)
|
static EJBQLException |
multipleVariableDeclaration(java.lang.String variable,
java.lang.String oldDecl)
|
static EJBQLException |
notYetImplemented(java.lang.String detail)
|
void |
printFullStackTrace()
PUBLIC: Print the stack trace for each error generated by the parser. |
static EJBQLException |
recognitionException(java.lang.String theEjbql,
java.lang.String theMessage)
INTERNAL Create an exception to wrap the recognition exception thrown |
static EJBQLException |
resolutionClassNotFoundException(java.lang.String theClassName)
|
void |
setInternalExceptions(java.util.Collection theExceptions)
INTERNAL Store the exceptions related to this exception |
static EJBQLException |
syntaxError(java.lang.String query)
|
static EJBQLException |
syntaxErrorAt(java.lang.String query,
java.lang.String token)
|
static EJBQLException |
unexpectedChar(java.lang.String query,
java.lang.String unexpected)
|
static EJBQLException |
unexpectedEOF(java.lang.String query)
|
static EJBQLException |
unexpectedToken(java.lang.String query,
java.lang.String token)
|
static EJBQLException |
unknownAttribute(java.lang.String type,
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 java.util.Collection internalExceptions
Constructor Detail |
---|
protected EJBQLException()
protected EJBQLException(java.lang.String theMessage)
protected EJBQLException(java.lang.String message, java.lang.Exception internalException)
protected EJBQLException(java.lang.String message, java.lang.Exception internalException, int theErrorCode)
Method Detail |
---|
public static EJBQLException recognitionException(java.lang.String theEjbql, java.lang.String theMessage)
public static EJBQLException generalParsingException(java.lang.String theEjbql, java.lang.Exception theException)
public static EJBQLException generalParsingException(java.lang.String theEjbql)
public static EJBQLException classNotFoundException(java.lang.String theClassName, java.lang.String theMessage, java.lang.Exception theException)
public static EJBQLException resolutionClassNotFoundException(java.lang.String theClassName)
public static EJBQLException missingDescriptorException(java.lang.String theClassName)
public static EJBQLException missingMappingException(java.lang.String theAttributeName)
public static EJBQLException aliasResolutionException(java.lang.String theAlias)
public static EJBQLException invalidContextKeyException(java.lang.String theKey)
public static EJBQLException expressionNotSupported(java.lang.String unsupportedExpression)
public static EJBQLException invalidCollectionMemberDecl(java.lang.String attributeName)
public static EJBQLException notYetImplemented(java.lang.String detail)
public static EJBQLException constructorClassNotFound(java.lang.String className)
public static EJBQLException invalidSizeArgument(java.lang.String attributeName)
public static EJBQLException invalidEnumLiteral(java.lang.String enumType, java.lang.String constant)
public static EJBQLException invalidSelectForGroupByQuery(java.lang.String select, java.lang.String groupBy)
public static EJBQLException invalidHavingExpression(java.lang.String having, java.lang.String groupBy)
public static EJBQLException invalidMultipleUseOfSameParameter(java.lang.String parameter, java.lang.String oldType, java.lang.String newType)
public static EJBQLException multipleVariableDeclaration(java.lang.String variable, java.lang.String oldDecl)
public static EJBQLException invalidFunctionArgument(java.lang.String functionName, java.lang.String attributeName, java.lang.String type)
public static EJBQLException invalidExpressionArgument(java.lang.String functionName, java.lang.String attributeName, java.lang.String type)
public static EJBQLException expectedOrderableOrderByItem(java.lang.String item, java.lang.String type)
public static EJBQLException syntaxError(java.lang.String query)
public static EJBQLException syntaxErrorAt(java.lang.String query, java.lang.String token)
public static EJBQLException unexpectedToken(java.lang.String query, java.lang.String token)
public static EJBQLException unexpectedChar(java.lang.String query, java.lang.String unexpected)
public static EJBQLException expectedCharFound(java.lang.String query, java.lang.String expected, java.lang.String found)
public static EJBQLException unexpectedEOF(java.lang.String query)
public static EJBQLException invalidNavigation(java.lang.String expr, java.lang.String lhs, java.lang.String type)
public static EJBQLException unknownAttribute(java.lang.String type, java.lang.String name)
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 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |