Class QueryException

  • All Implemented Interfaces:
    java.io.Serializable

    public class QueryException
    extends ValidationException

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

    See Also:
    Serialized Form
    • Field Detail

      • queryArguments

        protected transient org.eclipse.persistence.internal.sessions.AbstractRecord queryArguments
      • ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED

        public static final int ADDITIONAL_SIZE_QUERY_NOT_SPECIFIED
        See Also:
        Constant Field Values
      • AGGREGATE_OBJECT_CANNOT_BE_DELETED

        public static final int AGGREGATE_OBJECT_CANNOT_BE_DELETED
        See Also:
        Constant Field Values
      • ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION

        public static final int ARGUMENT_SIZE_MISMATCH_IN_QUERY_AND_QUERY_DEFINITION
        See Also:
        Constant Field Values
      • BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT

        public static final int BACKUP_CLONE_IS_ORIGINAL_FROM_PARENT
        See Also:
        Constant Field Values
      • BACKUP_CLONE_IS_ORIGINAL_FROM_SELF

        public static final int BACKUP_CLONE_IS_ORIGINAL_FROM_SELF
        See Also:
        Constant Field Values
      • BATCH_READING_NOT_SUPPORTED

        public static final int BATCH_READING_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY

        public static final int DESCRIPTOR_IS_MISSING_FOR_NAMED_QUERY
        See Also:
        Constant Field Values
      • INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM

        public static final int INCORRECT_SIZE_QUERY_FOR_CURSOR_STREAM
        See Also:
        Constant Field Values
      • INVALID_QUERY_KEY_IN_EXPRESSION

        public static final int INVALID_QUERY_KEY_IN_EXPRESSION
        See Also:
        Constant Field Values
      • INVALID_QUERY_ON_SERVER_SESSION

        public static final int INVALID_QUERY_ON_SERVER_SESSION
        See Also:
        Constant Field Values
      • NO_CONCRETE_CLASS_INDICATED

        public static final int NO_CONCRETE_CLASS_INDICATED
        See Also:
        Constant Field Values
      • OBJECT_TO_INSERT_IS_EMPTY

        public static final int OBJECT_TO_INSERT_IS_EMPTY
        See Also:
        Constant Field Values
      • OBJECT_TO_MODIFY_NOT_SPECIFIED

        public static final int OBJECT_TO_MODIFY_NOT_SPECIFIED
        See Also:
        Constant Field Values
      • QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK

        public static final int QUERY_SENT_TO_INACTIVE_UNIT_OF_WORK
        See Also:
        Constant Field Values
      • REFERENCE_CLASS_MISSING

        public static final int REFERENCE_CLASS_MISSING
        See Also:
        Constant Field Values
      • REFRESH_NOT_POSSIBLE_WITHOUT_CACHE

        public static final int REFRESH_NOT_POSSIBLE_WITHOUT_CACHE
        See Also:
        Constant Field Values
      • SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES

        public static final int SIZE_ONLY_SUPPORTED_ON_EXPRESSION_QUERIES
        See Also:
        Constant Field Values
      • SQL_STATEMENT_NOT_SET_PROPERLY

        public static final int SQL_STATEMENT_NOT_SET_PROPERLY
        See Also:
        Constant Field Values
      • SELECTION_OBJECT_CANNOT_BE_NULL

        public static final int SELECTION_OBJECT_CANNOT_BE_NULL
        See Also:
        Constant Field Values
      • UNNAMED_QUERY_ON_SESSION_BROKER

        public static final int UNNAMED_QUERY_ON_SESSION_BROKER
        See Also:
        Constant Field Values
      • REPORT_RESULT_WITHOUT_PKS

        public static final int REPORT_RESULT_WITHOUT_PKS
        See Also:
        Constant Field Values
      • NULL_PRIMARY_KEY_IN_BUILDING_OBJECT

        public static final int NULL_PRIMARY_KEY_IN_BUILDING_OBJECT
        See Also:
        Constant Field Values
      • NO_DESCRIPTOR_FOR_SUBCLASS

        public static final int NO_DESCRIPTOR_FOR_SUBCLASS
        See Also:
        Constant Field Values
      • CANNOT_DELETE_READ_ONLY_OBJECT

        public static final int CANNOT_DELETE_READ_ONLY_OBJECT
        See Also:
        Constant Field Values
      • ILLEGAL_USE_OF_GETFIELD

        public static final int ILLEGAL_USE_OF_GETFIELD
        See Also:
        Constant Field Values
      • ILLEGAL_USE_OF_GETTABLE

        public static final int ILLEGAL_USE_OF_GETTABLE
        See Also:
        Constant Field Values
      • REPORT_QUERY_RESULT_SIZE_MISMATCH

        public static final int REPORT_QUERY_RESULT_SIZE_MISMATCH
        See Also:
        Constant Field Values
      • CANNOT_CACHE_PARTIAL_OBJECT

        public static final int CANNOT_CACHE_PARTIAL_OBJECT
        See Also:
        Constant Field Values
      • OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE

        public static final int OUTER_JOIN_ONLY_VALID_FOR_ONE_TO_ONE
        See Also:
        Constant Field Values
      • CANNOT_ADD_TO_CONTAINER

        public static final int CANNOT_ADD_TO_CONTAINER
        See Also:
        Constant Field Values
      • METHOD_INVOCATION_FAILED

        public static final int METHOD_INVOCATION_FAILED
        See Also:
        Constant Field Values
      • METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS

        public static final int METHOD_DOES_NOT_EXIST_IN_CONTAINER_CLASS
        See Also:
        Constant Field Values
      • COULD_NOT_INSTANTIATE_CONTAINER_CLASS

        public static final int COULD_NOT_INSTANTIATE_CONTAINER_CLASS
        See Also:
        Constant Field Values
      • CANNOT_ACCESS_METHOD_ON_OBJECT

        public static final int CANNOT_ACCESS_METHOD_ON_OBJECT
        See Also:
        Constant Field Values
      • CALLED_METHOD_THREW_EXCEPTION

        public static final int CALLED_METHOD_THREW_EXCEPTION
        See Also:
        Constant Field Values
      • CANNOT_REMOVE_FROM_CONTAINER

        public static final int CANNOT_REMOVE_FROM_CONTAINER
        See Also:
        Constant Field Values
      • CANNOT_ACCESS_FIELD_ON_OBJECT

        public static final int CANNOT_ACCESS_FIELD_ON_OBJECT
        See Also:
        Constant Field Values
      • CANNOT_COMPARE_TABLES_IN_EXPRESSION

        public static final int CANNOT_COMPARE_TABLES_IN_EXPRESSION
        See Also:
        Constant Field Values
      • INVALID_TABLE_FOR_FIELD_IN_EXPRESSION

        public static final int INVALID_TABLE_FOR_FIELD_IN_EXPRESSION
        See Also:
        Constant Field Values
      • INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION

        public static final int INVALID_USE_OF_TO_MANY_QUERY_KEY_IN_EXPRESSION
        See Also:
        Constant Field Values
      • INVALID_USE_OF_ANY_OF_IN_EXPRESSION

        public static final int INVALID_USE_OF_ANY_OF_IN_EXPRESSION
        See Also:
        Constant Field Values
      • CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING

        public static final int CANNOT_QUERY_ACROSS_VARIABLE_ONE_TO_ONE_MAPPING
        See Also:
        Constant Field Values
      • CANNOT_CONFORM_EXPRESSION

        public static final int CANNOT_CONFORM_EXPRESSION
        See Also:
        Constant Field Values
      • INVALID_OPERATOR_FOR_OBJECT_EXPRESSION

        public static final int INVALID_OPERATOR_FOR_OBJECT_EXPRESSION
        See Also:
        Constant Field Values
      • UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON

        public static final int UNSUPPORTED_MAPPING_FOR_OBJECT_COMPARISON
        See Also:
        Constant Field Values
      • OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED

        public static final int OBJECT_COMPARISON_CANNOT_BE_PARAMETERIZED
        See Also:
        Constant Field Values
      • INCORRECT_CLASS_FOR_OBJECT_COMPARISON

        public static final int INCORRECT_CLASS_FOR_OBJECT_COMPARISON
        See Also:
        Constant Field Values
      • CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL

        public static final int CANNOT_COMPARE_TARGET_FOREIGN_KEYS_TO_NULL
        See Also:
        Constant Field Values
      • INVALID_DATABASE_ACCESSOR

        public static final int INVALID_DATABASE_ACCESSOR
        See Also:
        Constant Field Values
      • METHOD_DOES_NOT_EXIST_ON_EXPRESSION

        public static final int METHOD_DOES_NOT_EXIST_ON_EXPRESSION
        See Also:
        Constant Field Values
      • IN_CANNOT_BE_PARAMETERIZED

        public static final int IN_CANNOT_BE_PARAMETERIZED
        See Also:
        Constant Field Values
      • REDIRECTION_CLASS_OR_METHOD_NOT_SET

        public static final int REDIRECTION_CLASS_OR_METHOD_NOT_SET
        See Also:
        Constant Field Values
      • REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY

        public static final int REDIRECTION_METHOD_NOT_DEFINED_CORRECTLY
        See Also:
        Constant Field Values
      • REDIRECTION_METHOD_ERROR

        public static final int REDIRECTION_METHOD_ERROR
        See Also:
        Constant Field Values
      • EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH

        public static final int EXAMPLE_AND_REFERENCE_OBJECT_CLASS_MISMATCH
        See Also:
        Constant Field Values
      • NO_ATTRIBUTES_FOR_REPORT_QUERY

        public static final int NO_ATTRIBUTES_FOR_REPORT_QUERY
        See Also:
        Constant Field Values
      • NO_EXPRESSION_BUILDER_CLASS_FOUND

        public static final int NO_EXPRESSION_BUILDER_CLASS_FOUND
        See Also:
        Constant Field Values
      • CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY

        public static final int CANNOT_SET_REPORT_QUERY_TO_CHECK_CACHE_ONLY
        See Also:
        Constant Field Values
      • TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION

        public static final int TYPE_MISMATCH_BETWEEN_ATTRIBUTE_AND_CONSTANT_ON_EXPRESSION
        See Also:
        Constant Field Values
      • MUST_INSTANTIATE_VALUEHOLDERS

        public static final int MUST_INSTANTIATE_VALUEHOLDERS
        See Also:
        Constant Field Values
      • INVALID_TYPE_EXPRESSION

        public static final int INVALID_TYPE_EXPRESSION
        See Also:
        Constant Field Values
      • PARAMETER_NAME_MISMATCH

        public static final int PARAMETER_NAME_MISMATCH
        See Also:
        Constant Field Values
      • CLONE_METHOD_INACCESSIBLE

        public static final int CLONE_METHOD_INACCESSIBLE
        See Also:
        Constant Field Values
      • CLONE_METHOD_THORW_EXCEPTION

        public static final int CLONE_METHOD_THORW_EXCEPTION
        See Also:
        Constant Field Values
      • JOINING_ACROSS_INHERITANCE_WITH_MULTIPLE_TABLES

        public static final int JOINING_ACROSS_INHERITANCE_WITH_MULTIPLE_TABLES
        See Also:
        Constant Field Values
      • MULTIPLE_ROWS_DETECTED_FROM_SINGLE_OBJECT_READ

        public static final int MULTIPLE_ROWS_DETECTED_FROM_SINGLE_OBJECT_READ
        See Also:
        Constant Field Values
      • HISTORICAL_QUERIES_MUST_PRESERVE_GLOBAL_CACHE

        public static final int HISTORICAL_QUERIES_MUST_PRESERVE_GLOBAL_CACHE
        See Also:
        Constant Field Values
      • HISTORICAL_QUERIES_ONLY_SUPPORTED_ON_ORACLE

        public static final int HISTORICAL_QUERIES_ONLY_SUPPORTED_ON_ORACLE
        See Also:
        Constant Field Values
      • INVALID_QUERY_ON_HISTORICAL_SESSION

        public static final int INVALID_QUERY_ON_HISTORICAL_SESSION
        See Also:
        Constant Field Values
      • OBJECT_DOES_NOT_EXIST_IN_CACHE

        public static final int OBJECT_DOES_NOT_EXIST_IN_CACHE
        See Also:
        Constant Field Values
      • MUST_USE_CURSOR_STREAM_POLICY

        public static final int MUST_USE_CURSOR_STREAM_POLICY
        See Also:
        Constant Field Values
      • CLASS_PK_DOES_NOT_EXIST_IN_CACHE

        public static final int CLASS_PK_DOES_NOT_EXIST_IN_CACHE
        See Also:
        Constant Field Values
      • UPDATE_STATEMENTS_NOT_SPECIFIED

        public static final int UPDATE_STATEMENTS_NOT_SPECIFIED
        See Also:
        Constant Field Values
      • INHERITANCE_WITH_MULTIPLE_TABLES_NOT_SUPPORTED

        public static final int INHERITANCE_WITH_MULTIPLE_TABLES_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • QUERY_FETCHGROUP_NOT_DEFINED_IN_DESCRIPTOR

        public static final int QUERY_FETCHGROUP_NOT_DEFINED_IN_DESCRIPTOR
        See Also:
        Constant Field Values
      • CANNOT_CONFORM_UNFETCHED_ATTRIBUTE

        public static final int CANNOT_CONFORM_UNFETCHED_ATTRIBUTE
        See Also:
        Constant Field Values
      • FETCH_GROUP_ATTRIBUTE_NOT_MAPPED

        public static final int FETCH_GROUP_ATTRIBUTE_NOT_MAPPED
        See Also:
        Constant Field Values
      • FETCH_GROUP_NOT_SUPPORT_ON_REPORT_QUERY

        public static final int FETCH_GROUP_NOT_SUPPORT_ON_REPORT_QUERY
        See Also:
        Constant Field Values
      • FETCH_GROUP_NOT_SUPPORT_ON_PARTIAL_ATTRIBUTE_READING

        public static final int FETCH_GROUP_NOT_SUPPORT_ON_PARTIAL_ATTRIBUTE_READING
        See Also:
        Constant Field Values
      • FETCHGROUP_VALID_ONLY_IF_FETCHGROUP_MANAGER_IN_DESCRIPTOR

        public static final int FETCHGROUP_VALID_ONLY_IF_FETCHGROUP_MANAGER_IN_DESCRIPTOR
        See Also:
        Constant Field Values
      • ISOLATED_QUERY_EXECUTED_ON_SERVER_SESSION

        public static final int ISOLATED_QUERY_EXECUTED_ON_SERVER_SESSION
        See Also:
        Constant Field Values
      • NO_CALL_OR_INTERACTION_SPECIFIED

        public static final int NO_CALL_OR_INTERACTION_SPECIFIED
        See Also:
        Constant Field Values
      • CANNOT_CACHE_CURSOR_RESULTS_ON_QUERY

        public static final int CANNOT_CACHE_CURSOR_RESULTS_ON_QUERY
        See Also:
        Constant Field Values
      • CANNOT_CACHE_ISOLATED_DATA_ON_QUERY

        public static final int CANNOT_CACHE_ISOLATED_DATA_ON_QUERY
        See Also:
        Constant Field Values
      • MAPPING_FOR_EXPRESSION_DOES_NOT_SUPPORT_JOINING

        public static final int MAPPING_FOR_EXPRESSION_DOES_NOT_SUPPORT_JOINING
        See Also:
        Constant Field Values
      • SPECIFIED_PARTIAL_ATTRIBUTE_DOES_NOT_EXIST

        public static final int SPECIFIED_PARTIAL_ATTRIBUTE_DOES_NOT_EXIST
        See Also:
        Constant Field Values
      • INVALID_BUILDER_IN_QUERY

        public static final int INVALID_BUILDER_IN_QUERY
        See Also:
        Constant Field Values
      • INVALID_CONTAINER_CLASS

        public static final int INVALID_CONTAINER_CLASS
        See Also:
        Constant Field Values
      • CLEAR_QUERY_RESULTS_NOT_SUPPORTED

        public static final int CLEAR_QUERY_RESULTS_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • CANNOT_CONFORM_AND_CACHE_QUERY_RESULTS

        public static final int CANNOT_CONFORM_AND_CACHE_QUERY_RESULTS
        See Also:
        Constant Field Values
      • REFLECTIVE_CALL_ON_TOPLINK_CLASS_FAILED

        public static final int REFLECTIVE_CALL_ON_TOPLINK_CLASS_FAILED
        See Also:
        Constant Field Values
      • BATCH_READING_NOT_SUPPORTED_WITH_CALL

        public static final int BATCH_READING_NOT_SUPPORTED_WITH_CALL
        See Also:
        Constant Field Values
      • REFRESH_NOT_POSSIBLE_WITH_CHECK_CACHE_ONLY

        public static final int REFRESH_NOT_POSSIBLE_WITH_CHECK_CACHE_ONLY
        See Also:
        Constant Field Values
      • DISCRIMINATOR_COLUMN_NOT_SELECTED

        public static final int DISCRIMINATOR_COLUMN_NOT_SELECTED
        See Also:
        Constant Field Values
      • DELETE_ALL_QUERY_SPECIFIES_OBJECTS_BUT_NOT_SELECTION_CRITERIA

        public static final int DELETE_ALL_QUERY_SPECIFIES_OBJECTS_BUT_NOT_SELECTION_CRITERIA
        See Also:
        Constant Field Values
      • NAMED_ARGUMENT_NOT_FOUND_IN_QUERY_PARAMETERS

        public static final int NAMED_ARGUMENT_NOT_FOUND_IN_QUERY_PARAMETERS
        See Also:
        Constant Field Values
      • UPDATE_ALL_QUERY_ADD_UPDATE_FIELD_IS_NULL

        public static final int UPDATE_ALL_QUERY_ADD_UPDATE_FIELD_IS_NULL
        See Also:
        Constant Field Values
      • UPDATE_ALL_QUERY_ADD_UPDATE_DOES_NOT_DEFINE_FIELD

        public static final int UPDATE_ALL_QUERY_ADD_UPDATE_DOES_NOT_DEFINE_FIELD
        See Also:
        Constant Field Values
      • UPDATE_ALL_QUERY_ADD_UPDATE_DEFINES_WRONG_FIELD

        public static final int UPDATE_ALL_QUERY_ADD_UPDATE_DEFINES_WRONG_FIELD
        See Also:
        Constant Field Values
      • POLYMORPHIC_REPORT_ITEM_NOT_SUPPORTED

        public static final int POLYMORPHIC_REPORT_ITEM_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • EXCEPTION_WHILE_USING_CONSTRUCTOR_EXPRESSION

        public static final int EXCEPTION_WHILE_USING_CONSTRUCTOR_EXPRESSION
        See Also:
        Constant Field Values
      • TEMP_TABLES_NOT_SUPPORTED

        public static final int TEMP_TABLES_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • MAPPING_FOR_FIELDRESULT_NOT_FOUND

        public static final int MAPPING_FOR_FIELDRESULT_NOT_FOUND
        See Also:
        Constant Field Values
      • JOIN_EXPRESSIONS_NOT_APPLICABLE_ON_NON_OBJECT_REPORT_ITEM

        public static final int JOIN_EXPRESSIONS_NOT_APPLICABLE_ON_NON_OBJECT_REPORT_ITEM
        See Also:
        Constant Field Values
      • CLASS_NOT_FOUND_WHILE_USING_QUERY_HINT

        public static final int CLASS_NOT_FOUND_WHILE_USING_QUERY_HINT
        See Also:
        Constant Field Values
      • QUERY_HINT_NAVIGATED_ILLEGAL_RELATIONSHIP

        public static final int QUERY_HINT_NAVIGATED_ILLEGAL_RELATIONSHIP
        See Also:
        Constant Field Values
      • QUERY_HINT_NAVIGATED_NON_EXISTANT_RELATIONSHIP

        public static final int QUERY_HINT_NAVIGATED_NON_EXISTANT_RELATIONSHIP
        See Also:
        Constant Field Values
      • QUERY_HINT_DID_NOT_CONTAIN_ENOUGH_TOKENS

        public static final int QUERY_HINT_DID_NOT_CONTAIN_ENOUGH_TOKENS
        See Also:
        Constant Field Values
      • DISTINCT_COUNT_ON_OUTER_JOINED_COMPOSITE_PK

        public static final int DISTINCT_COUNT_ON_OUTER_JOINED_COMPOSITE_PK
        See Also:
        Constant Field Values
      • QUERY_HINT_CONTAINED_INVALID_INTEGER_VALUE

        public static final int QUERY_HINT_CONTAINED_INVALID_INTEGER_VALUE
        See Also:
        Constant Field Values
      • EXPRESSION_DOES_NOT_SUPPORT_PARTIAL_ATTRIBUTE_READING

        public static final int EXPRESSION_DOES_NOT_SUPPORT_PARTIAL_ATTRIBUTE_READING
        See Also:
        Constant Field Values
      • UNNAMED_ARG_NOT_SUPPORTED

        public static final int UNNAMED_ARG_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • UNABLE_TO_SET_REDIRECTOR_FROM_HINT

        public static final int UNABLE_TO_SET_REDIRECTOR_FROM_HINT
        See Also:
        Constant Field Values
      • ERROR_INSTANTIATING_CLASS_FOR_QUERY_HINT

        public static final int ERROR_INSTANTIATING_CLASS_FOR_QUERY_HINT
        See Also:
        Constant Field Values
      • COMPATIBLE_TYPE_NOT_SET

        public static final int COMPATIBLE_TYPE_NOT_SET
        See Also:
        Constant Field Values
      • NO_RELATION_TABLE_IN_MANY_TO_MANY_QUERY_KEY

        public static final int NO_RELATION_TABLE_IN_MANY_TO_MANY_QUERY_KEY
        See Also:
        Constant Field Values
      • EXCEPTION_WHILE_READING_MAP_KEY

        public static final int EXCEPTION_WHILE_READING_MAP_KEY
        See Also:
        Constant Field Values
      • CANNOT_ADD_ELEMENT_WITHOUT_KEY_TO_MAP

        public static final int CANNOT_ADD_ELEMENT_WITHOUT_KEY_TO_MAP
        See Also:
        Constant Field Values
      • CANNOT_UNWRAP_NON_MAP_MEMBERS

        public static final int CANNOT_UNWRAP_NON_MAP_MEMBERS
        See Also:
        Constant Field Values
      • NO_MAPPING_FOR_MAP_ENTRY_EXPRESSION

        public static final int NO_MAPPING_FOR_MAP_ENTRY_EXPRESSION
        See Also:
        Constant Field Values
      • MAP_ENTRY_EXPRESSION_FOR_NON_COLLECTION

        public static final int MAP_ENTRY_EXPRESSION_FOR_NON_COLLECTION
        See Also:
        Constant Field Values
      • MAP_ENTRY_EXPRESSION_FOR_NON_MAP

        public static final int MAP_ENTRY_EXPRESSION_FOR_NON_MAP
        See Also:
        Constant Field Values
      • LIST_ORDER_FIELD_WRONG_VALUE

        public static final int LIST_ORDER_FIELD_WRONG_VALUE
        See Also:
        Constant Field Values
      • INDEX_REQUIRES_QUERY_KEY_EXPRESSION

        public static final int INDEX_REQUIRES_QUERY_KEY_EXPRESSION
        See Also:
        Constant Field Values
      • INDEX_REQUIRES_COLLECTION_MAPPING_WITH_LIST_ORDER_FIELD

        public static final int INDEX_REQUIRES_COLLECTION_MAPPING_WITH_LIST_ORDER_FIELD
        See Also:
        Constant Field Values
      • BATCH_IN_REQUIRES_SINGLETON_PK

        public static final int BATCH_IN_REQUIRES_SINGLETON_PK
        See Also:
        Constant Field Values
      • COULD_NOT_FIND_CAST_DESCRIPTOR

        public static final int COULD_NOT_FIND_CAST_DESCRIPTOR
        See Also:
        Constant Field Values
      • CAST_MUST_USE_INHERITANCE

        public static final int CAST_MUST_USE_INHERITANCE
        See Also:
        Constant Field Values
      • ORIGINAL_QUERY_MUST_USE_IN

        public static final int ORIGINAL_QUERY_MUST_USE_IN
        See Also:
        Constant Field Values
      • PARTIONING_NOT_SUPPORTED

        public static final int PARTIONING_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • MISSING_CONNECTION_POOL

        public static final int MISSING_CONNECTION_POOL
        See Also:
        Constant Field Values
      • MISSING_CONTEXT_PROPERTY_FOR_PROPERTY_PARAMETER_EXPRESSION

        public static final int MISSING_CONTEXT_PROPERTY_FOR_PROPERTY_PARAMETER_EXPRESSION
        See Also:
        Constant Field Values
      • NATIVE_SQL_QUERIES_ARE_DISABLED

        public static final int NATIVE_SQL_QUERIES_ARE_DISABLED
        See Also:
        Constant Field Values
      • EXCEPTION_WHILE_LOADING_CONSTRUCTOR

        public static final int EXCEPTION_WHILE_LOADING_CONSTRUCTOR
        See Also:
        Constant Field Values
      • COLUMN_RESULT_NOT_FOUND

        public static final int COLUMN_RESULT_NOT_FOUND
        See Also:
        Constant Field Values
      • RESULT_SET_ACCESS_OPTIMIZATION_IS_NOT_POSSIBLE

        public static final int RESULT_SET_ACCESS_OPTIMIZATION_IS_NOT_POSSIBLE
        See Also:
        Constant Field Values
      • SOP_OBJECT_DESERIALIZE_FAILED

        public static final int SOP_OBJECT_DESERIALIZE_FAILED
        See Also:
        Constant Field Values
      • SOP_OBJECT_IS_NOT_FOUND

        public static final int SOP_OBJECT_IS_NOT_FOUND
        See Also:
        Constant Field Values
      • SOP_OBJECT_WRONG_VERSION

        public static final int SOP_OBJECT_WRONG_VERSION
        See Also:
        Constant Field Values
      • UNSUPPORTED_MAPPING_FOR_QUERYBYEXAMPLE

        public static final int UNSUPPORTED_MAPPING_FOR_QUERYBYEXAMPLE
        See Also:
        Constant Field Values
    • Constructor Detail

      • QueryException

        protected QueryException​(java.lang.String message)
        INTERNAL: Constructor.
      • QueryException

        protected QueryException​(java.lang.String message,
                                 DatabaseQuery query)
        INTERNAL: Constructor.
      • QueryException

        protected QueryException​(java.lang.String message,
                                 DatabaseQuery query,
                                 java.lang.Exception internalException)
        INTERNAL: Constructor.
    • Method Detail

      • argumentSizeMismatchInQueryAndQueryDefinition

        public static QueryException argumentSizeMismatchInQueryAndQueryDefinition​(DatabaseQuery query)
      • missingContextPropertyForPropertyParameterExpression

        public static QueryException missingContextPropertyForPropertyParameterExpression​(DatabaseQuery query,
                                                                                          java.lang.String argumentName)
      • namedArgumentNotFoundInQueryParameters

        public static QueryException namedArgumentNotFoundInQueryParameters​(java.lang.String argumentName)
      • 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)
      • calledMethodThrewException

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

        public static ValidationException cannotAccessFieldOnObject​(java.lang.reflect.Field aField,
                                                                    java.lang.Object anObject)
      • 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,
                                                          org.eclipse.persistence.internal.queries.ContainerPolicy policy)
      • cannotCompareTablesInExpression

        public static QueryException cannotCompareTablesInExpression​(java.lang.Object data)
      • cannotConformAndCacheQueryResults

        public static QueryException cannotConformAndCacheQueryResults​(ReadQuery query)
      • cannotConformExpression

        public static QueryException cannotConformExpression()
      • cannotCreateClone

        public static QueryException cannotCreateClone​(org.eclipse.persistence.internal.queries.ContainerPolicy policy,
                                                       java.lang.Object anObject)
      • cannotDeleteReadOnlyObject

        public static QueryException cannotDeleteReadOnlyObject​(java.lang.Object anObject)
      • cannotRemoveFromContainer

        public static QueryException cannotRemoveFromContainer​(java.lang.Object anObject,
                                                               java.lang.Object aContainer,
                                                               org.eclipse.persistence.internal.queries.ContainerPolicy policy)
      • cannotSetShouldCheckCacheOnlyOnReportQuery

        public static QueryException cannotSetShouldCheckCacheOnlyOnReportQuery()
      • couldNotInstantiateContainerClass

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

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

        public static QueryException discriminatorColumnNotSelected​(java.lang.String expectedColumn,
                                                                    java.lang.String sqlResultSetMapping)
      • 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
      • exceptionWhileInitializingConstructor

        public static QueryException exceptionWhileInitializingConstructor​(java.lang.Exception thrownException,
                                                                           DatabaseQuery query,
                                                                           java.lang.Class targetClass)
        An exception was thrown while initializing the constructor from the class.
      • exceptionWhileUsingConstructorExpression

        public static QueryException exceptionWhileUsingConstructorExpression​(java.lang.Exception thrownException,
                                                                              DatabaseQuery query)
        An exception was throwing while using a ReportQuery with a constructor expression
      • 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 EclipseLinkException
      • getQuery

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

        public Record getQueryArgumentsRecord()
        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)
      • incorrectQueryObjectFound

        public static QueryException incorrectQueryObjectFound​(DatabaseQuery query,
                                                               java.lang.Class expectedQueryClass)
      • invalidContainerClass

        public static QueryException invalidContainerClass​(java.lang.Class containerGiven,
                                                           java.lang.Class containerRequired)
      • invalidDatabaseAccessor

        public static QueryException invalidDatabaseAccessor​(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
      • 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)
      • invalidQueryKeyInExpression

        public static QueryException invalidQueryKeyInExpression​(java.lang.Object data)
      • invalidExpression

        public static QueryException invalidExpression​(java.lang.Object expression)
      • mappingForExpressionDoesNotSupportJoining

        public static QueryException mappingForExpressionDoesNotSupportJoining​(java.lang.Object expression)
      • mappingForFieldResultNotFound

        public static QueryException mappingForFieldResultNotFound​(java.lang.String[] attributeNames,
                                                                   int currentString)
      • invalidTableForFieldInExpression

        public static QueryException invalidTableForFieldInExpression​(java.lang.Object data)
      • invalidTypeExpression

        public static QueryException invalidTypeExpression​(java.lang.Object expression)
      • invalidUseOfAnyOfInExpression

        public static QueryException invalidUseOfAnyOfInExpression​(java.lang.Object data)
      • joinExpressionsNotApplicableOnNonObjectReportItem

        public static QueryException joinExpressionsNotApplicableOnNonObjectReportItem​(java.lang.String expressionType,
                                                                                       java.lang.String itemName)
      • joiningAcrossInheritanceClassWithMultipleTablesNotSupported

        public static QueryException joiningAcrossInheritanceClassWithMultipleTablesNotSupported​(DatabaseQuery query,
                                                                                                 java.lang.Class joinClass)
      • invalidUseOfToManyQueryKeyInExpression

        public static QueryException invalidUseOfToManyQueryKeyInExpression​(java.lang.Object data)
      • isolatedQueryExecutedOnServerSession

        public static QueryException isolatedQueryExecutedOnServerSession()
      • mapKeyIsNull

        public static ValidationException mapKeyIsNull​(java.lang.Object element,
                                                       java.lang.Object container)
      • 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​(org.eclipse.persistence.internal.sessions.AbstractRecord row,
                                                              DatabaseQuery query)
      • noCallOrInteractionSpecified

        public static QueryException noCallOrInteractionSpecified()
      • noDescriptorForClassFromInheritancePolicy

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

        public static QueryException nullPrimaryKeyInBuildingObject​(DatabaseQuery query,
                                                                    org.eclipse.persistence.internal.sessions.AbstractRecord databaseRow)
      • objectComparisonsCannotBeParameterized

        public static QueryException objectComparisonsCannotBeParameterized​(Expression expression)
      • objectDoesNotExistInCache

        public static QueryException objectDoesNotExistInCache​(java.lang.Object object)
      • classPkDoesNotExistInCache

        public static QueryException classPkDoesNotExistInCache​(java.lang.Class theClass,
                                                                java.lang.Object primaryKey)
      • objectToInsertIsEmpty

        public static QueryException objectToInsertIsEmpty​(org.eclipse.persistence.internal.helper.DatabaseTable table)
      • queryNotDefined

        public static QueryException queryNotDefined​(java.lang.String queryName)
      • queryNotDefined

        public static QueryException queryNotDefined​(java.lang.String queryName,
                                                     java.lang.Class domainClass)
      • unableToSetRedirectorOnQueryFromHint

        public static QueryException unableToSetRedirectorOnQueryFromHint​(DatabaseQuery query,
                                                                          java.lang.String hint,
                                                                          java.lang.String redirectorClass,
                                                                          java.lang.Exception ex)
      • 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)
      • reportQueryResultSizeMismatch

        public static QueryException reportQueryResultSizeMismatch​(int expected,
                                                                   int retrieved)
      • parameterNameMismatch

        public static QueryException parameterNameMismatch​(java.lang.String badParameterName)
      • polymorphicReportItemWithMultipletableNotSupported

        public static QueryException polymorphicReportItemWithMultipletableNotSupported​(java.lang.String itemName,
                                                                                        Expression expression,
                                                                                        DatabaseQuery owner)
      • setQuery

        public void setQuery​(DatabaseQuery query)
        INTERNAL: Set the query in which the problem was detected.
      • setQueryArguments

        public void setQueryArguments​(org.eclipse.persistence.internal.sessions.AbstractRecord queryArguments)
        INTERNAL: Set the query argements used in the original query when exception is thrown
      • specifiedPartialAttributeDoesNotExist

        public static QueryException specifiedPartialAttributeDoesNotExist​(DatabaseQuery query,
                                                                           java.lang.String attributeName,
                                                                           java.lang.String targetClassName)
      • typeMismatchBetweenAttributeAndConstantOnExpression

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

        public static QueryException updateStatementsNotSpecified()
      • inheritanceWithMultipleTablesNotSupported

        public static QueryException inheritanceWithMultipleTablesNotSupported()
      • cloneMethodRequired

        public static QueryException cloneMethodRequired()
      • cloneMethodInaccessible

        public static QueryException cloneMethodInaccessible()
      • cloneMethodThrowException

        public static QueryException cloneMethodThrowException​(java.lang.Throwable exception)
      • unexpectedInvocation

        public static QueryException unexpectedInvocation​(java.lang.String message)
      • multipleRowsDetectedFromReadObjectQuery

        public static QueryException multipleRowsDetectedFromReadObjectQuery()
      • historicalQueriesMustPreserveGlobalCache

        public static QueryException historicalQueriesMustPreserveGlobalCache()
      • historicalQueriesOnlySupportedOnOracle

        public static QueryException historicalQueriesOnlySupportedOnOracle()
      • mustUseCursorStreamPolicy

        public static QueryException mustUseCursorStreamPolicy()
      • fetchGroupNotDefinedInDescriptor

        public static QueryException fetchGroupNotDefinedInDescriptor​(java.lang.String fetchGroupName)
      • cannotConformUnfetchedAttribute

        public static QueryException cannotConformUnfetchedAttribute​(java.lang.String attrbuteName)
      • fetchGroupAttributeNotMapped

        public static QueryException fetchGroupAttributeNotMapped​(java.lang.String attrbuteName)
      • fetchGroupNotSupportOnReportQuery

        public static QueryException fetchGroupNotSupportOnReportQuery()
      • fetchGroupNotSupportOnPartialAttributeReading

        public static QueryException fetchGroupNotSupportOnPartialAttributeReading()
      • fetchGroupValidOnlyIfFetchGroupManagerInDescriptor

        public static QueryException fetchGroupValidOnlyIfFetchGroupManagerInDescriptor​(java.lang.String descriptorName,
                                                                                        java.lang.String queryName)
      • reflectiveCallOnTopLinkClassFailed

        public static QueryException reflectiveCallOnTopLinkClassFailed​(java.lang.String className,
                                                                        java.lang.Exception e)
      • deleteAllQuerySpecifiesObjectsButNotSelectionCriteria

        public static QueryException deleteAllQuerySpecifiesObjectsButNotSelectionCriteria​(ClassDescriptor descriptor,
                                                                                           DatabaseQuery query,
                                                                                           java.lang.String objects)
      • updateAllQueryAddUpdateDoesNotDefineField

        public static QueryException updateAllQueryAddUpdateDoesNotDefineField​(ClassDescriptor descriptor,
                                                                               DatabaseQuery query,
                                                                               java.lang.String attributeNameOrExpression)
      • updateAllQueryAddUpdateDefinesWrongField

        public static QueryException updateAllQueryAddUpdateDefinesWrongField​(ClassDescriptor descriptor,
                                                                              DatabaseQuery query,
                                                                              java.lang.String attributeNameOrExpression,
                                                                              java.lang.String wrongField)
      • tempTablesNotSupported

        public static QueryException tempTablesNotSupported​(DatabaseQuery query,
                                                            java.lang.String platformClassName)
      • classNotFoundWhileUsingQueryHint

        public static QueryException classNotFoundWhileUsingQueryHint​(DatabaseQuery query,
                                                                      java.lang.Object hintValue,
                                                                      java.lang.Exception exc)
      • queryHintNavigatedIllegalRelationship

        public static QueryException queryHintNavigatedIllegalRelationship​(DatabaseQuery query,
                                                                           java.lang.String hintName,
                                                                           java.lang.Object hintValue,
                                                                           java.lang.String relationship)
      • queryHintNavigatedNonExistantRelationship

        public static QueryException queryHintNavigatedNonExistantRelationship​(DatabaseQuery query,
                                                                               java.lang.String hintName,
                                                                               java.lang.Object hintValue,
                                                                               java.lang.String relationship)
      • queryHintDidNotContainEnoughTokens

        public static QueryException queryHintDidNotContainEnoughTokens​(DatabaseQuery query,
                                                                        java.lang.String hintName,
                                                                        java.lang.Object hintValue)
      • queryHintContainedInvalidIntegerValue

        public static QueryException queryHintContainedInvalidIntegerValue​(java.lang.String hintName,
                                                                           java.lang.Object hintValue,
                                                                           java.lang.Exception e)
      • expressionDoesNotSupportPartialAttributeReading

        public static QueryException expressionDoesNotSupportPartialAttributeReading​(Expression expression)
      • addArgumentsNotSupported

        public static QueryException addArgumentsNotSupported​(java.lang.String argumentType)
      • unnamedArgumentsNotSupported

        public static QueryException unnamedArgumentsNotSupported()
      • columnResultNotFound

        public static QueryException columnResultNotFound​(org.eclipse.persistence.internal.helper.DatabaseField dbField)
      • compatibleTypeNotSet

        public static QueryException compatibleTypeNotSet​(org.eclipse.persistence.internal.helper.DatabaseType type)
      • typeNameNotSet

        public static QueryException typeNameNotSet​(org.eclipse.persistence.internal.helper.DatabaseType type)
      • errorInstantiatedClassForQueryHint

        public static QueryException errorInstantiatedClassForQueryHint​(java.lang.Exception exception,
                                                                        DatabaseQuery query,
                                                                        java.lang.Class theClass,
                                                                        java.lang.String hint)
      • exceptionWhileReadingMapKey

        public static QueryException exceptionWhileReadingMapKey​(java.lang.Object object,
                                                                 java.lang.Exception ex)
      • cannotAddElementWithoutKeyToMap

        public static QueryException cannotAddElementWithoutKeyToMap​(java.lang.Object object)
      • cannotUnwrapNonMapMembers

        public static QueryException cannotUnwrapNonMapMembers​(java.lang.Object object)
      • noMappingForMapEntryExpression

        public static QueryException noMappingForMapEntryExpression​(Expression baseExpression)
      • listOrderFieldWrongValue

        public static QueryException listOrderFieldWrongValue​(DatabaseQuery query,
                                                              org.eclipse.persistence.internal.helper.DatabaseField field,
                                                              java.util.List wrongOrderValuesList)
      • indexRequiresQueryKeyExpression

        public static QueryException indexRequiresQueryKeyExpression​(Expression expression)
      • batchReadingInRequiresSingletonPrimaryKey

        public static QueryException batchReadingInRequiresSingletonPrimaryKey​(DatabaseQuery query)
      • couldNotFindCastDescriptor

        public static QueryException couldNotFindCastDescriptor​(java.lang.Class castClass,
                                                                Expression base)
      • partitioningNotSupported

        public static QueryException partitioningNotSupported​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                              DatabaseQuery query)
      • failoverFailed

        public static QueryException failoverFailed​(java.lang.String poolName)
      • resultSetAccessOptimizationIsNotPossible

        public static QueryException resultSetAccessOptimizationIsNotPossible​(DatabaseQuery query)
      • sopObjectDeserializeFailed

        public static QueryException sopObjectDeserializeFailed​(DatabaseQuery query,
                                                                org.eclipse.persistence.internal.helper.DatabaseField sopField,
                                                                org.eclipse.persistence.internal.sessions.AbstractRecord row,
                                                                java.lang.Exception exception)
      • sopObjectIsNotFound

        public static QueryException sopObjectIsNotFound​(DatabaseQuery query,
                                                         org.eclipse.persistence.internal.helper.DatabaseField sopField,
                                                         org.eclipse.persistence.internal.sessions.AbstractRecord row)
      • sopObjectWrongVersion

        public static QueryException sopObjectWrongVersion​(DatabaseQuery query,
                                                           java.lang.Object sopObjectVersion,
                                                           org.eclipse.persistence.internal.helper.DatabaseField sopField,
                                                           org.eclipse.persistence.internal.sessions.AbstractRecord row)
      • sopObjectWrongPk

        public static QueryException sopObjectWrongPk​(DatabaseQuery query,
                                                      java.lang.Object sopObjectPk,
                                                      org.eclipse.persistence.internal.helper.DatabaseField sopField,
                                                      org.eclipse.persistence.internal.sessions.AbstractRecord row)
      • unsupportedMappingQueryByExample

        public static QueryException unsupportedMappingQueryByExample​(java.lang.String className,
                                                                      DatabaseMapping databaseMapping)