oracle.toplink.exceptions
Class EJBQLException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--oracle.toplink.exceptions.TopLinkException
                          |
                          +--oracle.toplink.exceptions.EJBQLException
All Implemented Interfaces:
java.io.Serializable

public class EJBQLException
extends TopLinkException

Purpose: EJBQL parsing and resolution problems will raise this exception

See Also:
Serialized Form

Field Summary
TypeField
static int aliasResolutionException
           
static int classNotFoundException
           
static int expressionNotSupported
           
static int generalParsingException
           
 java.util.Vector internalExceptions
           
static int invalidContextKeyException
           
static int missingDescriptorException
           
static int missingMappingException
           
static int recognitionException
           
static int resolutionClassNotFoundException
           
 
Method Summary
TypeMethod
 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 expressionNotSupported(java.lang.String unsupportedExpression)
           
static EJBQLException generalParsingException(java.lang.String theEjbql, java.lang.Exception theException)
          INTERNAL Create an exception to wrap a general parsing exception
 java.util.Vector getInternalExceptions()
          INTERNAL Return the collection of internal Exceptions.
 boolean hasInternalExceptions()
          INTERNAL Does this exception have any internal errors?
static EJBQLException invalidContextKeyException(java.lang.String theKey)
           
static EJBQLException missingDescriptorException(java.lang.String theClassName)
           
static EJBQLException missingMappingException(java.lang.String theAttributeName)
           
 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.Vector theExceptions)
          INTERNAL Store the exceptions related to this exception
 
Methods inherited from class oracle.toplink.exceptions.TopLinkException
getErrorCode, getInternalException, getMessage, getSession, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

recognitionException

public static final int recognitionException

generalParsingException

public static final int generalParsingException

classNotFoundException

public static final int classNotFoundException

aliasResolutionException

public static final int aliasResolutionException

resolutionClassNotFoundException

public static final int resolutionClassNotFoundException

missingDescriptorException

public static final int missingDescriptorException

missingMappingException

public static final int missingMappingException

invalidContextKeyException

public static final int invalidContextKeyException

expressionNotSupported

public static final int expressionNotSupported

internalExceptions

public java.util.Vector internalExceptions
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

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)

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.Vector getInternalExceptions()
INTERNAL Return the collection of internal Exceptions. Intialize if there are no exceptions

setInternalExceptions

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