public class QueryException extends ValidationException
Purpose: This exception is used for any problem that is detected with a query.
ALREADY_LOGGED_IN, BOTH_FIELDS_AND_PROPERTIES_ANNOTATED, CANNOT_ACQUIRE_CLIENTSESSION_FROM_SESSION, CANNOT_ACQUIRE_DATA_SOURCE, CANNOT_ACQUIRE_HISTORICAL_SESSION, CANNOT_ADD_DESCRIPTORS_TO_SESSION, CANNOT_ADD_DESCRIPTORS_TO_SESSION_BROKER, CANNOT_CAST_TO_CLASS, CANNOT_COMMIT_AND_RESUME_UOW_WITH_MODIFY_ALL_QUERIES, CANNOT_COMMIT_UOW_AGAIN, CANNOT_CREATE_EXTERNAL_TRANSACTION_CONTROLLER, CANNOT_INVOKE_METHOD_ON_CONFIG_CLASS, CANNOT_LOGIN_TO_A_SESSION, CANNOT_LOGOUT_OF_A_SESSION, CANNOT_MODIFY_READ_ONLY_CLASSES_SET_AFTER_USING_UNIT_OF_WORK, CANNOT_MODIFY_SCHEMA_IN_SESSION, CANNOT_PERSIST_MANAGED_OBJECT, CANNOT_REGISTER_AGGREGATE_OBJECT_IN_UNIT_OF_WORK, CANNOT_RELEASE_NON_CLIENTSESSION, CANNOT_REMOVE_FROM_READ_ONLY_CLASSES_IN_NESTED_UNIT_OF_WORK, CANNOT_RESUME_SYNCHRONIZED_UOW, CANNOT_SET_CURSOR_FOR_PARAMETER_TYPE_OTHER_THAN_OUT, CANNOT_SET_DEFAULT_SEQUENCE_AS_DEFAULT, CANNOT_SET_READ_POOL_SIZE_AFTER_LOGIN, CANNOT_TRANSLATE_UNPREPARED_CALL, CANNOT_WRITE_CHANGES_ON_NESTED_UNIT_OF_WORK, CANNOT_WRITE_CHANGES_TWICE, CANT_HAVE_UNBOUND_IN_OUTPUT_ARGUMENTS, CHILD_DESCRIPTORS_DO_NOT_HAVE_IDENTITY_MAP, CIRCULAR_MAPPED_BY_REFERENCES, CLASS_FILE_TRANSFORMER_THROWS_EXCEPTION, CLASS_LIST_MUST_NOT_BE_NULL, CLASS_NOT_FOUND_WHILE_CONVERTING_CLASSNAMES, CLASS_NOT_LISTED_IN_PERSISTENCE_UNIT, CLIENT_SESSION_CANNOT_USE_EXCLUSIVE_CONNECTION, CONFIG_FACTORY_NAME_PROPERTY_NOT_FOUND, CONFIG_FACTORY_NAME_PROPERTY_NOT_SPECIFIED, CONFIG_METHOD_NOT_DEFINED, CONFLICTING_SEQUENCE_AND_TABLE_GENERATORS_SPECIFIED, CONFLICTING_SEQUENCE_GENERATORS_SPECIFIED, CONFLICTING_SEQUENCE_NAME_AND_TABLE_PK_COLUMN_VALUE_SPECIFIED, CONFLICTING_TABLE_GENERATORS_SPECIFIED, CONFLICTNG_ACCESS_TYPE_FOR_EMBEDDABLE, CONTAINER_POLICY_DOES_NOT_USE_KEYS, COULD_NOT_BIND_JNDI, COULD_NOT_FIND_DRIVER_CLASS, COULD_NOT_FIND_MAP_KEY, CREATE_PLATFORM_DEFAULT_SEQUENCE_UNDEFINED, CURRENT_LOADER_NOT_VALID, DEFAULT_SEQUENCE_NAME_ALREADY_USED_BY_SEQUENCE, DESCRIPTOR_MUST_NOT_BE_INITIALIZED, EJB_CANNOT_LOAD_REMOTE_CLASS, EJB_CONTAINER_EXCEPTION_RAISED, EJB_DESCRIPTOR_NOT_FOUND_IN_SESSION, EJB_FINDER_EXCEPTION, EJB_INVALID_FINDER_ON_HOME, EJB_INVALID_PLATFORM_CLASS, EJB_INVALID_PROJECT_CLASS, EJB_INVALID_SESSION_TYPE_CLASS, EJB_MUST_BE_IN_TRANSACTION, EJB_NO_SUCH_SESSION_SPECIFIED_IN_PROPERTIES, EJB_PRIMARY_KEY_REFLECTION_EXCEPTION, EJB_SESSION_TYPE_CLASS_NOT_FOUND, EJB_TOPLINK_PROPERTIES_NOT_FOUND, EMBEDDED_ID_AND_ID_ANNOTATIONS_FOUND, EMBEDDED_ID_AND_ID_ELEMENTS_FOUND, EMBEDDED_ID_CLASS_HAS_NO_ATTR, ENTITY_CLASS_NOT_FOUND, ERROR_CLOSING_PERSISTENCE_XML, ERROR_DECRYPTING_PASSWORD, ERROR_ENCRYPTING_PASSWORD, ERROR_IN_SESSION_XML, ERROR_INSTANTIATING_CLASS, ERROR_PROCESSING_NAMED_QUERY_ANNOTATION, ERROR_PROCESSING_NAMED_QUERY_ELEMENT, EXCEPTION_CONFIGURING_EM_FACTORY, EXCESSIVE_JOIN_COLUMN_ELEMENTS_SPECIFIED, EXCESSIVE_JOIN_COLUMNS_SPECIFIED, EXCESSIVE_PK_JOIN_COLUMN_ELEMENTS_SPECIFIED, EXCESSIVE_PRIMARY_KEY_JOIN_COLUMNS_SPECIFIED, EXCLUSIVE_CONNECTION_NO_LONGER_AVAILABLE, EXISTING_QUERY_TYPE_CONFLICT, FATAL_ERROR_OCCURRED, FEATURE_NOT_SUPPORTED_IN_JDK_VERSION, FIELD_LEVEL_LOCKING_NOTSUPPORTED_OUTSIDE_A_UNIT_OF_WORK, FILE_ERROR, HISTORICAL_SESSION_ONLY_SUPPORTED_ON_ORACLE, ILLEGAL_CONTAINER_CLASS, ILLEGAL_USE_OF_MAP_IN_DIRECTCOLLECTION, INACTIVE_UNIT_OF_WORK, INCOMPLETE_JOIN_COLUMN_ELEMENTS_SPECIFIED, INCOMPLETE_JOIN_COLUMNS_SPECIFIED, INCOMPLETE_PK_JOIN_COLUMN_ELEMENTS_SPECIFIED, INCOMPLETE_PRIMARY_KEY_JOIN_COLUMNS_SPECIFIED, INCORRECT_LOGIN_INSTANCE_PROVIDED, INCORRECT_OVERRIDING_OF_ACCESSTYPE, INSTANTIATING_VALUEHOLDER_WITH_NULL_SESSION, INVALID_ATTRIBUTE_OVERRIDE_NAME, INVALID_CALLBACK_METHOD, INVALID_CALLBACK_METHOD_MODIFIER, INVALID_CALLBACK_METHOD_NAME, INVALID_CLASS_TYPE_FOR_BLOB_ATTRIBUTE, INVALID_CLASS_TYPE_FOR_CLOB_ATTRIBUTE, INVALID_COLLECTION_TYPE_FOR_RELATIONSHIP, INVALID_COLUMN_ANNOTATION_ON_RELATIONSHIP, INVALID_COLUMN_ELEMENT_ON_RELATIONSHIP, INVALID_COMPOSITE_PK_ATTRIBUTE, INVALID_COMPOSITE_PK_SPECIFICATION, INVALID_CONNECTOR, INVALID_DATA_SOURCE_NAME, INVALID_EMBEDDABLE_ATTRIBUTE, INVALID_EMBEDDED_ATTRIBUTE, INVALID_ENCRYPTION_CLASS, INVALID_ENTITY_CALLBACK_METHOD_ARGUMENTS, INVALID_ENTITY_LISTENER_CALLBACK_METHOD_ARGUMENTS, INVALID_ENTITY_MAPPINGS_DOCUMENT, INVALID_FILE_TYPE, INVALID_MAPPING, INVALID_MERGE_POLICY, INVALID_METHOD_ARGUMENTS, INVALID_NULL_METHOD_ARGUMENTS, INVALID_ORDER_BY_VALUE, INVALID_READ_ONLY_CLASS_STRUCTURE_IN_UNIT_OF_WORK, INVALID_SEQUENCING_LOGIN, INVALID_TYPE_FOR_ENUMERATED_ATTRIBUTE, INVALID_TYPE_FOR_LOB_ATTRIBUTE, INVALID_TYPE_FOR_SERIALIZED_ATTRIBUTE, INVALID_TYPE_FOR_TEMPORAL_ATTRIBUTE, INVALID_TYPE_FOR_VERSION_ATTRIBUTE, ISOLATED_DATA_NOT_SUPPORTED_IN_CLIENTSESSIONBROKER, JAR_FILES_IN_PERSISTENCE_XML_NOT_SUPPORTED, JAVA_TYPE_IS_NOT_A_VALID_DATABASE_TYPE, JTS_EXCEPTION_RAISED, KEYS_MUST_MATCH, LOG_IO_ERROR, LOGIN_BEFORE_ALLOCATING_CLIENT_SESSIONS, MAP_KEY_NOT_DECLARED_IN_ITEM_CLASS, MAPPING_ANNOTATIONS_APPLIED_TO_TRANSIENT_ATTRIBUTE, MAPPING_DOES_NOT_OVERRIDE_VALUEFROMROWINTERNALWITHJOIN, MAPPING_FILE_NOT_FOUND, MAX_SIZE_LESS_THAN_MIN_SIZE, METHOD_FAILED, MISSING_DESCRIPTOR, MISSING_MAPPING, MODIFY_ALL_QUERIES_NOT_SUPPORTED_WITH_OTHER_WRITES, MULTIPLE_CALLBACK_METHODS_DEFINED, MULTIPLE_CURSORS_NOT_SUPPORTED, MULTIPLE_EMBEDDED_ID_ANNOTATIONS_FOUND, MULTIPLE_EMBEDDED_ID_ELEMENTS_FOUND, MULTIPLE_PROJECTS_SPECIFIED_IN_PROPERTIES, NESTED_UOW_NOT_SUPPORTED_FOR_ATTRIBUTE_TRACKING, NESTED_UOW_NOT_SUPPORTED_FOR_MODIFY_ALL_QUERY, NO_CORRESPONDING_SETTER_METHOD_DEFINED, NO_MAPPED_BY_ATTRIBUTE_FOUND, NO_PK_ANNOTATIONS_FOUND, NO_PROJECT_SPECIFIED_IN_PROPERTIES, NO_PROPERTIES_FILE_FOUND, NO_SESSION_FOUND, NO_SESSION_REGISTERED_FOR_CLASS, NO_SESSION_REGISTERED_FOR_NAME, NO_SESSIONS_XML_FOUND, NO_TABLES_TO_CREATE, NO_TEMPORAL_TYPE_SPECIFIED, NO_TOPLINK_EJB_JAR_XML_FOUND, NON_ENTITY_AS_TARGET_IN_REL, NON_UNIQUE_ENTITY_NAME, NON_UNIQUE_MAPPING_FILE_NAME, NOT_SUPPORTED, NOT_SUPPORTED_FOR_DATASOURCE, NULL_CACHE_KEY_FOUND_ON_REMOVAL, NULL_UNDERLYING_VALUEHOLDER_VALUE, OBJECT_NEED_IMPL_TRACKER_FOR_FETCH_GROUP_USAGE, OLD_COMMIT_NOT_SUPPORTED_FOR_ATTRIBUTE_TRACKING, ONLY_FIELDS_ARE_VALID_KEYS_FOR_DATABASE_ROWS, ONLY_ONE_GENERATED_VALURE_IS_ALLOWED, OPERATION_NOT_SUPPORTED, OPTIMISTIC_LOCKING_NOT_SUPPORTED, ORACLE_OBJECT_TYPE_NAME_NOT_DEFINED, ORACLE_OBJECT_TYPE_NOT_DEFINED, ORACLE_VARRAY_MAXIMIM_SIZE_NOT_DEFINED, ORACLEJDBC10_1_0_2PROXYCONNECTOR_REQUIRES_INT_PROXYTYPE, ORACLEJDBC10_1_0_2PROXYCONNECTOR_REQUIRES_ORACLECONNECTION, ORACLEJDBC10_1_0_2PROXYCONNECTOR_REQUIRES_ORACLECONNECTION_VERSION, ORACLEOCIPROXYCONNECTOR_REQUIRES_ORACLEOCICONNECTIONPOOL, PERSISTENCE_UNIT_METADATA_CONFLICT, PLATFORM_CLASS_NOT_FOUND, PLATFORM_DOES_NOT_OVERRIDE_GETCREATETEMPTABLESQLPREFIX, PLATFORM_DOES_NOT_SUPPORT_CALL_WITH_RETURNING, PLATFORM_DOES_NOT_SUPPORT_SEQUENCE, PLATFORM_DOES_NOT_SUPPORT_STORED_FUNCTIONS, POOL_NAME_DOES_NOT_EXIST, POOLS_MUST_BE_CONFIGURED_BEFORE_LOGIN, PRIMARY_KEY_UPDATE_DISALLOWED, PRIMARY_TABLE_NOT_DEFINED_FOR_RELATIONSHIP, PROJECT_AMENDMENT_EXCEPTION_OCCURED, PROJECT_LOGIN_IS_NULL, PROJECT_XML_NOT_FOUND, QUERY_ARGUMENT_TYPE_NOT_FOUND, QUERY_SEQUENCE_DOES_NOT_HAVE_SELECT_QUERY, SEQUENCE_CANNOT_BE_CONNECTED_TO_TWO_PLATFORMS, SEQUENCE_GENERATOR_RESERVED_NAME, SEQUENCE_NAME_ALREADY_USED_BY_DEFAULT_SEQUENCE, SEQUENCE_SETUP_INCORRECTLY, SERVER_PLATFORM_IS_READ_ONLY_AFTER_LOGIN, SESSION_AMENDMENT_EXCEPTION_OCCURED, SET_LISTENER_CLASSES_EXCEPTION, START_INDEX_OUT_OF_RANGE, STOP_INDEX_OUT_OF_RANGE, SUB_SESSION_NOT_DEFINED_FOR_BROKER, TABLE_GENERATOR_RESERVED_NAME, TABLE_PER_CLASS_INHERITANCE_NOT_SUPPORTED, UNABLE_TO_DETERMINE_CLASS_FOR_FIELD, UNABLE_TO_DETERMINE_CLASS_FOR_PROPERTY, UNABLE_TO_DETERMINE_TARGET_ENTITY, UNABLE_TO_LOAD_CLASS, UNFETCHED_ATTRIBUTE_NOT_EDITABLE, UNI_DIRECTIONAL_ONE_TO_MANY_HAS_JOINCOLUMN_ANNOTATIONS, UNI_DIRECTIONAL_ONE_TO_MANY_HAS_JOINCOLUMN_ELEMENTS, UNIT_OF_WORK_AFTER_WRITE_CHANGES_FAILED, UNIT_OF_WORK_IN_TRANSACTION_COMMIT_PENDING, UNSPECIFIED_COMPOSITE_PK_NOT_SUPPORTED, UNSUPPORTED_CASCADE_LOCKING_DESCRIPTOR, UNSUPPORTED_CASCADE_LOCKING_MAPPING, UNSUPPORTED_CASCADE_LOCKING_MAPPING_WITH_CUSTOM_QUERY, WRITE_OBJECT_NOT_ALLOWED_IN_UNIT_OF_WORK, WRONG_CHANGE_EVENT, WRONG_COLLECTION_CHANGE_EVENT_TYPE, WRONG_OBJECT_REGISTERED, WRONG_PROPERTY_NAME_IN_CHANGE_EVENT, WRONG_SEQUENCE_TYPE, WRONG_USAGE_OF_SET_CUSTOM_SQL_ARGUMENT_TYPE_METOD
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
Modifier | Constructor and Description |
---|---|
protected |
QueryException(String message)
INTERNAL:
TopLink exceptions should only be thrown by TopLink.
|
protected |
QueryException(String message,
DatabaseQuery query)
INTERNAL:
TopLink exceptions should only be thrown by TopLink.
|
alreadyLoggedIn, bothFieldsAndPropertiesAnnotated, cannotAcquireClientSessionFromSession, cannotAcquireDataSource, cannotAcquireHistoricalSession, cannotAddDescriptorsToSessionBroker, cannotCastToClass, cannotCommitAndResumeSynchronizedUOW, cannotCommitAndResumeUOWWithModifyAllQueries, cannotCommitUOWAgain, cannotCreateExternalTransactionController, cannotHaveUnboundInOutputArguments, cannotInvokeMethodOnConfigClass, cannotIssueModifyAllQueryWithOtherWritesWithinUOW, cannotModifyReadOnlyClassesSetAfterUsingUnitOfWork, cannotPersistExistingObject, cannotRegisterAggregateObjectInUnitOfWork, cannotReleaseNonClientSession, cannotRemoveFromReadOnlyClassesInNestedUnitOfWork, cannotSetCursorForParameterTypeOtherThanOut, cannotSetDefaultSequenceAsDefault, cannotSetListenerClasses, cannotSetReadPoolSizeAfterLogin, cannotTranslateUnpreparedCall, cannotWriteChangesTwice, childDescriptorsDoNotHaveIdentityMap, circularMappedByReferences, classFileTransformerThrowsException, classListMustNotBeNull, classNotFoundWhileConvertingClassNames, classNotListedInPersistenceUnit, clientSessionCanNotUseExclusiveConnection, configFactoryNamePropertyNotFound, configFactoryNamePropertyNotSpecified, configMethodNotDefined, conflictingAccessTypeForEmbeddable, conflictingSequenceAndTableGeneratorsSpecified, conflictingSequenceGeneratorsSpecified, conflictingSequenceNameAndTablePkColumnValueSpecified, conflictingTableGeneratorsSpecified, containerPolicyDoesNotUseKeys, couldNotBindJndi, couldNotFindDriverClass, couldNotFindMapKey, createPlatformDefaultSequenceUndefined, currentLoaderNotValid, defaultSequenceNameAlreadyUsedBySequence, descriptorMustBeNotInitialized, ejbCannotLoadRemoteClass, ejbContainerExceptionRaised, ejbDescriptorNotFoundInSession, ejbFinderException, ejbInvalidHomeInterfaceClass, ejbInvalidPlatformClass, ejbInvalidProjectClass, ejbInvalidSessionTypeClass, ejbMustBeInTransaction, ejbNoSuchSessionSpecifiedInProperties, ejbPrimaryKeyReflectionException, ejbSessionTypeClassNotFound, ejbTopLinkPropertiesNotFound, embeddedIdAndIdAnnotationFound, embeddedIdAndIdElementFound, embeddedIdHasNoAttributes, entityClassNotFound, errorClosingPersistenceXML, errorDecryptingPassword, errorEncryptingPassword, errorInSessionsXML, errorInstantiatingClass, errorProcessingNamedQueryAnnotation, errorProcessingNamedQueryElement, exceptionConfiguringEMFactory, excessiveJoinColumnElementsSpecified, excessiveJoinColumnsSpecified, excessivePrimaryKeyJoinColumnElementsSpecified, excessivePrimaryKeyJoinColumnsSpecified, excusiveConnectionIsNoLongerAvailable, existingQueryTypeConflict, fatalErrorOccurred, featureIsNotAvailableInRunningJDKVersion, fieldLevelLockingNotSupportedWithoutUnitOfWork, fileError, historicalSessionOnlySupportedOnOracle, illegalContainerClass, illegalOperationForUnitOfWorkLifecycle, illegalUseOfMapInDirectCollection, inActiveUnitOfWork, incompleteJoinColumnElementsSpecified, incompleteJoinColumnsSpecified, incompletePrimaryKeyJoinColumnElementsSpecified, incompletePrimaryKeyJoinColumnsSpecified, incorrectLoginInstanceProvided, incorrectOverridingOfAccessType, instantiatingValueholderWithNullSession, invalidAttributeOverrideName, invalidCallbackMethod, invalidCallbackMethodModifier, invalidCallbackMethodName, invalidClassTypeForBLOBAttribute, invalidClassTypeForCLOBAttribute, invalidCollectionTypeForRelationship, invalidColumnAnnotationOnRelationship, invalidColumnElementOnRelationship, invalidCompositePKAttribute, invalidCompositePKSpecification, invalidConnector, invalidDataSourceName, invalidEmbeddableAttribute, invalidEmbeddedAttribute, invalidEncryptionClass, invalidEntityCallbackMethodArguments, invalidEntityListenerCallbackMethodArguments, invalidEntityMappingsDocument, invalidFileName, invalidMapping, invalidMergePolicy, invalidMethodArguments, invalidNullMethodArguments, invalidOrderByValue, invalidSequencingLogin, invalidTypeForEnumeratedAttribute, invalidTypeForLOBAttribute, invalidTypeForSerializedAttribute, invalidTypeForTemporalAttribute, invalidTypeForVersionAttribute, isolatedDataNotSupportedInSessionBroker, jarFilesInPersistenceXmlNotSupported, javaTypeIsNotAValidDatabaseType, jtsExceptionRaised, loginBeforeAllocatingClientSessions, logIOError, mapKeyNotDeclaredInItemClass, mappingAnnotationsAppliedToTransientAttribute, mappingDoesNotOverrideValueFromRowInternalWithJoin, mappingFileNotFound, maxSizeLessThanMinSize, methodFailed, missingDescriptor, missingMappingForAttribute, multipleCursorsNotSupported, multipleEmbeddedIdAnnotationsFound, multipleEmbeddedIdElementsFound, multipleLifecycleCallbackMethodsForSameLifecycleEvent, multipleProjectsSpecifiedInProperties, nestedUOWNotSupportedForAttributeTracking, nestedUOWNotSupportedForModifyAllQuery, noCorrespondingSetterMethodDefined, noMappedByAttributeFound, nonEntityTargetInRelationship, nonUniqueEntityName, nonUniqueMappingFileName, noPrimaryKeyAnnotationsFound, noProjectSpecifiedInProperties, noPropertiesFileFound, noSessionFound, noSessionRegisteredForClass, noSessionRegisteredForName, noSessionsXMLFound, noTablesToCreate, noTemporalTypeSpecified, noTopLinkEjbJarXMLFound, notSupported, notSupportedForDatasource, nullCacheKeyFoundOnRemoval, nullUnderlyingValueHolderValue, objectNeedImplTrackerForFetchGroupUsage, oldCommitNotSupportedForAttributeTracking, onlyFieldsAreValidKeysForDatabaseRows, onlyOneGeneratedValueIsAllowed, operationNotSupported, optimisticLockingNotSupportedWithStoredProcedureGeneration, oracleJDBC10_1_0_2ProxyConnectorRequiresIntProxytype, oracleJDBC10_1_0_2ProxyConnectorRequiresOracleConnection, oracleJDBC10_1_0_2ProxyConnectorRequiresOracleConnectionVersion, oracleObjectTypeIsNotDefined, oracleObjectTypeNameIsNotDefined, oracleOCIProxyConnectorRequiresOracleOCIConnectionPool, oracleVarrayMaximumSizeNotDefined, persistenceUnitMetadataConflict, platformClassNotFound, platformDoesNotOverrideGetCreateTempTableSqlPrefix, platformDoesNotSupportCallWithReturning, platformDoesNotSupportSequence, platformDoesNotSupportStoredFunctions, poolNameDoesNotExist, poolsMustBeConfiguredBeforeLogin, primaryKeyUpdateDisallowed, primaryTableNotDefined, projectAmendmentExceptionOccured, projectLoginIsNull, projectXMLNotFound, queryArgumentTypeNotFound, querySequenceDoesNotHaveSelectQuery, sequenceCannotBeConnectedToTwoPlatforms, sequenceGeneratorUsingAReservedName, sequenceNameAlreadyUsedByDefaultSequence, sequenceSetupIncorrectly, serverPlatformIsReadOnlyAfterLogin, sessionAmendmentExceptionOccured, startIndexOutOfRange, stopIndexOutOfRange, subSessionsNotDefinedForBroker, tableGeneratorUsingAReservedName, tablePerClassInheritanceNotSupported, unableToDetermineClassForField, unableToDetermineClassForProperty, unableToDetermineTargetEntity, unableToLoadClass, unfetchedAttributeNotEditable, uniDirectionalOneToManyHasJoinColumnAnnotations, uniDirectionalOneToManyHasJoinColumnElements, unitOfWorkAfterWriteChangesFailed, unitOfWorkInTransactionCommitPending, unitOfWorkInTransactionCommitPending, unspecifiedCompositePKNotSupported, unsupportedCascadeLockingDescriptor, unsupportedCascadeLockingMapping, unsupportedCascadeLockingMappingWithCustomQuery, writeChangesOnNestedUnitOfWork, writeObjectNotAllowedInUnitOfWork, wrongChangeEvent, wrongCollectionChangeEventType, wrongObjectRegistered, wrongPropertyNameInChangeEvent, wrongSequenceType, wrongUsageOfSetCustomArgumentTypeMethod
cr, getErrorCode, getIndentationString, getInternalException, getSession, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
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
protected QueryException(String message)
protected QueryException(String message, DatabaseQuery query)
public static QueryException additionalSizeQueryNotSpecified(DatabaseQuery query)
public static QueryException aggregateObjectCannotBeDeletedOrWritten(ClassDescriptor descriptor, DatabaseQuery query)
public static QueryException argumentSizeMismatchInQueryAndQueryDefinition(DatabaseQuery query)
public static QueryException namedArgumentNotFoundInQueryParameters(String argumentName)
public static QueryException backupCloneIsDeleted(Object clone)
public static QueryException backupCloneIsOriginalFromParent(Object clone)
public static QueryException backupCloneIsOriginalFromSelf(Object clone)
public static QueryException batchReadingNotSupported(DatabaseMapping mapping, DatabaseQuery query)
public static QueryException batchReadingNotSupported(DatabaseQuery query)
public static QueryException calledMethodThrewException(Method aMethod, Object object, Exception ex)
public static ValidationException cannotAccessFieldOnObject(Field aField, Object anObject)
public static ValidationException cannotAccessMethodOnObject(Method aMethod, Object anObject)
public static QueryException cannotAddElement(Object anObject, Object aContainer, Exception ex)
public static QueryException cannotAddToContainer(Object anObject, Object aContainer, ContainerPolicy policy)
public static QueryException cannotCacheCursorResultsOnQuery(DatabaseQuery query)
public static QueryException cannotCacheIsolatedDataOnQuery(DatabaseQuery query)
public static QueryException cannotCachePartialObjects(DatabaseQuery query)
public static QueryException cannotCompareTablesInExpression(Object data)
public static QueryException cannotCompareTargetForeignKeysToNull(Expression expression, Object value, DatabaseMapping mapping)
public static QueryException cannotConformAndCacheQueryResults(ReadQuery query)
public static QueryException cannotConformExpression()
public static QueryException cannotCreateClone(ContainerPolicy policy, Object anObject)
public static QueryException cannotDeleteReadOnlyObject(Object anObject)
public static QueryException cannotQueryAcrossAVariableOneToOneMapping(DatabaseMapping mapping, ClassDescriptor descriptor)
public static QueryException cannotRemoveFromContainer(Object anObject, Object aContainer, ContainerPolicy policy)
public static QueryException cannotSetShouldCheckCacheOnlyOnReportQuery()
public static QueryException couldNotInstantiateContainerClass(Class aClass, Exception exception)
public static QueryException descriptorIsMissing(Class referenceClass, DatabaseQuery query)
public static QueryException descriptorIsMissingForNamedQuery(Class domainClass, String queryName)
public static QueryException discriminatorColumnNotSelected(String expectedColumn, String sqlResultSetMapping)
public static QueryException exampleAndReferenceObjectClassMismatch(Class exampleObjectClass, Class referenceObjectClass, DatabaseQuery query)
public static QueryException exceptionWhileUsingConstructorExpression(Exception thrownException, DatabaseQuery query)
public String getMessage()
getMessage
in class TopLinkException
public DatabaseQuery getQuery()
public Record getQueryArgumentsRecord()
public static QueryException illegalUseOfGetField(Object data)
public static QueryException illegalUseOfGetTable(Object data)
public static QueryException illFormedExpression(Expression queryKey)
public static QueryException inCannotBeParameterized(DatabaseQuery query)
public static QueryException incorrectClassForObjectComparison(Expression expression, Object value, DatabaseMapping mapping)
public static QueryException incorrectSizeQueryForCursorStream(DatabaseQuery query)
public static QueryException incorrectQueryObjectFound(DatabaseQuery query, Class expectedQueryClass)
public static QueryException invalidContainerClass(Class containerGiven, Class containerRequired)
public static QueryException invalidDatabaseAccessor(Accessor accessor)
public static QueryException invalidDatabaseCall(Call call)
public static QueryException invalidExpressionForQueryItem(Expression expression, DatabaseQuery owner)
public static QueryException invalidOperation(String operation)
public static QueryException invalidOperator(Object data)
public static QueryException invalidOperatorForObjectComparison(Expression expression)
public static QueryException invalidQuery(DatabaseQuery query)
public static QueryException invalidBuilderInQuery(DatabaseQuery query)
public static QueryException invalidQueryKeyInExpression(Object data)
public static QueryException invalidExpression(Object expression)
public static QueryException mappingForExpressionDoesNotSupportJoining(Object expression)
public static QueryException mappingForFieldResultNotFound(String[] attributeNames, int currentString)
public static QueryException invalidQueryOnHistoricalSession(DatabaseQuery query)
public static QueryException invalidQueryOnServerSession(DatabaseQuery query)
public static QueryException invalidTableForFieldInExpression(Object data)
public static QueryException invalidUseOfAnyOfInExpression(Object data)
public static QueryException joinExpressionsNotApplicableOnNonObjectReportItem(String expressionType, String itemName)
public static QueryException joiningAcrossInheritanceClassWithMultipleTablesNotSupported(DatabaseQuery query, Class joinClass)
public static QueryException invalidUseOfToManyQueryKeyInExpression(Object data)
public static QueryException isolatedQueryExecutedOnServerSession()
public static ValidationException mapKeyNotComparable(Object anObject, Object aContainer)
public static QueryException methodDoesNotExistInContainerClass(String methodName, Class aClass)
public static QueryException methodDoesNotExistOnExpression(String methodName, Class[] argTypes)
public static QueryException methodInvocationFailed(Method aMethod, Object anObject, Exception ex)
public static QueryException methodNotValid(Object aReceiver, String methodName)
public static QueryException mustInstantiateValueholders()
public static QueryException noAttributesForReportQuery(DatabaseQuery query)
public static QueryException noConcreteClassIndicated(AbstractRecord row, DatabaseQuery query)
public static QueryException noCallOrInteractionSpecified()
public static QueryException noCursorSupport(DatabaseQuery query)
public static QueryException noDescriptorForClassFromInheritancePolicy(DatabaseQuery query, Class referenceClass)
public static QueryException noExpressionBuilderFound(Expression expression)
public static QueryException nullPrimaryKeyInBuildingObject(DatabaseQuery query, AbstractRecord databaseRow)
public static QueryException objectComparisonsCannotBeParameterized(Expression expression)
public static QueryException objectDoesNotExistInCache(Object object)
public static QueryException classPkDoesNotExistInCache(Class theClass, Vector primaryKey)
public static QueryException clearQueryResultsNotSupported(ReadQuery query)
public static QueryException objectToInsertIsEmpty(DatabaseTable table)
public static QueryException objectToModifyNotSpecified(DatabaseQuery query)
public static QueryException outerJoinIsOnlyValidForOneToOneMappings(DatabaseMapping mapping)
public static QueryException queryNotDefined()
public static QueryException queryNotDefined(String queryName)
public static QueryException queryNotDefined(String queryName, Class domainClass)
public static QueryException querySentToInactiveUnitOfWork(DatabaseQuery query)
public static QueryException readBeyondStream(DatabaseQuery query)
public static QueryException redirectionClassOrMethodNotSet(DatabaseQuery query)
public static QueryException redirectionMethodError(Exception exception, DatabaseQuery query)
public static QueryException redirectionMethodNotDefinedCorrectly(Class methodClass, String methodName, Exception exception, DatabaseQuery query)
public static QueryException referenceClassMissing(DatabaseQuery query)
public static QueryException refreshNotPossibleWithoutCache(DatabaseQuery query)
public static QueryException reportQueryResultSizeMismatch(int expected, int retrieved)
public static QueryException reportQueryResultWithoutPKs(ReportQueryResult result)
public static QueryException parameterNameMismatch(String badParameterName)
public static QueryException polymorphicReportItemWithMultipletableNotSupported(String itemName, Expression expression, DatabaseQuery owner)
public static QueryException selectionObjectCannotBeNull(DatabaseQuery query)
public void setQuery(DatabaseQuery query)
public void setQueryArguments(AbstractRecord queryArguments)
public static QueryException sizeOnlySupportedOnExpressionQueries(DatabaseQuery query)
public static QueryException specifiedPartialAttributeDoesNotExist(DatabaseQuery query, String attributeName, String targetClassName)
public static QueryException sqlStatementNotSetProperly(DatabaseQuery query)
public static QueryException typeMismatchBetweenAttributeAndConstantOnExpression(Class constantClass, Class attributeClass)
public static QueryException unnamedQueryOnSessionBroker(DatabaseQuery query)
public static QueryException unsupportedMappingForObjectComparison(DatabaseMapping mapping, Expression expression)
public static QueryException updateStatementsNotSpecified()
public static QueryException inheritanceWithMultipleTablesNotSupported()
public static QueryException cloneMethodRequired()
public static QueryException cloneMethodInaccessible()
public static QueryException cloneMethodThrowException(Throwable exception)
public static QueryException unexpectedInvocation(String message)
public static QueryException multipleRowsDetectedFromReadObjectQuery()
public static QueryException historicalQueriesMustPreserveGlobalCache()
public static QueryException historicalQueriesOnlySupportedOnOracle()
public static QueryException mustUseCursorStreamPolicy()
public static QueryException fetchGroupNotDefinedInDescriptor(String fetchGroupName)
public static QueryException cannotConformUnfetchedAttribute(String attrbuteName)
public static QueryException fetchGroupAttributeNotMapped(String attrbuteName)
public static QueryException fetchGroupNotSupportOnReportQuery()
public static QueryException fetchGroupNotSupportOnPartialAttributeReading()
public static QueryException fetchGroupValidOnlyIfFetchGroupManagerInDescriptor(String descriptorName, String queryName)
public static QueryException reflectiveCallOnTopLinkClassFailed(String className, Exception e)
public static QueryException refreshNotPossibleWithCheckCacheOnly(DatabaseQuery query)
public static QueryException deleteAllQuerySpecifiesObjectsButNotSelectionCriteria(ClassDescriptor descriptor, DatabaseQuery query, String objects)
public static QueryException updateAllQueryAddUpdateFieldIsNull(DatabaseQuery query)
public static QueryException updateAllQueryAddUpdateDoesNotDefineField(ClassDescriptor descriptor, DatabaseQuery query, String attributeNameOrExpression)
public static QueryException updateAllQueryAddUpdateDefinesWrongField(ClassDescriptor descriptor, DatabaseQuery query, String attributeNameOrExpression, String wrongField)
public static QueryException tempTablesNotSupported(DatabaseQuery query, String platformClassName)
public static QueryException distinctCountOnOuterJoinedCompositePK(ClassDescriptor descr, DatabaseQuery query)
Copyright © 2022. All rights reserved.