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 |
Methods Summary |
---|
public static oracle.toplink.essentials.exceptions.QueryException | additionalSizeQueryNotSpecified(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.QueryException | aggregateObjectCannotBeDeletedOrWritten(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.QueryException | argumentSizeMismatchInQueryAndQueryDefinition(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.QueryException | backupCloneIsDeleted(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.QueryException | backupCloneIsOriginalFromParent(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.QueryException | backupCloneIsOriginalFromSelf(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.QueryException | batchReadingNotSupported(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.QueryException | batchReadingNotSupported(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.QueryException | calledMethodThrewException(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.ValidationException | cannotAccessFieldOnObject(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.ValidationException | cannotAccessMethodOnObject(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.QueryException | cannotAddElement(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.QueryException | cannotAddToContainer(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.QueryException | cannotCacheCursorResultsOnQuery(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.QueryException | cannotCacheIsolatedDataOnQuery(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.QueryException | cannotCachePartialObjects(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.QueryException | cannotCompareTablesInExpression(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.QueryException | cannotCompareTargetForeignKeysToNull(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.QueryException | cannotConformAndCacheQueryResults(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.QueryException | cannotConformExpression()
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.QueryException | cannotConformUnfetchedAttribute(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.QueryException | cannotCreateClone(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.QueryException | cannotDeleteReadOnlyObject(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.QueryException | cannotQueryAcrossAVariableOneToOneMapping(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.QueryException | cannotRemoveFromContainer(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.QueryException | cannotSetShouldCheckCacheOnlyOnReportQuery()
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.QueryException | classPkDoesNotExistInCache(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.QueryException | clearQueryResultsNotSupported(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.QueryException | cloneMethodInaccessible()
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.QueryException | cloneMethodRequired()
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.QueryException | cloneMethodThrowException(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.QueryException | couldNotInstantiateContainerClass(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.QueryException | deleteAllQuerySpecifiesObjectsButNotSelectionCriteria(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.QueryException | descriptorIsMissing(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.QueryException | descriptorIsMissingForNamedQuery(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.QueryException | discriminatorColumnNotSelected(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.QueryException | distinctCountOnOuterJoinedCompositePK(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.QueryException | exampleAndReferenceObjectClassMismatch(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.QueryException | exceptionWhileUsingConstructorExpression(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.QueryException | fetchGroupAttributeNotMapped(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.QueryException | fetchGroupNotDefinedInDescriptor(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.QueryException | fetchGroupNotSupportOnPartialAttributeReading()
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.QueryException | fetchGroupNotSupportOnReportQuery()
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.QueryException | fetchGroupValidOnlyIfFetchGroupManagerInDescriptor(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.String | getMessage()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.DatabaseQuery | getQuery()PUBLIC:
Return the query in which the problem was detected.
return query;
|
public oracle.toplink.essentials.sessions.Record | getQueryArgumentsRecord()PUBLIC:
Return the query argements used in the original query when exception is thrown
return queryArguments;
|
public static oracle.toplink.essentials.exceptions.QueryException | historicalQueriesMustPreserveGlobalCache()
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.QueryException | historicalQueriesOnlySupportedOnOracle()
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.QueryException | illFormedExpression(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.QueryException | illegalUseOfGetField(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.QueryException | illegalUseOfGetTable(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.QueryException | inCannotBeParameterized(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.QueryException | incorrectClassForObjectComparison(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.QueryException | incorrectQueryObjectFound(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.QueryException | incorrectSizeQueryForCursorStream(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.QueryException | inheritanceWithMultipleTablesNotSupported()
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.QueryException | invalidBuilderInQuery(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.QueryException | invalidContainerClass(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.QueryException | invalidDatabaseAccessor(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.QueryException | invalidDatabaseCall(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.QueryException | invalidExpression(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.QueryException | invalidExpressionForQueryItem(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.QueryException | invalidOperation(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.QueryException | invalidOperator(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.QueryException | invalidOperatorForObjectComparison(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.QueryException | invalidQuery(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.QueryException | invalidQueryKeyInExpression(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.QueryException | invalidQueryOnHistoricalSession(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.QueryException | invalidQueryOnServerSession(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.QueryException | invalidTableForFieldInExpression(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.QueryException | invalidUseOfAnyOfInExpression(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.QueryException | invalidUseOfToManyQueryKeyInExpression(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.QueryException | isolatedQueryExecutedOnServerSession()
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.QueryException | joinExpressionsNotApplicableOnNonObjectReportItem(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.QueryException | joiningAcrossInheritanceClassWithMultipleTablesNotSupported(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.ValidationException | mapKeyNotComparable(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.QueryException | mappingForExpressionDoesNotSupportJoining(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.QueryException | mappingForFieldResultNotFound(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.QueryException | methodDoesNotExistInContainerClass(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.QueryException | methodDoesNotExistOnExpression(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.QueryException | methodInvocationFailed(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.QueryException | methodNotValid(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.QueryException | multipleRowsDetectedFromReadObjectQuery()
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.QueryException | mustInstantiateValueholders()
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.QueryException | mustUseCursorStreamPolicy()
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.QueryException | namedArgumentNotFoundInQueryParameters(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.QueryException | noAttributesForReportQuery(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.QueryException | noCallOrInteractionSpecified()
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.QueryException | noConcreteClassIndicated(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.QueryException | noCursorSupport(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.QueryException | noDescriptorForClassFromInheritancePolicy(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.QueryException | noExpressionBuilderFound(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.QueryException | nullPrimaryKeyInBuildingObject(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.QueryException | objectComparisonsCannotBeParameterized(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.QueryException | objectDoesNotExistInCache(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.QueryException | objectToInsertIsEmpty(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.QueryException | objectToModifyNotSpecified(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.QueryException | outerJoinIsOnlyValidForOneToOneMappings(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.QueryException | parameterNameMismatch(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.QueryException | polymorphicReportItemWithMultipletableNotSupported(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.QueryException | queryNotDefined()
Object[] args = { "", "" };
return queryNotDefined(args);
|
public static oracle.toplink.essentials.exceptions.QueryException | queryNotDefined(java.lang.String queryName)
Object[] args = { queryName, "" };
return queryNotDefined(args);
|
public static oracle.toplink.essentials.exceptions.QueryException | queryNotDefined(java.lang.String queryName, java.lang.Class domainClass)
Object[] args = { queryName, domainClass };
return queryNotDefined(args);
|
private static oracle.toplink.essentials.exceptions.QueryException | queryNotDefined(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.QueryException | querySentToInactiveUnitOfWork(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.QueryException | readBeyondStream(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.QueryException | redirectionClassOrMethodNotSet(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.QueryException | redirectionMethodError(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.QueryException | redirectionMethodNotDefinedCorrectly(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.QueryException | referenceClassMissing(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.QueryException | reflectiveCallOnTopLinkClassFailed(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.QueryException | refreshNotPossibleWithCheckCacheOnly(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.QueryException | refreshNotPossibleWithoutCache(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.QueryException | reportQueryResultSizeMismatch(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.QueryException | reportQueryResultWithoutPKs(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.QueryException | selectionObjectCannotBeNull(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 void | setQuery(oracle.toplink.essentials.queryframework.DatabaseQuery query)INTERNAL:
Set the query in which the problem was detected.
this.query = query;
|
public void | setQueryArguments(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.QueryException | sizeOnlySupportedOnExpressionQueries(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.QueryException | specifiedPartialAttributeDoesNotExist(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.QueryException | sqlStatementNotSetProperly(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.QueryException | tempTablesNotSupported(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.QueryException | typeMismatchBetweenAttributeAndConstantOnExpression(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.QueryException | unexpectedInvocation(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.QueryException | unnamedQueryOnSessionBroker(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.QueryException | unsupportedMappingForObjectComparison(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.QueryException | updateAllQueryAddUpdateDefinesWrongField(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.QueryException | updateAllQueryAddUpdateDoesNotDefineField(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.QueryException | updateAllQueryAddUpdateFieldIsNull(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.QueryException | updateStatementsNotSpecified()
Object[] args = { };
QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, UPDATE_STATEMENTS_NOT_SPECIFIED, args));
queryException.setErrorCode(UPDATE_STATEMENTS_NOT_SPECIFIED);
return queryException;
|