FileDocCategorySizeDatePackage
QueryException.javaAPI DocGlassfish v2 API66068Tue May 22 16:54:18 BST 2007oracle.toplink.essentials.exceptions

QueryException

public class QueryException extends ValidationException

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

Fields Summary
protected transient DatabaseQuery
query
protected transient AbstractRecord
queryArguments
public static final int
ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED
public static final int
AGGREGATE_OBJECT_CANNOT_BE_DELETED
public static final int
ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION
public static final int
BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT
public static final int
BACKUP_CLONE_IS_ORIGINAL_FROM_SELF
public static final int
BATCH_READING_NOT_SUPPORTED
public static final int
DESCRIPTOR_IS_MISSING
public static final int
DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY
public static final int
INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM
public static final int
INVALID_QUERY
public static final int
INVALID_QUERY_KEY_IN_EXPRESSION
public static final int
INVALID_QUERY_ON_SERVER_SESSION
public static final int
NO_CONCRETE_CLASS_INDICATED
public static final int
NO_CURSOR_SUPPORT
public static final int
OBJECT_TO_INSERT_IS_EMPTY
public static final int
OBJECT_TO_MODIFY_NOT_SPECIFIED
public static final int
QUERY_NOT_DEFINED
public static final int
QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK
public static final int
READ_BEYOND_QUERY
public static final int
REFERENCE_CLASS_MISSING
public static final int
REFRESH_NOT_POSSIBLE_WITHOUT_CACHE
public static final int
SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES
public static final int
SQL_STATEMENT_NOT_SET_PROPERLY
public static final int
INVALID_QUERY_ITEM
public static final int
SELECTION_OBJECT_CANNOT_BE_NULL
public static final int
UNNAMED_QUERY_ON_SESSION_BROKER
public static final int
REPORT_RESULT_WITHOUT_PKS
public static final int
NULL_PRIMARY_KEY_IN_BUILDING_OBJECT
public static final int
NO_DESCRIPTOR_FOR_SUBCLASS
public static final int
CANNOT_DELETE_READ_ONLY_OBJECT
public static final int
INVALID_OPERATOR
public static final int
ILLEGAL_USE_OF_GETFIELD
public static final int
ILLEGAL_USE_OF_GETTABLE
public static final int
REPORT_QUERY_RESULT_SIZE_MISMATCH
public static final int
CANNOT_CACHE_PARTIAL_OBJECT
public static final int
OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE
public static final int
CANNOT_ADD_TO_CONTAINER
public static final int
METHOD_INVOCATION_FAILED
public static final int
CANNOT_CREATE_CLONE
public static final int
METHOD_NOT_VALID
public static final int
METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS
public static final int
COULD_NOT_INSTANTIATE_CONTAINER_CLASS
public static final int
MAP_KEY_NOT_COMPARABLE
public static final int
CANNOT_ACCESS_METHOD_ON_OBJECT
public static final int
CALLED_METHOD_THREW_EXCEPTION
public static final int
INVALID_OPERATION
public static final int
CANNOT_REMOVE_FROM_CONTAINER
public static final int
CANNOT_ADD_ELEMENT
public static final int
BACKUP_CLONE_DELETED
public static final int
CANNOT_ACCESS_FIELD_ON_OBJECT
public static final int
CANNOT_COMPARE_TABLES_IN_EXPRESSION
public static final int
INVALID_TABLE_FOR_FIELD_IN_EXPRESSION
public static final int
INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION
public static final int
INVALID_USE_OF_ANY_OF_IN_EXPRESSION
public static final int
CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING
public static final int
ILL_FORMED_EXPRESSION
public static final int
CANNOT_CONFORM_EXPRESSION
public static final int
INVALID_OPERATOR_FOR_OBJECT_EXPRESSION
public static final int
UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON
public static final int
OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED
public static final int
INCORRECT_CLASS_FOR_OBJECT_COMPARISON
public static final int
CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL
public static final int
INVALID_DATABASE_CALL
public static final int
INVALID_DATABASE_ACCESSOR
public static final int
METHOD_DOES_NOT_EXIST_ON_EXPRESSION
public static final int
IN_CANNOT_BE_PARAMETERIZED
public static final int
REDIRECTION_CLASS_OR_METHOD_NOT_SET
public static final int
REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY
public static final int
REDIRECTION_METHOD_ERROR
public static final int
EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH
public static final int
NO_ATTRIBUTES_FOR_REPORT_QUERY
public static final int
NO_EXPRESSION_BUILDER_CLASS_FOUND
public static final int
CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY
public static final int
TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION
public static final int
MUST_INSTANTIATE_VALUEHOLDERS
public static final int
PARAMETER_NAME_MISMATCH
public static final int
CLONE_METHOD_REQUIRED
public static final int
CLONE_METHOD_INACCESSIBLE
public static final int
CLONE_METHOD_THORW_EXCEPTION
public static final int
UNEXPECTED_INVOCATION
public static final int
JOINING_ACROSS_INHERITANCE_WITH_MULTIPLE_TABLES
public static final int
MULTIPLE_ROWS_DETECTED_FROM_SINGLE_OBJECT_READ
public static final int
HISTORICAL_QUERIES_MUST_PRESERVE_GLOBAL_CACHE
public static final int
HISTORICAL_QUERIES_ONLY_SUPPORTED_ON_ORACLE
public static final int
INVALID_QUERY_ON_HISTORICAL_SESSION
public static final int
OBJECT_DOES_NOT_EXIST_IN_CACHE
public static final int
MUST_USE_CURSOR_STREAM_POLICY
public static final int
CLASS_PK_DOES_NOT_EXIST_IN_CACHE
public static final int
UPDATE_STATEMENTS_NOT_SPECIFIED
public static final int
INHERITANCE_WITH_MULTIPLE_TABLES_NOT_SUPPORTED
public static final int
QUERY_FETCHGROUP_NOT_DEFINED_IN_DESCRIPTOR
public static final int
CANNOT_CONFORM_UNFETCHED_ATTRIBUTE
public static final int
FETCH_GROUP_ATTRIBUTE_NOT_MAPPED
public static final int
FETCH_GROUP_NOT_SUPPORT_ON_REPORT_QUERY
public static final int
FETCH_GROUP_NOT_SUPPORT_ON_PARTIAL_ATTRIBUTE_READING
public static final int
FETCHGROUP_VALID_ONLY_IF_FETCHGROUP_MANAGER_IN_DESCRIPTOR
public static final int
ISOLATED_QUERY_EXECUTED_ON_SERVER_SESSION
public static final int
NO_CALL_OR_INTERACTION_SPECIFIED
public static final int
CANNOT_CACHE_CURSOR_RESULTS_ON_QUERY
public static final int
CANNOT_CACHE_ISOLATED_DATA_ON_QUERY
public static final int
MAPPING_FOR_EXPRESSION_DOES_NOT_SUPPORT_JOINING
public static final int
SPECIFIED_PARTIAL_ATTRIBUTE_DOES_NOT_EXIST
public static final int
INVALID_BUILDER_IN_QUERY
public static final int
INVALID_EXPRESSION
public static final int
INVALID_CONTAINER_CLASS
public static final int
INCORRECT_QUERY_FOUND
public static final int
CLEAR_QUERY_RESULTS_NOT_SUPPORTED
public static final int
CANNOT_CONFORM_AND_CACHE_QUERY_RESULTS
public static final int
REFLECTIVE_CALL_ON_TOPLINK_CLASS_FAILED
public static final int
BATCH_READING_NOT_SUPPORTED_WITH_CALL
public static final int
REFRESH_NOT_POSSIBLE_WITH_CHECK_CACHE_ONLY
public static final int
DISCRIMINATOR_COLUMN_NOT_SELECTED
public static final int
DELETE_ALL_QUERY_SPECIFIES_OBJECTS_BUT_NOT_SELECTION_CRITERIA
public static final int
NAMED_ARGUMENT_NOT_FOUND_IN_QUERY_PARAMETERS
public static final int
UPDATE_ALL_QUERY_ADD_UPDATE_FIELD_IS_NULL
public static final int
UPDATE_ALL_QUERY_ADD_UPDATE_DOES_NOT_DEFINE_FIELD
public static final int
UPDATE_ALL_QUERY_ADD_UPDATE_DEFINES_WRONG_FIELD
public static final int
POLYMORPHIC_REPORT_ITEM_NOT_SUPPORTED
public static final int
EXCEPTION_WHILE_USING_CONSTRUCTOR_EXPRESSION
public static final int
TEMP_TABLES_NOT_SUPPORTED
public static final int
MAPPING_FOR_FIELDRESULT_NOT_FOUND
public static final int
JOIN_EXPRESSIONS_NOT_APPLICABLE_ON_NON_OBJECT_REPORT_ITEM
public static final int
DISTINCT_COUNT_ON_OUTER_JOINED_COMPOSITE_PK
Constructors Summary
protected QueryException(String message)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

                  
       
        super(message);
    
protected QueryException(String message, DatabaseQuery query)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        super(message);
        this.query = query;
    
Methods Summary
public static oracle.toplink.essentials.exceptions.QueryExceptionadditionalSizeQueryNotSpecified(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED, args), query);
        queryException.setErrorCode(ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionaggregateObjectCannotBeDeletedOrWritten(oracle.toplink.essentials.descriptors.ClassDescriptor descriptor, oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = { descriptor.toString(), CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, AGGREGATE_OBJECT_CANNOT_BE_DELETED, args), query);
        queryException.setErrorCode(AGGREGATE_OBJECT_CANNOT_BE_DELETED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionargumentSizeMismatchInQueryAndQueryDefinition(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION, args), query);
        queryException.setErrorCode(ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionbackupCloneIsDeleted(java.lang.Object clone)

        Object[] args = { clone, clone.getClass(), new Integer(System.identityHashCode(clone)), CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, BACKUP_CLONE_DELETED, args));
        queryException.setErrorCode(BACKUP_CLONE_DELETED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionbackupCloneIsOriginalFromParent(java.lang.Object clone)

        // need to be verified
        Object[] args = { clone, clone.getClass(), new Integer(System.identityHashCode(clone)), CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT, args));
        queryException.setErrorCode(BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionbackupCloneIsOriginalFromSelf(java.lang.Object clone)

        Object[] args = { clone, clone.getClass(), new Integer(System.identityHashCode(clone)), CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, BACKUP_CLONE_IS_ORIGINAL_FROM_SELF, args));
        queryException.setErrorCode(BACKUP_CLONE_IS_ORIGINAL_FROM_SELF);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionbatchReadingNotSupported(oracle.toplink.essentials.mappings.DatabaseMapping mapping, oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = { mapping };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, BATCH_READING_NOT_SUPPORTED, args), query);
        queryException.setErrorCode(BATCH_READING_NOT_SUPPORTED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionbatchReadingNotSupported(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = { };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, BATCH_READING_NOT_SUPPORTED_WITH_CALL, args), query);
        queryException.setErrorCode(BATCH_READING_NOT_SUPPORTED_WITH_CALL);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncalledMethodThrewException(java.lang.reflect.Method aMethod, java.lang.Object object, java.lang.Exception ex)

        Object[] args = { aMethod, object, object.getClass() };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CALLED_METHOD_THREW_EXCEPTION, args));
        queryException.setErrorCode(CALLED_METHOD_THREW_EXCEPTION);
        queryException.setInternalException(ex);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.ValidationExceptioncannotAccessFieldOnObject(java.lang.reflect.Field aField, java.lang.Object anObject)

        Object[] args = { aField, anObject, anObject.getClass() };

        ValidationException validationException = new ValidationException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_ACCESS_FIELD_ON_OBJECT, args));
        validationException.setErrorCode(CANNOT_ACCESS_FIELD_ON_OBJECT);
        return validationException;
    
public static oracle.toplink.essentials.exceptions.ValidationExceptioncannotAccessMethodOnObject(java.lang.reflect.Method aMethod, java.lang.Object anObject)

        Object[] args = { aMethod, anObject, anObject.getClass() };

        ValidationException validationException = new ValidationException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_ACCESS_METHOD_ON_OBJECT, args));
        validationException.setErrorCode(CANNOT_ACCESS_METHOD_ON_OBJECT);
        return validationException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotAddElement(java.lang.Object anObject, java.lang.Object aContainer, java.lang.Exception ex)

        Object[] args = { anObject, anObject.getClass(), aContainer.getClass() };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_ADD_ELEMENT, args));
        queryException.setErrorCode(CANNOT_ADD_ELEMENT);
        queryException.setInternalException(ex);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotAddToContainer(java.lang.Object anObject, java.lang.Object aContainer, oracle.toplink.essentials.internal.queryframework.ContainerPolicy policy)

        Object[] args = { anObject, anObject.getClass(), aContainer.getClass(), policy };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_ADD_TO_CONTAINER, args));
        queryException.setErrorCode(CANNOT_ADD_TO_CONTAINER);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotCacheCursorResultsOnQuery(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_CACHE_CURSOR_RESULTS_ON_QUERY, args));
        queryException.setQuery(query);
        queryException.setErrorCode(CANNOT_CACHE_CURSOR_RESULTS_ON_QUERY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotCacheIsolatedDataOnQuery(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_CACHE_ISOLATED_DATA_ON_QUERY, args));
        queryException.setQuery(query);
        queryException.setErrorCode(CANNOT_CACHE_ISOLATED_DATA_ON_QUERY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotCachePartialObjects(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_CACHE_PARTIAL_OBJECT, args));
        queryException.setQuery(query);
        queryException.setErrorCode(CANNOT_CACHE_PARTIAL_OBJECT);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotCompareTablesInExpression(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_COMPARE_TABLES_IN_EXPRESSION, args));
        queryException.setErrorCode(CANNOT_COMPARE_TABLES_IN_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotCompareTargetForeignKeysToNull(oracle.toplink.essentials.expressions.Expression expression, java.lang.Object value, oracle.toplink.essentials.mappings.DatabaseMapping mapping)

        Object[] args = { expression, mapping, value, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL, args));
        queryException.setErrorCode(CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotConformAndCacheQueryResults(oracle.toplink.essentials.queryframework.ReadQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_CONFORM_AND_CACHE_QUERY_RESULTS, args), query);
        queryException.setErrorCode(CANNOT_CONFORM_AND_CACHE_QUERY_RESULTS);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotConformExpression()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_CONFORM_EXPRESSION, args));
        queryException.setErrorCode(CANNOT_CONFORM_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotConformUnfetchedAttribute(java.lang.String attrbuteName)

        Object[] args = { attrbuteName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_CONFORM_UNFETCHED_ATTRIBUTE, args));
        queryException.setErrorCode(CANNOT_CONFORM_UNFETCHED_ATTRIBUTE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotCreateClone(oracle.toplink.essentials.internal.queryframework.ContainerPolicy policy, java.lang.Object anObject)

        Object[] args = { anObject, anObject.getClass(), policy };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_CREATE_CLONE, args));
        queryException.setErrorCode(CANNOT_CREATE_CLONE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotDeleteReadOnlyObject(java.lang.Object anObject)

        Object[] args = { anObject.getClass().toString() };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_DELETE_READ_ONLY_OBJECT, args));
        queryException.setErrorCode(CANNOT_DELETE_READ_ONLY_OBJECT);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotQueryAcrossAVariableOneToOneMapping(oracle.toplink.essentials.mappings.DatabaseMapping mapping, oracle.toplink.essentials.descriptors.ClassDescriptor descriptor)

        Object[] args = { descriptor.toString(), mapping.toString(), CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING, args));
        queryException.setErrorCode(CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotRemoveFromContainer(java.lang.Object anObject, java.lang.Object aContainer, oracle.toplink.essentials.internal.queryframework.ContainerPolicy policy)

        Object[] args = { anObject, anObject.getClass(), aContainer.getClass(), policy };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_REMOVE_FROM_CONTAINER, args));
        queryException.setErrorCode(CANNOT_REMOVE_FROM_CONTAINER);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncannotSetShouldCheckCacheOnlyOnReportQuery()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY, args));
        queryException.setErrorCode(CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionclassPkDoesNotExistInCache(java.lang.Class theClass, java.util.Vector primaryKey)

        Object[] args = { theClass, primaryKey };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CLASS_PK_DOES_NOT_EXIST_IN_CACHE, args));
        queryException.setErrorCode(CLASS_PK_DOES_NOT_EXIST_IN_CACHE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionclearQueryResultsNotSupported(oracle.toplink.essentials.queryframework.ReadQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CLEAR_QUERY_RESULTS_NOT_SUPPORTED, args), query);
        queryException.setErrorCode(CLEAR_QUERY_RESULTS_NOT_SUPPORTED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncloneMethodInaccessible()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CLONE_METHOD_INACCESSIBLE, args));
        queryException.setErrorCode(CLONE_METHOD_INACCESSIBLE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncloneMethodRequired()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CLONE_METHOD_REQUIRED, args));
        queryException.setErrorCode(CLONE_METHOD_REQUIRED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncloneMethodThrowException(java.lang.Throwable exception)

        Object[] args = { exception };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, CLONE_METHOD_THORW_EXCEPTION, args));
        queryException.setErrorCode(CLONE_METHOD_THORW_EXCEPTION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioncouldNotInstantiateContainerClass(java.lang.Class aClass, java.lang.Exception exception)

        Object[] args = { aClass.toString() };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, COULD_NOT_INSTANTIATE_CONTAINER_CLASS, args));
        queryException.setErrorCode(COULD_NOT_INSTANTIATE_CONTAINER_CLASS);
        queryException.setInternalException(exception);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptiondeleteAllQuerySpecifiesObjectsButNotSelectionCriteria(oracle.toplink.essentials.descriptors.ClassDescriptor descriptor, oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.String objects)

        Object[] args = { descriptor.toString(), CR, objects };
  
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, DELETE_ALL_QUERY_SPECIFIES_OBJECTS_BUT_NOT_SELECTION_CRITERIA, args), query);
        queryException.setErrorCode(DELETE_ALL_QUERY_SPECIFIES_OBJECTS_BUT_NOT_SELECTION_CRITERIA);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptiondescriptorIsMissing(java.lang.Class referenceClass, oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = { referenceClass };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, DESCRIPTOR_IS_MISSING, args), query);
        queryException.setErrorCode(DESCRIPTOR_IS_MISSING);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptiondescriptorIsMissingForNamedQuery(java.lang.Class domainClass, java.lang.String queryName)

        Object[] args = { domainClass.getName(), queryName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY, args));
        queryException.setErrorCode(DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptiondiscriminatorColumnNotSelected(java.lang.String expectedColumn, java.lang.String sqlResultSetMapping)

        Object[] args = { expectedColumn, sqlResultSetMapping };
    
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, DISCRIMINATOR_COLUMN_NOT_SELECTED, args));
        queryException.setErrorCode(DISCRIMINATOR_COLUMN_NOT_SELECTED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptiondistinctCountOnOuterJoinedCompositePK(oracle.toplink.essentials.descriptors.ClassDescriptor descr, oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = { descr.getJavaClass().getName(), descr.toString() };
        
        QueryException queryException = new QueryException(
            ExceptionMessageGenerator.buildMessage(
                QueryException.class, DISTINCT_COUNT_ON_OUTER_JOINED_COMPOSITE_PK, args), 
            query);
        queryException.setErrorCode(DISTINCT_COUNT_ON_OUTER_JOINED_COMPOSITE_PK);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionexampleAndReferenceObjectClassMismatch(java.lang.Class exampleObjectClass, java.lang.Class referenceObjectClass, oracle.toplink.essentials.queryframework.DatabaseQuery query)
Oct 18, 2000 JED Added this method and exception value

        Object[] args = { exampleObjectClass, referenceObjectClass };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH, args));
        queryException.setErrorCode(EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH);
        queryException.setQuery(query);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionexceptionWhileUsingConstructorExpression(java.lang.Exception thrownException, oracle.toplink.essentials.queryframework.DatabaseQuery query)
An exception was throwing while using a ReportQuery with a constructor expession

        Object[] args = { thrownException };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, EXCEPTION_WHILE_USING_CONSTRUCTOR_EXPRESSION, args));
        queryException.setErrorCode(EXCEPTION_WHILE_USING_CONSTRUCTOR_EXPRESSION);
        queryException.setQuery(query);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionfetchGroupAttributeNotMapped(java.lang.String attrbuteName)

        Object[] args = { attrbuteName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, FETCH_GROUP_ATTRIBUTE_NOT_MAPPED, args));
        queryException.setErrorCode(FETCH_GROUP_ATTRIBUTE_NOT_MAPPED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionfetchGroupNotDefinedInDescriptor(java.lang.String fetchGroupName)

        Object[] args = { fetchGroupName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, QUERY_FETCHGROUP_NOT_DEFINED_IN_DESCRIPTOR, args));
        queryException.setErrorCode(QUERY_FETCHGROUP_NOT_DEFINED_IN_DESCRIPTOR);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionfetchGroupNotSupportOnPartialAttributeReading()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, FETCH_GROUP_NOT_SUPPORT_ON_PARTIAL_ATTRIBUTE_READING, args));
        queryException.setErrorCode(FETCH_GROUP_NOT_SUPPORT_ON_PARTIAL_ATTRIBUTE_READING);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionfetchGroupNotSupportOnReportQuery()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, FETCH_GROUP_NOT_SUPPORT_ON_REPORT_QUERY, args));
        queryException.setErrorCode(FETCH_GROUP_NOT_SUPPORT_ON_REPORT_QUERY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionfetchGroupValidOnlyIfFetchGroupManagerInDescriptor(java.lang.String descriptorName, java.lang.String queryName)

        Object[] args = { descriptorName, queryName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, FETCHGROUP_VALID_ONLY_IF_FETCHGROUP_MANAGER_IN_DESCRIPTOR, args));
        queryException.setErrorCode(FETCHGROUP_VALID_ONLY_IF_FETCHGROUP_MANAGER_IN_DESCRIPTOR);
        return queryException;
    
public java.lang.StringgetMessage()
PUBLIC: Return the exception error message. TopLink error messages are multi-line so that detail descriptions of the exception are given.

        if (getQuery() == null) {
            return super.getMessage();
        } else {
            return super.getMessage() + cr() + getIndentationString() + ExceptionMessageGenerator.getHeader("QueryHeader") + getQuery().toString();
        }
    
public oracle.toplink.essentials.queryframework.DatabaseQuerygetQuery()
PUBLIC: Return the query in which the problem was detected.

        return query;
    
public oracle.toplink.essentials.sessions.RecordgetQueryArgumentsRecord()
PUBLIC: Return the query argements used in the original query when exception is thrown

        return queryArguments;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionhistoricalQueriesMustPreserveGlobalCache()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, HISTORICAL_QUERIES_MUST_PRESERVE_GLOBAL_CACHE, args));
        queryException.setErrorCode(HISTORICAL_QUERIES_MUST_PRESERVE_GLOBAL_CACHE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionhistoricalQueriesOnlySupportedOnOracle()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, HISTORICAL_QUERIES_ONLY_SUPPORTED_ON_ORACLE, args));
        queryException.setErrorCode(HISTORICAL_QUERIES_ONLY_SUPPORTED_ON_ORACLE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionillFormedExpression(oracle.toplink.essentials.expressions.Expression queryKey)

        Object[] args = { queryKey };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, ILL_FORMED_EXPRESSION, args));
        queryException.setErrorCode(ILL_FORMED_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionillegalUseOfGetField(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, ILLEGAL_USE_OF_GETFIELD, args));
        queryException.setErrorCode(ILLEGAL_USE_OF_GETFIELD);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionillegalUseOfGetTable(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, ILLEGAL_USE_OF_GETTABLE, args));
        queryException.setErrorCode(ILLEGAL_USE_OF_GETTABLE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninCannotBeParameterized(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException exception = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, IN_CANNOT_BE_PARAMETERIZED, args), query);
        exception.setErrorCode(IN_CANNOT_BE_PARAMETERIZED);
        return exception;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionincorrectClassForObjectComparison(oracle.toplink.essentials.expressions.Expression expression, java.lang.Object value, oracle.toplink.essentials.mappings.DatabaseMapping mapping)

        Object[] args = { expression, mapping, value, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INCORRECT_CLASS_FOR_OBJECT_COMPARISON, args));
        queryException.setErrorCode(INCORRECT_CLASS_FOR_OBJECT_COMPARISON);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionincorrectQueryObjectFound(oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.Class expectedQueryClass)

        Object[] args = { expectedQueryClass, query.getClass() };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INCORRECT_QUERY_FOUND, args), query);
        queryException.setErrorCode(INCORRECT_QUERY_FOUND);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionincorrectSizeQueryForCursorStream(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM, args), query);
        queryException.setErrorCode(INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninheritanceWithMultipleTablesNotSupported()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INHERITANCE_WITH_MULTIPLE_TABLES_NOT_SUPPORTED, args));
        queryException.setErrorCode(INHERITANCE_WITH_MULTIPLE_TABLES_NOT_SUPPORTED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidBuilderInQuery(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_BUILDER_IN_QUERY, args), query);
        queryException.setErrorCode(INVALID_BUILDER_IN_QUERY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidContainerClass(java.lang.Class containerGiven, java.lang.Class containerRequired)

        Object[] args = { containerGiven, containerRequired };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_CONTAINER_CLASS, args));
        queryException.setErrorCode(INVALID_CONTAINER_CLASS);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidDatabaseAccessor(oracle.toplink.essentials.internal.databaseaccess.Accessor accessor)

        Object[] args = { accessor };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_DATABASE_ACCESSOR, args));
        queryException.setErrorCode(INVALID_DATABASE_ACCESSOR);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidDatabaseCall(oracle.toplink.essentials.queryframework.Call call)

        Object[] args = { call };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_DATABASE_CALL, args));
        queryException.setErrorCode(INVALID_DATABASE_CALL);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidExpression(java.lang.Object expression)

        Object[] args = { expression };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_EXPRESSION, args));
        queryException.setErrorCode(INVALID_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidExpressionForQueryItem(oracle.toplink.essentials.expressions.Expression expression, oracle.toplink.essentials.queryframework.DatabaseQuery owner)

        Object[] args = { expression };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_QUERY_ITEM, args), owner);
        queryException.setErrorCode(INVALID_QUERY_ITEM);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidOperation(java.lang.String operation)

        Object[] args = { operation };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_OPERATION, args));
        queryException.setErrorCode(INVALID_OPERATION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidOperator(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_OPERATOR, args));
        queryException.setErrorCode(INVALID_OPERATOR);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidOperatorForObjectComparison(oracle.toplink.essentials.expressions.Expression expression)

        Object[] args = { expression, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_OPERATOR_FOR_OBJECT_EXPRESSION, args));
        queryException.setErrorCode(INVALID_OPERATOR_FOR_OBJECT_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidQuery(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_QUERY, args), query);
        queryException.setErrorCode(INVALID_QUERY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidQueryKeyInExpression(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_QUERY_KEY_IN_EXPRESSION, args));
        queryException.setErrorCode(INVALID_QUERY_KEY_IN_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidQueryOnHistoricalSession(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_QUERY_ON_HISTORICAL_SESSION, args), query);
        queryException.setErrorCode(INVALID_QUERY_ON_HISTORICAL_SESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidQueryOnServerSession(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_QUERY_ON_SERVER_SESSION, args), query);
        queryException.setErrorCode(INVALID_QUERY_ON_SERVER_SESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidTableForFieldInExpression(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_TABLE_FOR_FIELD_IN_EXPRESSION, args));
        queryException.setErrorCode(INVALID_TABLE_FOR_FIELD_IN_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidUseOfAnyOfInExpression(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_USE_OF_ANY_OF_IN_EXPRESSION, args));
        queryException.setErrorCode(INVALID_USE_OF_ANY_OF_IN_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptioninvalidUseOfToManyQueryKeyInExpression(java.lang.Object data)

        Object[] args = { data };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION, args));
        queryException.setErrorCode(INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionisolatedQueryExecutedOnServerSession()

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, ISOLATED_QUERY_EXECUTED_ON_SERVER_SESSION, new Object[] {  }));
        queryException.setErrorCode(ISOLATED_QUERY_EXECUTED_ON_SERVER_SESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionjoinExpressionsNotApplicableOnNonObjectReportItem(java.lang.String expressionType, java.lang.String itemName)

        Object[] args = { expressionType, itemName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, JOIN_EXPRESSIONS_NOT_APPLICABLE_ON_NON_OBJECT_REPORT_ITEM, args));
        queryException.setErrorCode(JOIN_EXPRESSIONS_NOT_APPLICABLE_ON_NON_OBJECT_REPORT_ITEM);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionjoiningAcrossInheritanceClassWithMultipleTablesNotSupported(oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.Class joinClass)

        Object[] args = { query, joinClass };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, JOINING_ACROSS_INHERITANCE_WITH_MULTIPLE_TABLES, args));
        queryException.setErrorCode(JOINING_ACROSS_INHERITANCE_WITH_MULTIPLE_TABLES);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.ValidationExceptionmapKeyNotComparable(java.lang.Object anObject, java.lang.Object aContainer)

        Object[] args = { anObject.toString(), anObject.getClass(), aContainer, aContainer.getClass() };

        ValidationException validationException = new ValidationException(ExceptionMessageGenerator.buildMessage(QueryException.class, MAP_KEY_NOT_COMPARABLE, args));
        validationException.setErrorCode(MAP_KEY_NOT_COMPARABLE);
        return validationException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmappingForExpressionDoesNotSupportJoining(java.lang.Object expression)

        Object[] args = { expression };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, MAPPING_FOR_EXPRESSION_DOES_NOT_SUPPORT_JOINING, args));
        queryException.setErrorCode(MAPPING_FOR_EXPRESSION_DOES_NOT_SUPPORT_JOINING);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmappingForFieldResultNotFound(java.lang.String[] attributeNames, int currentString)

        String attributeName ="";
        for(int i=0; i<attributeNames.length;i++){
            attributeName=attributeName+attributeNames[i];
        }
        Object[] args = { attributeName, attributeNames[currentString] };
    
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, MAPPING_FOR_FIELDRESULT_NOT_FOUND, args));
        queryException.setErrorCode(MAPPING_FOR_FIELDRESULT_NOT_FOUND);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmethodDoesNotExistInContainerClass(java.lang.String methodName, java.lang.Class aClass)

        Object[] args = { methodName, aClass };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS, args));
        queryException.setErrorCode(METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmethodDoesNotExistOnExpression(java.lang.String methodName, java.lang.Class[] argTypes)

        Object[] args = { methodName, argTypes };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, METHOD_DOES_NOT_EXIST_ON_EXPRESSION, args));
        queryException.setErrorCode(METHOD_DOES_NOT_EXIST_ON_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmethodInvocationFailed(java.lang.reflect.Method aMethod, java.lang.Object anObject, java.lang.Exception ex)

        Object[] args = { aMethod, anObject, anObject.getClass() };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, METHOD_INVOCATION_FAILED, args));
        queryException.setErrorCode(METHOD_INVOCATION_FAILED);
        queryException.setInternalException(ex);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmethodNotValid(java.lang.Object aReceiver, java.lang.String methodName)

        Object[] args = { methodName, aReceiver };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, METHOD_NOT_VALID, args));
        queryException.setErrorCode(METHOD_NOT_VALID);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmultipleRowsDetectedFromReadObjectQuery()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, MULTIPLE_ROWS_DETECTED_FROM_SINGLE_OBJECT_READ, args));
        queryException.setErrorCode(MULTIPLE_ROWS_DETECTED_FROM_SINGLE_OBJECT_READ);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmustInstantiateValueholders()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, MUST_INSTANTIATE_VALUEHOLDERS, args));
        queryException.setErrorCode(MUST_INSTANTIATE_VALUEHOLDERS);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionmustUseCursorStreamPolicy()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, MUST_USE_CURSOR_STREAM_POLICY, args));
        queryException.setErrorCode(MUST_USE_CURSOR_STREAM_POLICY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnamedArgumentNotFoundInQueryParameters(java.lang.String argumentName)

        Object[] args = {argumentName};
        
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, NAMED_ARGUMENT_NOT_FOUND_IN_QUERY_PARAMETERS, args));
        queryException.setErrorCode(NAMED_ARGUMENT_NOT_FOUND_IN_QUERY_PARAMETERS);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnoAttributesForReportQuery(oracle.toplink.essentials.queryframework.DatabaseQuery query)
Oct 19, 2000 JED Added this method and exception value

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, NO_ATTRIBUTES_FOR_REPORT_QUERY, args));
        queryException.setErrorCode(NO_ATTRIBUTES_FOR_REPORT_QUERY);
        queryException.setQuery(query);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnoCallOrInteractionSpecified()

        Object[] args = {  };
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, QueryException.NO_CALL_OR_INTERACTION_SPECIFIED, args));
        queryException.setErrorCode(NO_CALL_OR_INTERACTION_SPECIFIED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnoConcreteClassIndicated(oracle.toplink.essentials.internal.sessions.AbstractRecord row, oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = { row };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, NO_CONCRETE_CLASS_INDICATED, args), query);
        queryException.setErrorCode(NO_CONCRETE_CLASS_INDICATED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnoCursorSupport(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, NO_CURSOR_SUPPORT, args), query);
        queryException.setErrorCode(NO_CURSOR_SUPPORT);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnoDescriptorForClassFromInheritancePolicy(oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.Class referenceClass)

        Object[] args = { String.valueOf(referenceClass) };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, NO_DESCRIPTOR_FOR_SUBCLASS, args), query);
        queryException.setErrorCode(NO_DESCRIPTOR_FOR_SUBCLASS);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnoExpressionBuilderFound(oracle.toplink.essentials.expressions.Expression expression)

        Object[] args = { expression, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, NO_EXPRESSION_BUILDER_CLASS_FOUND, args));
        queryException.setErrorCode(NO_EXPRESSION_BUILDER_CLASS_FOUND);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionnullPrimaryKeyInBuildingObject(oracle.toplink.essentials.queryframework.DatabaseQuery query, oracle.toplink.essentials.internal.sessions.AbstractRecord databaseRow)

        Object[] args = { databaseRow };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, NULL_PRIMARY_KEY_IN_BUILDING_OBJECT, args), query);
        queryException.setErrorCode(NULL_PRIMARY_KEY_IN_BUILDING_OBJECT);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionobjectComparisonsCannotBeParameterized(oracle.toplink.essentials.expressions.Expression expression)

        Object[] args = { expression, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED, args));
        queryException.setErrorCode(OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionobjectDoesNotExistInCache(java.lang.Object object)

        Object[] args = { object };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, OBJECT_DOES_NOT_EXIST_IN_CACHE, args));
        queryException.setErrorCode(OBJECT_DOES_NOT_EXIST_IN_CACHE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionobjectToInsertIsEmpty(oracle.toplink.essentials.internal.helper.DatabaseTable table)

        Object[] args = { table };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, OBJECT_TO_INSERT_IS_EMPTY, args));
        queryException.setErrorCode(OBJECT_TO_INSERT_IS_EMPTY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionobjectToModifyNotSpecified(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, OBJECT_TO_MODIFY_NOT_SPECIFIED, args), query);
        queryException.setErrorCode(OBJECT_TO_MODIFY_NOT_SPECIFIED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionouterJoinIsOnlyValidForOneToOneMappings(oracle.toplink.essentials.mappings.DatabaseMapping mapping)

        Object[] args = { mapping.toString() };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE, args));
        queryException.setErrorCode(OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionparameterNameMismatch(java.lang.String badParameterName)

        Object[] args = { badParameterName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, PARAMETER_NAME_MISMATCH, args), null);
        queryException.setErrorCode(PARAMETER_NAME_MISMATCH);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionpolymorphicReportItemWithMultipletableNotSupported(java.lang.String itemName, oracle.toplink.essentials.expressions.Expression expression, oracle.toplink.essentials.queryframework.DatabaseQuery owner)

        Object[] args = { itemName, expression };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, POLYMORPHIC_REPORT_ITEM_NOT_SUPPORTED, args), owner);
        queryException.setErrorCode(POLYMORPHIC_REPORT_ITEM_NOT_SUPPORTED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionqueryNotDefined()

        Object[] args = { "", "" };
        return queryNotDefined(args);
    
public static oracle.toplink.essentials.exceptions.QueryExceptionqueryNotDefined(java.lang.String queryName)

        Object[] args = { queryName, "" };
        return queryNotDefined(args);
    
public static oracle.toplink.essentials.exceptions.QueryExceptionqueryNotDefined(java.lang.String queryName, java.lang.Class domainClass)

        Object[] args = { queryName, domainClass };
        return queryNotDefined(args);
    
private static oracle.toplink.essentials.exceptions.QueryExceptionqueryNotDefined(java.lang.Object[] args)

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, QUERY_NOT_DEFINED, args));
        queryException.setErrorCode(QUERY_NOT_DEFINED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionquerySentToInactiveUnitOfWork(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK, args), query);
        queryException.setErrorCode(QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionreadBeyondStream(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, READ_BEYOND_QUERY, args), query);
        queryException.setErrorCode(READ_BEYOND_QUERY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionredirectionClassOrMethodNotSet(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REDIRECTION_CLASS_OR_METHOD_NOT_SET, args), query);
        queryException.setErrorCode(REDIRECTION_CLASS_OR_METHOD_NOT_SET);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionredirectionMethodError(java.lang.Exception exception, oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REDIRECTION_METHOD_ERROR, args), query);
        queryException.setInternalException(exception);
        queryException.setErrorCode(REDIRECTION_METHOD_ERROR);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionredirectionMethodNotDefinedCorrectly(java.lang.Class methodClass, java.lang.String methodName, java.lang.Exception exception, oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = { methodClass, methodName, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY, args), query);
        queryException.setInternalException(exception);
        queryException.setErrorCode(REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionreferenceClassMissing(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REFERENCE_CLASS_MISSING, args), query);
        queryException.setErrorCode(REFERENCE_CLASS_MISSING);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionreflectiveCallOnTopLinkClassFailed(java.lang.String className, java.lang.Exception e)

        Object[] args = { className };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REFLECTIVE_CALL_ON_TOPLINK_CLASS_FAILED, args));
        queryException.setErrorCode(REFLECTIVE_CALL_ON_TOPLINK_CLASS_FAILED);
        queryException.setInternalException(e);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionrefreshNotPossibleWithCheckCacheOnly(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REFRESH_NOT_POSSIBLE_WITH_CHECK_CACHE_ONLY, args), query);
        queryException.setErrorCode(REFRESH_NOT_POSSIBLE_WITH_CHECK_CACHE_ONLY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionrefreshNotPossibleWithoutCache(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REFRESH_NOT_POSSIBLE_WITHOUT_CACHE, args), query);
        queryException.setErrorCode(REFRESH_NOT_POSSIBLE_WITHOUT_CACHE);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionreportQueryResultSizeMismatch(int expected, int retrieved)

        Object[] args = { new Integer(expected), new Integer(retrieved) };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REPORT_QUERY_RESULT_SIZE_MISMATCH, args));
        queryException.setErrorCode(REPORT_QUERY_RESULT_SIZE_MISMATCH);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionreportQueryResultWithoutPKs(oracle.toplink.essentials.queryframework.ReportQueryResult result)

        Object[] args = { result, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, REPORT_RESULT_WITHOUT_PKS, args), null);
        queryException.setErrorCode(REPORT_RESULT_WITHOUT_PKS);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionselectionObjectCannotBeNull(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, SELECTION_OBJECT_CANNOT_BE_NULL, args), query);
        queryException.setErrorCode(SELECTION_OBJECT_CANNOT_BE_NULL);
        return queryException;
    
public voidsetQuery(oracle.toplink.essentials.queryframework.DatabaseQuery query)
INTERNAL: Set the query in which the problem was detected.

        this.query = query;
    
public voidsetQueryArguments(oracle.toplink.essentials.internal.sessions.AbstractRecord queryArguments)
INTERNAL: Set the query argements used in the original query when exception is thrown

        this.queryArguments = queryArguments;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionsizeOnlySupportedOnExpressionQueries(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES, args), query);
        queryException.setErrorCode(SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionspecifiedPartialAttributeDoesNotExist(oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.String attributeName, java.lang.String targetClassName)

        Object[] args = { attributeName, targetClassName };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, SPECIFIED_PARTIAL_ATTRIBUTE_DOES_NOT_EXIST, args), query);
        queryException.setErrorCode(SPECIFIED_PARTIAL_ATTRIBUTE_DOES_NOT_EXIST);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionsqlStatementNotSetProperly(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, SQL_STATEMENT_NOT_SET_PROPERLY, args), query);
        queryException.setErrorCode(SQL_STATEMENT_NOT_SET_PROPERLY);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptiontempTablesNotSupported(oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.String platformClassName)

        Object[] args = { platformClassName };
    
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, TEMP_TABLES_NOT_SUPPORTED, args), query);
        queryException.setErrorCode(TEMP_TABLES_NOT_SUPPORTED);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptiontypeMismatchBetweenAttributeAndConstantOnExpression(java.lang.Class constantClass, java.lang.Class attributeClass)

        Object[] args = { constantClass, attributeClass };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION, args));
        queryException.setErrorCode(TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionunexpectedInvocation(java.lang.String message)

        Object[] args = { message };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UNEXPECTED_INVOCATION, args));
        queryException.setErrorCode(UNEXPECTED_INVOCATION);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionunnamedQueryOnSessionBroker(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UNNAMED_QUERY_ON_SESSION_BROKER, args), query);
        queryException.setErrorCode(UNNAMED_QUERY_ON_SESSION_BROKER);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionunsupportedMappingForObjectComparison(oracle.toplink.essentials.mappings.DatabaseMapping mapping, oracle.toplink.essentials.expressions.Expression expression)

        Object[] args = { mapping, expression, CR };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON, args));
        queryException.setErrorCode(UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionupdateAllQueryAddUpdateDefinesWrongField(oracle.toplink.essentials.descriptors.ClassDescriptor descriptor, oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.String attributeNameOrExpression, java.lang.String wrongField)

        Object[] args = { descriptor.toString(), CR, attributeNameOrExpression, wrongField };
    
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UPDATE_ALL_QUERY_ADD_UPDATE_DEFINES_WRONG_FIELD, args), query);
        queryException.setErrorCode(UPDATE_ALL_QUERY_ADD_UPDATE_DEFINES_WRONG_FIELD);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionupdateAllQueryAddUpdateDoesNotDefineField(oracle.toplink.essentials.descriptors.ClassDescriptor descriptor, oracle.toplink.essentials.queryframework.DatabaseQuery query, java.lang.String attributeNameOrExpression)

        Object[] args = { descriptor.toString(), CR, attributeNameOrExpression };
    
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UPDATE_ALL_QUERY_ADD_UPDATE_DOES_NOT_DEFINE_FIELD, args), query);
        queryException.setErrorCode(UPDATE_ALL_QUERY_ADD_UPDATE_DOES_NOT_DEFINE_FIELD);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionupdateAllQueryAddUpdateFieldIsNull(oracle.toplink.essentials.queryframework.DatabaseQuery query)

        Object[] args = {  };
    
        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UPDATE_ALL_QUERY_ADD_UPDATE_FIELD_IS_NULL, args), query);
        queryException.setErrorCode(UPDATE_ALL_QUERY_ADD_UPDATE_FIELD_IS_NULL);
        return queryException;
    
public static oracle.toplink.essentials.exceptions.QueryExceptionupdateStatementsNotSpecified()

        Object[] args = {  };

        QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UPDATE_STATEMENTS_NOT_SPECIFIED, args));
        queryException.setErrorCode(UPDATE_STATEMENTS_NOT_SPECIFIED);
        return queryException;