EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.exceptions
Class EJBQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.persistence.exceptions.EclipseLinkException
                  extended by org.eclipse.persistence.exceptions.EJBQLException
All Implemented Interfaces:
java.io.Serializable

public class EJBQLException
extends EclipseLinkException

Purpose: EJBQL parsing and resolution problems will raise this exception

See Also:
Serialized Form

Field Summary
static int aliasResolutionException
           
static int classNotFoundException
           
static int constructorClassNotFound
           
static int expectedCharFound
           
static int expectedOrderableOrderByItem
           
static int expressionNotSupported
           
static int generalParsingException
           
static int generalParsingException2
           
 java.util.Collection internalExceptions
           
static int invalidCollectionMemberDecl
           
static int invalidContextKeyException
           
static int invalidEnumLiteral
           
static int invalidExpressionArgument
           
static int invalidFunctionArgument
           
static int invalidHavingExpression
           
static int invalidMultipleUseOfSameParameter
           
static int invalidNavigation
           
static int invalidSelectForGroupByQuery
           
static int invalidSizeArgument
           
static int missingDescriptorException
           
static int missingMappingException
           
static int multipleVariableDeclaration
           
static int notYetImplemented
           
static int recognitionException
           
static int resolutionClassNotFoundException
           
static int syntaxError
           
static int syntaxErrorAt
           
static int unexpectedChar
           
static int unexpectedEOF
           
static int unexpectedToken
           
static int unknownAttribute
           
 
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

recognitionException

public static final int recognitionException
See Also:
Constant Field Values

generalParsingException

public static final int generalParsingException
See Also:
Constant Field Values

classNotFoundException

public static final int classNotFoundException
See Also:
Constant Field Values

aliasResolutionException

public static final int aliasResolutionException
See Also:
Constant Field Values

resolutionClassNotFoundException

public static final int resolutionClassNotFoundException
See Also:
Constant Field Values

missingDescriptorException

public static final int missingDescriptorException
See Also:
Constant Field Values

missingMappingException

public static final int missingMappingException
See Also:
Constant Field Values

invalidContextKeyException

public static final int invalidContextKeyException
See Also:
Constant Field Values

expressionNotSupported

public static final int expressionNotSupported
See Also:
Constant Field Values

generalParsingException2

public static final int generalParsingException2
See Also:
Constant Field Values

invalidCollectionMemberDecl

public static final int invalidCollectionMemberDecl
See Also:
Constant Field Values

notYetImplemented

public static final int notYetImplemented
See Also:
Constant Field Values

constructorClassNotFound

public static final int constructorClassNotFound
See Also:
Constant Field Values

invalidSizeArgument

public static final int invalidSizeArgument
See Also:
Constant Field Values

invalidEnumLiteral

public static final int invalidEnumLiteral
See Also:
Constant Field Values

invalidSelectForGroupByQuery

public static final int invalidSelectForGroupByQuery
See Also:
Constant Field Values

invalidHavingExpression

public static final int invalidHavingExpression
See Also:
Constant Field Values

invalidMultipleUseOfSameParameter

public static final int invalidMultipleUseOfSameParameter
See Also:
Constant Field Values

multipleVariableDeclaration

public static final int multipleVariableDeclaration
See Also:
Constant Field Values

invalidFunctionArgument

public static final int invalidFunctionArgument
See Also:
Constant Field Values

expectedOrderableOrderByItem

public static final int expectedOrderableOrderByItem
See Also:
Constant Field Values

invalidExpressionArgument

public static final int invalidExpressionArgument
See Also:
Constant Field Values

syntaxError

public static final int syntaxError
See Also:
Constant Field Values

syntaxErrorAt

public static final int syntaxErrorAt
See Also:
Constant Field Values

unexpectedToken

public static final int unexpectedToken
See Also:
Constant Field Values

unexpectedChar

public static final int unexpectedChar
See Also:
Constant Field Values

expectedCharFound

public static final int expectedCharFound
See Also:
Constant Field Values

unexpectedEOF

public static final int unexpectedEOF
See Also:
Constant Field Values

invalidNavigation

public static final int invalidNavigation
See Also:
Constant Field Values

unknownAttribute

public static final int unknownAttribute
See Also:
Constant Field Values

internalExceptions

public java.util.Collection internalExceptions
Constructor Detail

EJBQLException

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


EJBQLException

protected EJBQLException(java.lang.String theMessage)
INTERNAL Only TopLink can throw and create these excpetions


EJBQLException

protected EJBQLException(java.lang.String message,
                         java.lang.Exception internalException)
INTERNAL Only TopLink can throw and create these excpetions


EJBQLException

protected EJBQLException(java.lang.String message,
                         java.lang.Exception internalException,
                         int theErrorCode)
INTERNAL Only TopLink can throw and create these excpetions

Method Detail

recognitionException

public static EJBQLException recognitionException(java.lang.String theEjbql,
                                                  java.lang.String theMessage)
INTERNAL Create an exception to wrap the recognition exception thrown


generalParsingException

public static EJBQLException generalParsingException(java.lang.String theEjbql,
                                                     java.lang.Exception theException)
INTERNAL Create an exception to wrap a general parsing exception


generalParsingException

public static EJBQLException generalParsingException(java.lang.String theEjbql)
INTERNAL Create an exception to wrap a general parsing exception


classNotFoundException

public static EJBQLException classNotFoundException(java.lang.String theClassName,
                                                    java.lang.String theMessage,
                                                    java.lang.Exception theException)

resolutionClassNotFoundException

public static EJBQLException resolutionClassNotFoundException(java.lang.String theClassName)

missingDescriptorException

public static EJBQLException missingDescriptorException(java.lang.String theClassName)

missingMappingException

public static EJBQLException missingMappingException(java.lang.String theAttributeName)

aliasResolutionException

public static EJBQLException aliasResolutionException(java.lang.String theAlias)

invalidContextKeyException

public static EJBQLException invalidContextKeyException(java.lang.String theKey)

expressionNotSupported

public static EJBQLException expressionNotSupported(java.lang.String unsupportedExpression)

invalidCollectionMemberDecl

public static EJBQLException invalidCollectionMemberDecl(java.lang.String attributeName)

notYetImplemented

public static EJBQLException notYetImplemented(java.lang.String detail)

constructorClassNotFound

public static EJBQLException constructorClassNotFound(java.lang.String className)

invalidSizeArgument

public static EJBQLException invalidSizeArgument(java.lang.String attributeName)

invalidEnumLiteral

public static EJBQLException invalidEnumLiteral(java.lang.String enumType,
                                                java.lang.String constant)

invalidSelectForGroupByQuery

public static EJBQLException invalidSelectForGroupByQuery(java.lang.String select,
                                                          java.lang.String groupBy)

invalidHavingExpression

public static EJBQLException invalidHavingExpression(java.lang.String having,
                                                     java.lang.String groupBy)

invalidMultipleUseOfSameParameter

public static EJBQLException invalidMultipleUseOfSameParameter(java.lang.String parameter,
                                                               java.lang.String oldType,
                                                               java.lang.String newType)

multipleVariableDeclaration

public static EJBQLException multipleVariableDeclaration(java.lang.String variable,
                                                         java.lang.String oldDecl)

invalidFunctionArgument

public static EJBQLException invalidFunctionArgument(java.lang.String functionName,
                                                     java.lang.String attributeName,
                                                     java.lang.String type)

invalidExpressionArgument

public static EJBQLException invalidExpressionArgument(java.lang.String functionName,
                                                       java.lang.String attributeName,
                                                       java.lang.String type)

expectedOrderableOrderByItem

public static EJBQLException expectedOrderableOrderByItem(java.lang.String item,
                                                          java.lang.String type)

syntaxError

public static EJBQLException syntaxError(java.lang.String query)

syntaxErrorAt

public static EJBQLException syntaxErrorAt(java.lang.String query,
                                           java.lang.String token)

unexpectedToken

public static EJBQLException unexpectedToken(java.lang.String query,
                                             java.lang.String token)

unexpectedChar

public static EJBQLException unexpectedChar(java.lang.String query,
                                            java.lang.String unexpected)

expectedCharFound

public static EJBQLException expectedCharFound(java.lang.String query,
                                               java.lang.String expected,
                                               java.lang.String found)

unexpectedEOF

public static EJBQLException unexpectedEOF(java.lang.String query)

invalidNavigation

public static EJBQLException invalidNavigation(java.lang.String expr,
                                               java.lang.String lhs,
                                               java.lang.String type)

unknownAttribute

public static EJBQLException unknownAttribute(java.lang.String type,
                                              java.lang.String name)

addInternalException

public java.lang.Object addInternalException(java.lang.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 java.util.Collection getInternalExceptions()
INTERNAL Return the collection of internal Exceptions. Intialize if there are no exceptions


setInternalExceptions

public void setInternalExceptions(java.util.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


EclipseLink 1.0_1.0M2 API Reference - Incubation