oracle.toplink.exceptions
Class QueryException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--oracle.toplink.exceptions.TopLinkException
                          |
                          +--oracle.toplink.exceptions.ValidationException
                                |
                                +--oracle.toplink.exceptions.QueryException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SDKQueryException

public class QueryException
extends ValidationException

Purpose: This exception is used for any problem that is detected with a query.

See Also:
Serialized Form

Field Summary
TypeField
static int ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED
           
static int AGGREGATE_OBJECT_CANNOT_BE_DELETED
           
static int ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION
           
static int BACKUP_CLONE_DELETED
           
static int BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT
           
static int BACKUP_CLONE_IS_ORIGINAL_FROM_SELF
           
static int BATCH_READING_NOT_SUPPORTED
           
static int CALLED_METHOD_THREW_EXCEPTION
           
static int CANNOT_ACCESS_METHOD_ON_OBJECT
           
static int CANNOT_ADD_ELEMENT
           
static int CANNOT_ADD_TO_CONTAINER
           
static int CANNOT_CACHE_PARTIAL_OBJECT
           
static int CANNOT_COMPARE_TABLES_IN_EXPRESSION
           
static int CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL
           
static int CANNOT_CONFORM_EXPRESSION
           
static int CANNOT_CREATE_CLONE
           
static int CANNOT_DELETE_READ_ONLY_OBJECT
           
static int CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING
           
static int CANNOT_REMOVE_FROM_CONTAINER
           
static int CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY
           
static int COULD_NOT_INSTANTIATE_CONTAINER_CLASS
           
static int DESCRIPTOR_IS_MISSING
           
static int DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY
           
static int EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH
           
static int ILL_FORMED_EXPRESSION
           
static int ILLEGAL_USE_OF_GETFIELD
           
static int ILLEGAL_USE_OF_GETTABLE
           
static int IN_CANNOT_BE_PARAMETERIZED
           
static int INCORRECT_CLASS_FOR_OBJECT_COMPARISON
           
static int INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM
           
static int INVALID_DATABASE_ACCESSOR
           
static int INVALID_DATABASE_CALL
           
static int INVALID_OPERATION
           
static int INVALID_OPERATOR
           
static int INVALID_OPERATOR_FOR_OBJECT_EXPRESSION
           
static int INVALID_QUERY
           
static int INVALID_QUERY_ITEM
           
static int INVALID_QUERY_KEY_IN_EXPRESSION
           
static int INVALID_QUERY_ON_SERVER_SESSION
           
static int INVALID_TABLE_FOR_FIELD_IN_EXPRESSION
           
static int INVALID_USE_OF_ANY_OF_IN_EXPRESSION
           
static int INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION
           
static int MAP_KEY_NOT_COMPARABLE
           
static int METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS
           
static int METHOD_DOES_NOT_EXIST_ON_EXPRESSION
           
static int METHOD_INVOCATION_FAILED
           
static int METHOD_NOT_VALID
           
static int MUST_BE_ONE_TO_ONE_OR_ONE_TO_MANY_MAPPING
           
static int MUST_INSTANTIATE_VALUEHOLDERS
           
static int NO_ATTBIUTES_FOR_REPORT_QUERY
           
static int NO_CONCRETE_CLASS_INDICATED
           
static int NO_CURSOR_SUPPORT
           
static int NO_DESCRIPTOR_FOR_SUBCLASS
           
static int NO_EXPRESSION_BUILDER_CLASS_FOUND
           
static int NULL_PRIMARY_KEY_IN_BUILDING_OBJECT
           
static int OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED
           
static int OBJECT_TO_INSERT_IS_EMPTY
           
static int OBJECT_TO_MODIFY_NOT_SPECIFIED
           
static int OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE
           
static int PARAMETER_NAME_MISMATCH
           
static int QUERY_NOT_DEFINED
           
static int QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK
           
static int READ_BEYOND_QUERY
           
static int REDIRECTION_CLASS_OR_METHOD_NOT_SET
           
static int REDIRECTION_METHOD_ERROR
           
static int REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY
           
static int REFERENCE_CLASS_MISSING
           
static int REFRESH_NOT_POSSIBLE_WITHOUT_CACHE
           
static int REPORT_QUERY_RESULT_SIZE_MISMATCH
           
static int REPORT_RESULT_WITHOUT_PKS
           
static int SELECTION_OBJECT_CANNOT_BE_NULL
           
static int SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES
           
static int SQL_STATEMENT_NOT_SET_PROPERLY
           
static int TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION
           
static int UNNAMED_QUERY_ON_SESSION_BROKER
           
static int UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON
           
 
Fields inherited from class oracle.toplink.exceptions.ValidationException
CANNOT_ACQUIRE_CLIENTSESSION_FROM_SESSION, CANNOT_ACQUIRE_DATA_SOURCE, CANNOT_ADD_DESCRIPTORS_TO_SESSION, CANNOT_ADD_DESCRIPTORS_TO_SESSION_BROKER, CANNOT_COMMIT_UOW_AGAIN, CANNOT_CREATE_EXTERNAL_TRANSACTION_CONTROLLER, CANNOT_LOGIN_TO_A_SESSION, CANNOT_LOGOUT_OF_A_SESSION, CANNOT_MODIFY_READ_ONLY_CLASSES_SET_AFTER_USING_UNIT_OF_WORK, CANNOT_MODIFY_SCHEMA_IN_SESSION, CANNOT_REGISTER_AGGREGATE_OBJECT_IN_UNIT_OF_WORK, CANNOT_RELEASE_NON_CLIENTSESSION, CANNOT_REMOVE_FROM_READ_ONLY_CLASSES_IN_NESTED_UNIT_OF_WORK, CANNOT_SET_READ_POOL_SIZE_AFTER_LOGIN, CANT_HAVE_UNBOUND_IN_OUTPUT_ARGUMENTS, CHILD_DESCRIPTORS_DO_NOT_HAVE_IDENTITY_MAP, CONTAINER_POLICY_DOES_NOT_USE_KEYS, DESCRIPTOR_MUST_NOT_BE_INITIALIZED, EJB_CANNOT_LOAD_REMOTE_CLASS, EJB_CONTAINER_EXCEPTION_RAISED, EJB_DESCRIPTOR_NOT_FOUND_IN_SESSION, EJB_FINDER_EXCEPTION, EJB_INVALID_FINDER_ON_HOME, EJB_INVALID_PLATFORM_CLASS, EJB_INVALID_PROJECT_CLASS, EJB_INVALID_SESSION_TYPE_CLASS, EJB_MUST_BE_IN_TRANSACTION, EJB_MUST_SET_LICENSE_KEY, EJB_NO_SUCH_SESSION_SPECIFIED_IN_PROPERTIES, EJB_PRIMARY_KEY_REFLECTION_EXCEPTION, EJB_SESSION_TYPE_CLASS_NOT_FOUND, EJB_TOPLINK_PROPERTIES_NOT_FOUND, ERROR_IN_SESSION_XML, ERROR_WHILE_READING_LICENSE, EXISTING_QUERY_TYPE_CONFLICT, FATAL_ERROR_OCCURRED, FIELD_LEVEL_LOCKING_NOTSUPPORTED_OUTSIDE_A_UNIT_OF_WORK, FILE_ERROR, ILLEGAL_CONTAINER_CLASS, ILLEGAL_USE_OF_MAP_IN_DIRECTCOLLECTION, INCORRECT_LOGIN_INSTANCE_PROVIDED, INVALID_CONNECTOR, INVALID_DATA_SOURCE_NAME, INVALID_FILE_TYPE, INVALID_MERGE_POLICY, INVALID_READ_ONLY_CLASS_STRUCTURE_IN_UNIT_OF_WORK, JAVA_TYPE_IS_NOT_A_VALID_DATABASE_TYPE, JTS_EXCEPTION_RAISED, KEYS_MUST_MATCH, LICENSE_FILE_NOT_FOUND, LOG_IO_ERROR, LOGIN_BEFORE_ALLOCATING_CLIENT_SESSIONS, MAX_SIZE_LESS_THAN_MIN_SIZE, METHOD_NOT_DECLARED_IN_ITEM_CLASS, MISSING_DESCRIPTOR, MISSING_MAPPING, MULTIPLE_PROJECTS_SPECIFIED_IN_PROPERTIES, NO_PROJECT_SPECIFIED_IN_PROPERTIES, NO_PROPERTIES_FILE_FOUND, NO_SESSION_REGISTERED_FOR_CLASS, NO_SESSION_REGISTERED_FOR_NAME, NO_SESSIONS_XML_FOUND, NO_TABLES_TO_CREATE, NO_TOPLINK_EJB_JAR_XML_FOUND, NULL_CACHE_KEY_FOUND_ON_REMOVAL, NULL_UNDERLYING_VALUEHOLDER_VALUE, ONLY_FIELDS_ARE_VALID_KEYS_FOR_DATABASE_ROWS, OPERATION_NOT_SUPPORTED, OPTIMISTIC_LOCKING_NOT_SUPPORTED, ORACLE_OBJECT_TYPE_NAME_NOT_DEFINED, ORACLE_OBJECT_TYPE_NOT_DEFINED, ORACLE_VARRAY_MAXIMIM_SIZE_NOT_DEFINED, PLATFORM_CLASS_NOT_FOUND, POOL_NAME_DOES_NOT_EXIST, POOLS_MUST_BE_CONFIGURED_BEFORE_LOGIN, PROJECT_AMENDMENT_EXCEPTION_OCCURED, PROJECT_XML_NOT_FOUND, QUERY_ARGUMENT_TYPE_NOT_FOUND, SEQUENCE_SETUP_INCORRECTLY, SESSION_AMENDMENT_EXCEPTION_OCCURED, SESSION_LIMIT_IS_EXCEEDED, SET_LISTENER_CLASSES_EXCEPTION, START_INDEX_OUT_OF_RANGE, STOP_INDEX_OUT_OF_RANGE, SUB_SESSION_NOT_DEFINED_FOR_BROKER, WRITE_OBJECT_NOT_ALLOWED_IN_UNIT_OF_WORK, WRONG_OBJECT_REGISTERED
 
Method Summary
TypeMethod
static QueryException additionalSizeQueryNotSpecified(DatabaseQuery query)
           
static QueryException aggregateObjectCannotBeDeletedOrWritten(Descriptor descriptor, DatabaseQuery query)
           
static QueryException argumentSizeMismatchInQueryAndQueryDefinition(DatabaseQuery query)
           
static QueryException backupCloneIsDeleted(java.lang.Object clone)
           
static QueryException backupCloneIsOriginalFromParent(java.lang.Object clone)
           
static QueryException backupCloneIsOriginalFromSelf(java.lang.Object clone)
           
static QueryException batchReadingNotSupported(DatabaseMapping mapping, DatabaseQuery query)
           
static QueryException calledMethodThrewException(java.lang.reflect.Method aMethod, java.lang.Object object, java.lang.Exception ex)
           
static ValidationException cannotAccessMethodOnObject(java.lang.reflect.Method aMethod, java.lang.Object anObject)
           
static QueryException cannotAddElement(java.lang.Object anObject, java.lang.Object aContainer, java.lang.Exception ex)
           
static QueryException cannotAddToContainer(java.lang.Object anObject, java.lang.Object aContainer, oracle.toplink.internal.queryframework.ContainerPolicy policy)
           
static QueryException cannotCachePartialObjects(DatabaseQuery query)
           
static QueryException cannotCompareTablesInExpression(java.lang.Object data)
           
static QueryException cannotCompareTargetForeignKeysToNull(Expression expression, java.lang.Object value, DatabaseMapping mapping)
           
static QueryException cannotConformExpression()
           
static QueryException cannotCreateClone(oracle.toplink.internal.queryframework.ContainerPolicy policy, java.lang.Object anObject)
           
static QueryException cannotDeleteReadOnlyObject(java.lang.Object anObject)
           
static QueryException cannotQueryAcrossAVariableOneToOneMapping(DatabaseMapping mapping, Descriptor descriptor)
           
static QueryException cannotRemoveFromContainer(java.lang.Object anObject, java.lang.Object aContainer, oracle.toplink.internal.queryframework.ContainerPolicy policy)
           
static QueryException cannotSetShouldCheckCacheOnlyOnReportQuery()
           
static QueryException couldNotInstantiateContainerClass(java.lang.Class aClass, java.lang.Exception exception)
           
static QueryException descriptorIsMissing(java.lang.Class referenceClass, DatabaseQuery query)
           
static QueryException descriptorIsMissingForNamedQuery(java.lang.Class domainClass, java.lang.String queryName)
           
static QueryException exampleAndReferenceObjectClassMismatch(java.lang.Class exampleObjectClass, java.lang.Class referenceObjectClass, DatabaseQuery query)
          Oct 18, 2000 JED Added this method and exception value
 java.lang.String getMessage()
          PUBLIC: Return the exception error message.
 DatabaseQuery getQuery()
          PUBLIC: Return the query in which the problem was detected.
 DatabaseRow getQueryArguments()
          PUBLIC: Return the query argements used in the original query when exception is thrown
static QueryException illegalUseOfGetField(java.lang.Object data)
           
static QueryException illegalUseOfGetTable(java.lang.Object data)
           
static QueryException illFormedExpression(Expression queryKey)
           
static QueryException inCannotBeParameterized(DatabaseQuery query)
           
static QueryException incorrectClassForObjectComparison(Expression expression, java.lang.Object value, DatabaseMapping mapping)
           
static QueryException incorrectSizeQueryForCursorStream(DatabaseQuery query)
           
static QueryException invalidDatabaseAccessor(oracle.toplink.internal.databaseaccess.Accessor accessor)
           
static QueryException invalidDatabaseCall(Call call)
           
static QueryException invalidExpressionForQueryItem(Expression expression, DatabaseQuery owner)
           
static QueryException invalidOperation(java.lang.String operation)
           
static QueryException invalidOperator(java.lang.Object data)
           
static QueryException invalidOperatorForObjectComparison(Expression expression)
           
static QueryException invalidQuery(DatabaseQuery query)
           
static QueryException invalidQueryKeyInExpression(java.lang.Object data)
           
static QueryException invalidQueryOnServerSession(DatabaseQuery query)
           
static QueryException invalidTableForFieldInExpression(java.lang.Object data)
           
static QueryException invalidUseOfAnyOfInExpression(java.lang.Object data)
           
static QueryException invalidUseOfToManyQueryKeyInExpression(java.lang.Object data)
           
static ValidationException mapKeyNotComparable(java.lang.Object anObject, java.lang.Object aContainer)
           
static QueryException methodDoesNotExistInContainerClass(java.lang.String methodName, java.lang.Class aClass)
           
static QueryException methodDoesNotExistOnExpression(java.lang.String methodName, java.lang.Class[] argTypes)
           
static QueryException methodInvocationFailed(java.lang.reflect.Method aMethod, java.lang.Object anObject, java.lang.Exception ex)
           
static QueryException methodNotValid(java.lang.Object aReceiver, java.lang.String methodName)
           
static QueryException mustBeOneToOneOrOneToManyMapping()
           
static QueryException mustInstantiateValueholders()
           
static QueryException noAttributesForReportQuery(DatabaseQuery query)
          Oct 19, 2000 JED Added this method and exception value
static QueryException noConcreteClassIndicated(DatabaseRow row, DatabaseQuery query)
           
static QueryException noCursorSupport(DatabaseQuery query)
           
static QueryException noDescriptorForClassFromInheritancePolicy(DatabaseQuery query, java.lang.Class referenceClass)
           
static QueryException noExpressionBuilderFound(Expression expression)
           
static QueryException nullPrimaryKeyInBuildingObject(DatabaseQuery query, DatabaseRow databaseRow)
           
static QueryException objectComparisonsCannotBeParameterized(Expression expression)
           
static QueryException objectToInsertIsEmpty(oracle.toplink.internal.helper.DatabaseTable table)
           
static QueryException objectToModifyNotSpecified(DatabaseQuery query)
           
static QueryException outerJoinIsOnlyValidForOneToOneMappings(DatabaseMapping mapping)
           
static QueryException parameterNameMismatch(java.lang.String badParameterName)
           
static QueryException queryNotDefined()
           
static QueryException querySentToInactiveUnitOfWork(DatabaseQuery query)
           
static QueryException readBeyondStream(DatabaseQuery query)
           
static QueryException redirectionClassOrMethodNotSet(DatabaseQuery query)
           
static QueryException redirectionMethodError(java.lang.Exception exception, DatabaseQuery query)
           
static QueryException redirectionMethodNotDefinedCorrectly(java.lang.Class methodClass, java.lang.String methodName, java.lang.Exception exception, DatabaseQuery query)
           
static QueryException referenceClassMissing(DatabaseQuery query)
           
static QueryException refreshNotPossibleWithoutCache(DatabaseQuery query)
           
static QueryException reportQueryResultSizeMismatch(int expected, int retrieved)
           
static QueryException reportQueryResultWithoutPKs(ReportQueryResult result)
           
static QueryException selectionObjectCannotBeNull(DatabaseQuery query)
           
static QueryException sizeOnlySupportedOnExpressionQueries(DatabaseQuery query)
           
static QueryException sqlStatementNotSetProperly(DatabaseQuery query)
           
static QueryException typeMismatchBetweenAttributeAndConstantOnExpression(java.lang.Class constantClass, java.lang.Class attributeClass)
           
static QueryException unnamedQueryOnSessionBroker(DatabaseQuery query)
           
static QueryException unsupportedMappingForObjectComparison(DatabaseMapping mapping, Expression expression)
           
 
Methods inherited from class oracle.toplink.exceptions.ValidationException
cannotAcquireClientSessionFromSession, cannotAcquireDataSource, cannotAddDescriptorsToSessionBroker, cannotCommitUOWAgain, cannotCreateExternalTransactionController, cannotHaveUnboundInOutputArguments, cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork, cannotRegisterAggregateObjectInUnitOfWork, cannotReleaseNonClientSession, cannotRemoveFromReadOnlyClassesInNestedUnitOfWork, cannotSetListenerClasses, cannotSetReadPoolSizeAfterLogin, childDescriptorsDoNotHaveIdentityMap, containerPolicyDoesNotUseKeys, descriptorMustBeNotInitialized, ejbCannotLoadRemoteClass, ejbContainerExceptionRaised, ejbDescriptorNotFoundInSession, ejbFinderException, ejbInvalidHomeInterfaceClass, ejbInvalidPlatformClass, ejbInvalidProjectClass, ejbInvalidSessionTypeClass, ejbMustBeInTransaction, ejbNoSuchSessionSpecifiedInProperties, ejbPrimaryKeyReflectionException, ejbSessionTypeClassNotFound, ejbTopLinkPropertiesNotFound, errorInSessionsXML, errorWhileReadingLicenseFile, existingQueryTypeConflict, fatalErrorOccurred, fatalErrorOccurred, fieldLevelLockingNotSupportedWithoutUnitOfWork, fileError, illegalContainerClass, illegalUseOfMapInDirectCollection, incorrectLoginInstanceProvided, invalidConnector, invalidDataSourceName, invalidFileName, invalidMergePolicy, javaTypeIsNotAValidDatabaseType, jtsExceptionRaised, loginBeforeAllocatingClientSessions, logIOError, maxSizeLessThanMinSize, methodNotDeclaredInItemClass, missingDescriptor, missingMappingForAttribute, multipleProjectsSpecifiedInProperties, noProjectSpecifiedInProperties, noPropertiesFileFound, noSessionRegisteredForClass, noSessionRegisteredForName, noSessionsXMLFound, noTablesToCreate, noTopLinkEjbJarXMLFound, nullCacheKeyFoundOnRemoval, nullUnderlyingValueHolderValue, onlyFieldsAreValidKeysForDatabaseRows, operationNotSupported, optimisticLockingNotSupportedWithStoredProcedureGeneration, oracleObjectTypeIsNotDefined, oracleObjectTypeNameIsNotDefined, oracleVarrayMaximumSizeNotDefined, platformClassNotFound, poolNameDoesNotExist, poolsMustBeConfiguredBeforeLogin, projectAmendmentExceptionOccured, projectXMLNotFound, queryArgumentTypeNotFound, sequenceSetupIncorrectly, sessionAmendmentExceptionOccured, startIndexOutOfRange, stopIndexOutOfRange, subSessionsNotDefinedForBroker, writeObjectNotAllowedInUnitOfWork, wrongObjectRegistered
 
Methods inherited from class oracle.toplink.exceptions.TopLinkException
getErrorCode, getInternalException, 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

ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED

public static final int ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED

AGGREGATE_OBJECT_CANNOT_BE_DELETED

public static final int AGGREGATE_OBJECT_CANNOT_BE_DELETED

ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION

public static final int ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION

BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT

public static final int BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT

BACKUP_CLONE_IS_ORIGINAL_FROM_SELF

public static final int BACKUP_CLONE_IS_ORIGINAL_FROM_SELF

BATCH_READING_NOT_SUPPORTED

public static final int BATCH_READING_NOT_SUPPORTED

DESCRIPTOR_IS_MISSING

public static final int DESCRIPTOR_IS_MISSING

DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY

public static final int DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY

INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM

public static final int INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM

INVALID_QUERY

public static final int INVALID_QUERY

INVALID_QUERY_KEY_IN_EXPRESSION

public static final int INVALID_QUERY_KEY_IN_EXPRESSION

INVALID_QUERY_ON_SERVER_SESSION

public static final int INVALID_QUERY_ON_SERVER_SESSION

NO_CONCRETE_CLASS_INDICATED

public static final int NO_CONCRETE_CLASS_INDICATED

NO_CURSOR_SUPPORT

public static final int NO_CURSOR_SUPPORT

OBJECT_TO_INSERT_IS_EMPTY

public static final int OBJECT_TO_INSERT_IS_EMPTY

OBJECT_TO_MODIFY_NOT_SPECIFIED

public static final int OBJECT_TO_MODIFY_NOT_SPECIFIED

QUERY_NOT_DEFINED

public static final int QUERY_NOT_DEFINED

QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK

public static final int QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK

READ_BEYOND_QUERY

public static final int READ_BEYOND_QUERY

REFERENCE_CLASS_MISSING

public static final int REFERENCE_CLASS_MISSING

REFRESH_NOT_POSSIBLE_WITHOUT_CACHE

public static final int REFRESH_NOT_POSSIBLE_WITHOUT_CACHE

SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES

public static final int SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES

SQL_STATEMENT_NOT_SET_PROPERLY

public static final int SQL_STATEMENT_NOT_SET_PROPERLY

INVALID_QUERY_ITEM

public static final int INVALID_QUERY_ITEM

SELECTION_OBJECT_CANNOT_BE_NULL

public static final int SELECTION_OBJECT_CANNOT_BE_NULL

UNNAMED_QUERY_ON_SESSION_BROKER

public static final int UNNAMED_QUERY_ON_SESSION_BROKER

REPORT_RESULT_WITHOUT_PKS

public static final int REPORT_RESULT_WITHOUT_PKS

NULL_PRIMARY_KEY_IN_BUILDING_OBJECT

public static final int NULL_PRIMARY_KEY_IN_BUILDING_OBJECT

NO_DESCRIPTOR_FOR_SUBCLASS

public static final int NO_DESCRIPTOR_FOR_SUBCLASS

CANNOT_DELETE_READ_ONLY_OBJECT

public static final int CANNOT_DELETE_READ_ONLY_OBJECT

INVALID_OPERATOR

public static final int INVALID_OPERATOR

ILLEGAL_USE_OF_GETFIELD

public static final int ILLEGAL_USE_OF_GETFIELD

ILLEGAL_USE_OF_GETTABLE

public static final int ILLEGAL_USE_OF_GETTABLE

REPORT_QUERY_RESULT_SIZE_MISMATCH

public static final int REPORT_QUERY_RESULT_SIZE_MISMATCH

CANNOT_CACHE_PARTIAL_OBJECT

public static final int CANNOT_CACHE_PARTIAL_OBJECT

OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE

public static final int OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE

CANNOT_ADD_TO_CONTAINER

public static final int CANNOT_ADD_TO_CONTAINER

METHOD_INVOCATION_FAILED

public static final int METHOD_INVOCATION_FAILED

CANNOT_CREATE_CLONE

public static final int CANNOT_CREATE_CLONE

METHOD_NOT_VALID

public static final int METHOD_NOT_VALID

METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS

public static final int METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS

COULD_NOT_INSTANTIATE_CONTAINER_CLASS

public static final int COULD_NOT_INSTANTIATE_CONTAINER_CLASS

MAP_KEY_NOT_COMPARABLE

public static final int MAP_KEY_NOT_COMPARABLE

CANNOT_ACCESS_METHOD_ON_OBJECT

public static final int CANNOT_ACCESS_METHOD_ON_OBJECT

CALLED_METHOD_THREW_EXCEPTION

public static final int CALLED_METHOD_THREW_EXCEPTION

INVALID_OPERATION

public static final int INVALID_OPERATION

CANNOT_REMOVE_FROM_CONTAINER

public static final int CANNOT_REMOVE_FROM_CONTAINER

CANNOT_ADD_ELEMENT

public static final int CANNOT_ADD_ELEMENT

BACKUP_CLONE_DELETED

public static final int BACKUP_CLONE_DELETED

CANNOT_COMPARE_TABLES_IN_EXPRESSION

public static final int CANNOT_COMPARE_TABLES_IN_EXPRESSION

INVALID_TABLE_FOR_FIELD_IN_EXPRESSION

public static final int INVALID_TABLE_FOR_FIELD_IN_EXPRESSION

INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION

public static final int INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION

INVALID_USE_OF_ANY_OF_IN_EXPRESSION

public static final int INVALID_USE_OF_ANY_OF_IN_EXPRESSION

CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING

public static final int CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING

ILL_FORMED_EXPRESSION

public static final int ILL_FORMED_EXPRESSION

CANNOT_CONFORM_EXPRESSION

public static final int CANNOT_CONFORM_EXPRESSION

INVALID_OPERATOR_FOR_OBJECT_EXPRESSION

public static final int INVALID_OPERATOR_FOR_OBJECT_EXPRESSION

UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON

public static final int UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON

OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED

public static final int OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED

INCORRECT_CLASS_FOR_OBJECT_COMPARISON

public static final int INCORRECT_CLASS_FOR_OBJECT_COMPARISON

CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL

public static final int CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL

INVALID_DATABASE_CALL

public static final int INVALID_DATABASE_CALL

INVALID_DATABASE_ACCESSOR

public static final int INVALID_DATABASE_ACCESSOR

METHOD_DOES_NOT_EXIST_ON_EXPRESSION

public static final int METHOD_DOES_NOT_EXIST_ON_EXPRESSION

IN_CANNOT_BE_PARAMETERIZED

public static final int IN_CANNOT_BE_PARAMETERIZED

REDIRECTION_CLASS_OR_METHOD_NOT_SET

public static final int REDIRECTION_CLASS_OR_METHOD_NOT_SET

REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY

public static final int REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY

REDIRECTION_METHOD_ERROR

public static final int REDIRECTION_METHOD_ERROR

EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH

public static final int EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH

NO_ATTBIUTES_FOR_REPORT_QUERY

public static final int NO_ATTBIUTES_FOR_REPORT_QUERY

NO_EXPRESSION_BUILDER_CLASS_FOUND

public static final int NO_EXPRESSION_BUILDER_CLASS_FOUND

CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY

public static final int CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY

TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION

public static final int TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION

MUST_INSTANTIATE_VALUEHOLDERS

public static final int MUST_INSTANTIATE_VALUEHOLDERS

MUST_BE_ONE_TO_ONE_OR_ONE_TO_MANY_MAPPING

public static final int MUST_BE_ONE_TO_ONE_OR_ONE_TO_MANY_MAPPING

PARAMETER_NAME_MISMATCH

public static final int PARAMETER_NAME_MISMATCH
Method Detail

additionalSizeQueryNotSpecified

public static QueryException additionalSizeQueryNotSpecified(DatabaseQuery query)

aggregateObjectCannotBeDeletedOrWritten

public static QueryException aggregateObjectCannotBeDeletedOrWritten(Descriptor descriptor,
                                                                     DatabaseQuery query)

argumentSizeMismatchInQueryAndQueryDefinition

public static QueryException argumentSizeMismatchInQueryAndQueryDefinition(DatabaseQuery query)

backupCloneIsDeleted

public static QueryException backupCloneIsDeleted(java.lang.Object clone)

backupCloneIsOriginalFromParent

public static QueryException backupCloneIsOriginalFromParent(java.lang.Object clone)

backupCloneIsOriginalFromSelf

public static QueryException backupCloneIsOriginalFromSelf(java.lang.Object clone)

batchReadingNotSupported

public static QueryException batchReadingNotSupported(DatabaseMapping mapping,
                                                      DatabaseQuery query)

calledMethodThrewException

public static QueryException calledMethodThrewException(java.lang.reflect.Method aMethod,
                                                        java.lang.Object object,
                                                        java.lang.Exception ex)

cannotAccessMethodOnObject

public static ValidationException cannotAccessMethodOnObject(java.lang.reflect.Method aMethod,
                                                             java.lang.Object anObject)

cannotAddElement

public static QueryException cannotAddElement(java.lang.Object anObject,
                                              java.lang.Object aContainer,
                                              java.lang.Exception ex)

cannotAddToContainer

public static QueryException cannotAddToContainer(java.lang.Object anObject,
                                                  java.lang.Object aContainer,
                                                  oracle.toplink.internal.queryframework.ContainerPolicy policy)

cannotCachePartialObjects

public static QueryException cannotCachePartialObjects(DatabaseQuery query)

cannotCompareTablesInExpression

public static QueryException cannotCompareTablesInExpression(java.lang.Object data)

cannotCompareTargetForeignKeysToNull

public static QueryException cannotCompareTargetForeignKeysToNull(Expression expression,
                                                                  java.lang.Object value,
                                                                  DatabaseMapping mapping)

cannotConformExpression

public static QueryException cannotConformExpression()

cannotCreateClone

public static QueryException cannotCreateClone(oracle.toplink.internal.queryframework.ContainerPolicy policy,
                                               java.lang.Object anObject)

cannotDeleteReadOnlyObject

public static QueryException cannotDeleteReadOnlyObject(java.lang.Object anObject)

cannotQueryAcrossAVariableOneToOneMapping

public static QueryException cannotQueryAcrossAVariableOneToOneMapping(DatabaseMapping mapping,
                                                                       Descriptor descriptor)

cannotRemoveFromContainer

public static QueryException cannotRemoveFromContainer(java.lang.Object anObject,
                                                       java.lang.Object aContainer,
                                                       oracle.toplink.internal.queryframework.ContainerPolicy policy)

cannotSetShouldCheckCacheOnlyOnReportQuery

public static QueryException cannotSetShouldCheckCacheOnlyOnReportQuery()

couldNotInstantiateContainerClass

public static QueryException couldNotInstantiateContainerClass(java.lang.Class aClass,
                                                               java.lang.Exception exception)

descriptorIsMissing

public static QueryException descriptorIsMissing(java.lang.Class referenceClass,
                                                 DatabaseQuery query)

descriptorIsMissingForNamedQuery

public static QueryException descriptorIsMissingForNamedQuery(java.lang.Class domainClass,
                                                              java.lang.String queryName)

exampleAndReferenceObjectClassMismatch

public static QueryException exampleAndReferenceObjectClassMismatch(java.lang.Class exampleObjectClass,
                                                                    java.lang.Class referenceObjectClass,
                                                                    DatabaseQuery query)
Oct 18, 2000 JED Added this method and exception value

getMessage

public java.lang.String getMessage()
PUBLIC: Return the exception error message. TopLink error messages are multi-line so that detail descriptions of the exception are given.
Overrides:
getMessage in class TopLinkException

getQuery

public DatabaseQuery getQuery()
PUBLIC: Return the query in which the problem was detected.

getQueryArguments

public DatabaseRow getQueryArguments()
PUBLIC: Return the query argements used in the original query when exception is thrown

illegalUseOfGetField

public static QueryException illegalUseOfGetField(java.lang.Object data)

illegalUseOfGetTable

public static QueryException illegalUseOfGetTable(java.lang.Object data)

illFormedExpression

public static QueryException illFormedExpression(Expression queryKey)

inCannotBeParameterized

public static QueryException inCannotBeParameterized(DatabaseQuery query)

incorrectClassForObjectComparison

public static QueryException incorrectClassForObjectComparison(Expression expression,
                                                               java.lang.Object value,
                                                               DatabaseMapping mapping)

incorrectSizeQueryForCursorStream

public static QueryException incorrectSizeQueryForCursorStream(DatabaseQuery query)

invalidDatabaseAccessor

public static QueryException invalidDatabaseAccessor(oracle.toplink.internal.databaseaccess.Accessor accessor)

invalidDatabaseCall

public static QueryException invalidDatabaseCall(Call call)

invalidExpressionForQueryItem

public static QueryException invalidExpressionForQueryItem(Expression expression,
                                                           DatabaseQuery owner)

invalidOperation

public static QueryException invalidOperation(java.lang.String operation)

invalidOperator

public static QueryException invalidOperator(java.lang.Object data)

invalidOperatorForObjectComparison

public static QueryException invalidOperatorForObjectComparison(Expression expression)

invalidQuery

public static QueryException invalidQuery(DatabaseQuery query)

invalidQueryKeyInExpression

public static QueryException invalidQueryKeyInExpression(java.lang.Object data)

invalidQueryOnServerSession

public static QueryException invalidQueryOnServerSession(DatabaseQuery query)

invalidTableForFieldInExpression

public static QueryException invalidTableForFieldInExpression(java.lang.Object data)

invalidUseOfAnyOfInExpression

public static QueryException invalidUseOfAnyOfInExpression(java.lang.Object data)

invalidUseOfToManyQueryKeyInExpression

public static QueryException invalidUseOfToManyQueryKeyInExpression(java.lang.Object data)

mapKeyNotComparable

public static ValidationException mapKeyNotComparable(java.lang.Object anObject,
                                                      java.lang.Object aContainer)

methodDoesNotExistInContainerClass

public static QueryException methodDoesNotExistInContainerClass(java.lang.String methodName,
                                                                java.lang.Class aClass)

methodDoesNotExistOnExpression

public static QueryException methodDoesNotExistOnExpression(java.lang.String methodName,
                                                            java.lang.Class[] argTypes)

methodInvocationFailed

public static QueryException methodInvocationFailed(java.lang.reflect.Method aMethod,
                                                    java.lang.Object anObject,
                                                    java.lang.Exception ex)

methodNotValid

public static QueryException methodNotValid(java.lang.Object aReceiver,
                                            java.lang.String methodName)

mustInstantiateValueholders

public static QueryException mustInstantiateValueholders()

noAttributesForReportQuery

public static QueryException noAttributesForReportQuery(DatabaseQuery query)
Oct 19, 2000 JED Added this method and exception value

noConcreteClassIndicated

public static QueryException noConcreteClassIndicated(DatabaseRow row,
                                                      DatabaseQuery query)

noCursorSupport

public static QueryException noCursorSupport(DatabaseQuery query)

noDescriptorForClassFromInheritancePolicy

public static QueryException noDescriptorForClassFromInheritancePolicy(DatabaseQuery query,
                                                                       java.lang.Class referenceClass)

noExpressionBuilderFound

public static QueryException noExpressionBuilderFound(Expression expression)

nullPrimaryKeyInBuildingObject

public static QueryException nullPrimaryKeyInBuildingObject(DatabaseQuery query,
                                                            DatabaseRow databaseRow)

objectComparisonsCannotBeParameterized

public static QueryException objectComparisonsCannotBeParameterized(Expression expression)

objectToInsertIsEmpty

public static QueryException objectToInsertIsEmpty(oracle.toplink.internal.helper.DatabaseTable table)

objectToModifyNotSpecified

public static QueryException objectToModifyNotSpecified(DatabaseQuery query)

outerJoinIsOnlyValidForOneToOneMappings

public static QueryException outerJoinIsOnlyValidForOneToOneMappings(DatabaseMapping mapping)

queryNotDefined

public static QueryException queryNotDefined()

querySentToInactiveUnitOfWork

public static QueryException querySentToInactiveUnitOfWork(DatabaseQuery query)

readBeyondStream

public static QueryException readBeyondStream(DatabaseQuery query)

redirectionClassOrMethodNotSet

public static QueryException redirectionClassOrMethodNotSet(DatabaseQuery query)

redirectionMethodError

public static QueryException redirectionMethodError(java.lang.Exception exception,
                                                    DatabaseQuery query)

redirectionMethodNotDefinedCorrectly

public static QueryException redirectionMethodNotDefinedCorrectly(java.lang.Class methodClass,
                                                                  java.lang.String methodName,
                                                                  java.lang.Exception exception,
                                                                  DatabaseQuery query)

referenceClassMissing

public static QueryException referenceClassMissing(DatabaseQuery query)

refreshNotPossibleWithoutCache

public static QueryException refreshNotPossibleWithoutCache(DatabaseQuery query)

reportQueryResultSizeMismatch

public static QueryException reportQueryResultSizeMismatch(int expected,
                                                           int retrieved)

reportQueryResultWithoutPKs

public static QueryException reportQueryResultWithoutPKs(ReportQueryResult result)

parameterNameMismatch

public static QueryException parameterNameMismatch(java.lang.String badParameterName)

selectionObjectCannotBeNull

public static QueryException selectionObjectCannotBeNull(DatabaseQuery query)

sizeOnlySupportedOnExpressionQueries

public static QueryException sizeOnlySupportedOnExpressionQueries(DatabaseQuery query)

sqlStatementNotSetProperly

public static QueryException sqlStatementNotSetProperly(DatabaseQuery query)

typeMismatchBetweenAttributeAndConstantOnExpression

public static QueryException typeMismatchBetweenAttributeAndConstantOnExpression(java.lang.Class constantClass,
                                                                                 java.lang.Class attributeClass)

unnamedQueryOnSessionBroker

public static QueryException unnamedQueryOnSessionBroker(DatabaseQuery query)

unsupportedMappingForObjectComparison

public static QueryException unsupportedMappingForObjectComparison(DatabaseMapping mapping,
                                                                   Expression expression)

mustBeOneToOneOrOneToManyMapping

public static QueryException mustBeOneToOneOrOneToManyMapping()