public static QueryException cannotCacheCursorResultsOnQuery(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; }
/** * Oct 19, 2000 JED * Added this method and exception value */ public static QueryException noAttributesForReportQuery(DatabaseQuery query) { 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; }
/** * Oct 19, 2000 JED * Added this method and exception value */ public static QueryException noAttributesForReportQuery(DatabaseQuery query) { 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; }
/** * Oct 18, 2000 JED * Added this method and exception value */ public static QueryException exampleAndReferenceObjectClassMismatch(Class exampleObjectClass, Class referenceObjectClass, DatabaseQuery query) { 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; }
/** * An exception was throwing while using a ReportQuery with a constructor expession */ public static QueryException exceptionWhileUsingConstructorExpression(Exception thrownException, DatabaseQuery query) { 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 QueryException cannotCacheCursorResultsOnQuery(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 QueryException cannotCachePartialObjects(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 QueryException cannotCacheCursorResultsOnQuery(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; }
/** * Oct 18, 2000 JED * Added this method and exception value */ public static QueryException exampleAndReferenceObjectClassMismatch(Class exampleObjectClass, Class referenceObjectClass, DatabaseQuery query) { 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 QueryException cannotCachePartialObjects(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 QueryException cannotCacheIsolatedDataOnQuery(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 QueryException cannotCacheIsolatedDataOnQuery(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; }
/** * Oct 18, 2000 JED * Added this method and exception value */ public static QueryException exampleAndReferenceObjectClassMismatch(Class exampleObjectClass, Class referenceObjectClass, DatabaseQuery query) { 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 QueryException cannotCacheIsolatedDataOnQuery(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 QueryException cannotCachePartialObjects(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; }
/** * Oct 19, 2000 JED * Added this method and exception value */ public static QueryException noAttributesForReportQuery(DatabaseQuery query) { 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; }
/** * An exception was thrown while initializing the constructor from the class. */ public static QueryException exceptionWhileInitializingConstructor(Exception thrownException, DatabaseQuery query, Class targetClass) { Object[] args = { targetClass, thrownException }; QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, EXCEPTION_WHILE_LOADING_CONSTRUCTOR, args)); queryException.setErrorCode(EXCEPTION_WHILE_LOADING_CONSTRUCTOR); queryException.setInternalException(thrownException); queryException.setQuery(query); return queryException; }
/** * An exception was throwing while using a ReportQuery with a constructor expression */ public static QueryException exceptionWhileUsingConstructorExpression(Exception thrownException, DatabaseQuery query) { 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.setInternalException(thrownException); queryException.setQuery(query); return queryException; }
/** * An exception was throwing while using a ReportQuery with a constructor expression */ public static QueryException exceptionWhileUsingConstructorExpression(Exception thrownException, DatabaseQuery query) { 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.setInternalException(thrownException); queryException.setQuery(query); return queryException; }
/** * An exception was thrown while initializing the constructor from the class. */ public static QueryException exceptionWhileInitializingConstructor(Exception thrownException, DatabaseQuery query, Class targetClass) { Object[] args = { targetClass, thrownException }; QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, EXCEPTION_WHILE_LOADING_CONSTRUCTOR, args)); queryException.setErrorCode(EXCEPTION_WHILE_LOADING_CONSTRUCTOR); queryException.setInternalException(thrownException); queryException.setQuery(query); return queryException; }