EJBQLExceptionpublic class EJBQLException extends TopLinkException Purpose: EJBQL parsing and resolution problems will raise this exception |
Fields Summary |
---|
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 | unknownAbstractSchemaType | public static final int | invalidEnumEqualExpression | public static final int | invalidCollectionNavigation | public static final int | unknownAbstractSchemaType2 | public static final int | resolutionClassNotFoundException2 | public Collection | internalExceptions |
Constructors Summary |
---|
protected EJBQLException()INTERNAL
Only TopLink can throw and create these excpetions
super();
| protected EJBQLException(String theMessage)INTERNAL
Only TopLink can throw and create these excpetions
super(theMessage);
| protected EJBQLException(String message, Exception internalException)INTERNAL
Only TopLink can throw and create these excpetions
super(message, internalException);
| protected EJBQLException(String message, Exception internalException, int theErrorCode)INTERNAL
Only TopLink can throw and create these excpetions
this(message, internalException);
this.setErrorCode(theErrorCode);
|
Methods Summary |
---|
public java.lang.Object | addInternalException(java.lang.Object theException)INTERNAL
Add an internal Exception to the collection of
internal Exceptions
getInternalExceptions().add(theException);
return theException;
| public static oracle.toplink.essentials.exceptions.EJBQLException | aliasResolutionException(java.lang.String query, int line, int column, java.lang.String theAlias)
Object[] args = { query, line, column, theAlias };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, aliasResolutionException, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(aliasResolutionException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | classNotFoundException(java.lang.String theClassName, java.lang.String theMessage, java.lang.Exception theException)
Object[] args = { theClassName, theMessage };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, classNotFoundException, args);
EJBQLException exception = new EJBQLException(message, theException, classNotFoundException);
exception.setErrorCode(classNotFoundException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | constructorClassNotFound(java.lang.String query, int line, int column, java.lang.String className)
Object[] args = { query, line, column, className };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, constructorClassNotFound, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(constructorClassNotFound);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | expectedCharFound(java.lang.String query, int line, int column, java.lang.String expected, java.lang.String found, java.lang.Exception ex)
Object[] args = { query, line, column, expected, found };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, expectedCharFound, args);
EJBQLException exception = new EJBQLException(message, ex);
exception.setErrorCode(expectedCharFound);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | expectedOrderableOrderByItem(java.lang.String query, int line, int column, java.lang.String item, java.lang.String type)
Object[] args = { query, line, column, item, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, expectedOrderableOrderByItem, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(expectedOrderableOrderByItem);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | expressionNotSupported(java.lang.String query, java.lang.String unsupportedExpression)
Object[] args = { query, unsupportedExpression };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, expressionNotSupported, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(expressionNotSupported);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | generalParsingException(java.lang.String theEjbql, java.lang.Exception theException)INTERNAL
Create an exception to wrap a general parsing exception
Object[] args = { theEjbql, theException.getMessage() };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, generalParsingException, args);
EJBQLException exception = new EJBQLException(message, theException, generalParsingException);
exception.setErrorCode(generalParsingException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | generalParsingException(java.lang.String theEjbql)INTERNAL
Create an exception to wrap a general parsing exception
Object[] args = { theEjbql };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, generalParsingException2, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(generalParsingException);
return exception;
| public java.util.Collection | getInternalExceptions()INTERNAL
Return the collection of internal Exceptions.
Intialize if there are no exceptions
if (internalExceptions == null) {
setInternalExceptions(new Vector());
}
return internalExceptions;
| public boolean | hasInternalExceptions()INTERNAL
Does this exception have any internal errors?
return !getInternalExceptions().isEmpty();
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidCollectionMemberDecl(java.lang.String query, int line, int column, java.lang.String attributeName)
Object[] args = { query, line, column, attributeName };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidCollectionMemberDecl, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidCollectionMemberDecl);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidCollectionNavigation(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String attribute)
Object[] args = { query, line, column, expr, attribute };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidCollectionNavigation, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidCollectionNavigation);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidContextKeyException(java.lang.String query, java.lang.String theKey)
Object[] args = { query, theKey };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, invalidContextKeyException, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidContextKeyException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidEnumEqualExpression(java.lang.String query, int line, int column, java.lang.String enumType, java.lang.String type)
Object[] args = { query, line, column, enumType, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidEnumEqualExpression, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidEnumEqualExpression);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidEnumLiteral(java.lang.String query, int line, int column, java.lang.String enumType, java.lang.String literal)
Object[] args = { query, line, column, enumType, literal };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidEnumLiteral, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidEnumLiteral);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidExpressionArgument(java.lang.String query, int line, int column, java.lang.String expression, java.lang.String attributeName, java.lang.String type)
Object[] args = { query, line, column, expression, attributeName, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidExpressionArgument, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidExpressionArgument);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidFunctionArgument(java.lang.String query, int line, int column, java.lang.String functionName, java.lang.String attributeName, java.lang.String type)
Object[] args = { query, line, column, functionName, attributeName, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidFunctionArgument, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidFunctionArgument);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidHavingExpression(java.lang.String query, int line, int column, java.lang.String having, java.lang.String groupBy)
Object[] args = { query, line, column, having, groupBy };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidHavingExpression, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidHavingExpression);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidMultipleUseOfSameParameter(java.lang.String query, int line, int column, java.lang.String parameter, java.lang.String oldType, java.lang.String newType)
Object[] args = { query, line, column , parameter, oldType, newType };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidMultipleUseOfSameParameter, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidMultipleUseOfSameParameter);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidNavigation(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String lhs, java.lang.String type)
Object[] args = { query, line, column, expr, lhs, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidNavigation, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidNavigation);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidSelectForGroupByQuery(java.lang.String query, int line, int column, java.lang.String select, java.lang.String groupBy)
Object[] args = { query, line, column, select, groupBy };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidSelectForGroupByQuery, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidSelectForGroupByQuery);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidSetClauseNavigation(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String relationship)
Object[] args = { query, line, column, expr, relationship };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidSetClauseNavigation, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidSetClauseNavigation);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidSetClauseTarget(java.lang.String query, int line, int column, java.lang.String expr, java.lang.String attribute)
Object[] args = { query, line, column, attribute, expr };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidSetClauseTarget, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidSetClauseTarget);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | invalidSizeArgument(java.lang.String query, int line, int column, java.lang.String attributeName)
Object[] args = { query, line, column, attributeName };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, invalidSizeArgument, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(invalidSizeArgument);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | missingDescriptorException(java.lang.String query, java.lang.String theClassName)
Object[] args = { query, theClassName };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, missingDescriptorException, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(missingDescriptorException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | missingMappingException(java.lang.String query, java.lang.String theAttributeName)
Object[] args = { query, theAttributeName };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, missingMappingException, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(missingMappingException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | multipleVariableDeclaration(java.lang.String query, int line, int column, java.lang.String variable, java.lang.String oldDecl)
Object[] args = { query, line, column, variable, oldDecl };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, multipleVariableDeclaration, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(multipleVariableDeclaration);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | notYetImplemented(java.lang.String query, java.lang.String detail)
Object[] args = { query, detail };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, notYetImplemented, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(notYetImplemented);
return exception;
| 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
if (hasInternalExceptions()) {
Iterator exceptions = getInternalExceptions().iterator();
while (exceptions.hasNext()) {
Throwable error = (Throwable)exceptions.next();
error.printStackTrace();
}
}
| public static oracle.toplink.essentials.exceptions.EJBQLException | recognitionException(java.lang.String theEjbql, java.lang.String theMessage)INTERNAL
Create an exception to wrap the recognition exception thrown
Object[] args = { theEjbql, theMessage };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, recognitionException, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(recognitionException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | resolutionClassNotFoundException(java.lang.String query, java.lang.String theClassName)
Object[] args = { query, theClassName };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, resolutionClassNotFoundException, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(resolutionClassNotFoundException);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | resolutionClassNotFoundException2(java.lang.String query, int line, int column, java.lang.String theClassName)
Object[] args = { query, line, column, theClassName };
String message = ExceptionMessageGenerator.buildMessage(EJBQLException.class, resolutionClassNotFoundException2, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(resolutionClassNotFoundException2);
return exception;
| public void | setInternalExceptions(java.util.Collection theExceptions)INTERNAL
Store the exceptions related to this exception
internalExceptions = theExceptions;
| public static oracle.toplink.essentials.exceptions.EJBQLException | syntaxError(java.lang.String query, java.lang.Exception ex)
Object[] args = { query };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, syntaxError, args);
EJBQLException exception = new EJBQLException(message, ex);
exception.setErrorCode(syntaxError);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | syntaxErrorAt(java.lang.String query, int line, int column, java.lang.String token, java.lang.Exception ex)
Object[] args = { query, line, column, token };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, syntaxErrorAt, args);
EJBQLException exception = new EJBQLException(message, ex);
exception.setErrorCode(syntaxErrorAt);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | unexpectedChar(java.lang.String query, int line, int column, java.lang.String unexpected, java.lang.Exception ex)
Object[] args = { query, line, column, unexpected };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, unexpectedChar, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(unexpectedChar);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | unexpectedEOF(java.lang.String query, int line, int column, java.lang.Exception ex)
Object[] args = { query, line, column};
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, unexpectedEOF, args);
EJBQLException exception = new EJBQLException(message, ex);
exception.setErrorCode(unexpectedEOF);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | unexpectedToken(java.lang.String query, int line, int column, java.lang.String token, java.lang.Exception ex)
Object[] args = { query, line, column, token };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, unexpectedToken, args);
EJBQLException exception = new EJBQLException(message, ex);
exception.setErrorCode(unexpectedToken);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | unknownAbstractSchemaType(java.lang.String query, java.lang.String type)
Object[] args = { query, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, unknownAbstractSchemaType, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(unknownAbstractSchemaType);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | unknownAbstractSchemaType2(java.lang.String query, int line, int column, java.lang.String type)
Object[] args = { query, line, column, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, unknownAbstractSchemaType2, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(unknownAbstractSchemaType2);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | unknownAttribute(java.lang.String query, int line, int column, java.lang.String attribute, java.lang.String type)
Object[] args = { query, line, column, attribute, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, unknownAttribute, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(unknownAttribute);
return exception;
| public static oracle.toplink.essentials.exceptions.EJBQLException | unsupportJoinArgument(java.lang.String query, int line, int column, java.lang.String join, java.lang.String type)
Object[] args = { query, line, column, join, type };
String message = ExceptionMessageGenerator.buildMessage(
EJBQLException.class, unsupportJoinArgument, args);
EJBQLException exception = new EJBQLException(message);
exception.setErrorCode(unsupportJoinArgument);
return exception;
|
|