public static DatabaseException couldNotConvertObjectType(int type) { Object[] args = { CR, Integer.valueOf(type) }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, COULD_NOT_CONVERT_OBJECT_TYPE, args)); databaseException.setErrorCode(COULD_NOT_CONVERT_OBJECT_TYPE); return databaseException; }
public static DatabaseException couldNotConvertObjectType(int type) { Object[] args = { CR, new Integer(type) }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, COULD_NOT_CONVERT_OBJECT_TYPE, args)); databaseException.setErrorCode(COULD_NOT_CONVERT_OBJECT_TYPE); return databaseException; }
public static DatabaseException errorPreallocatingSequenceNumbers() { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, ERROR_PREALLOCATING_SEQUENCE_NUMBERS, args)); databaseException.setErrorCode(ERROR_PREALLOCATING_SEQUENCE_NUMBERS); return databaseException; }
public static DatabaseException errorReadingBlobData() { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, ERROR_READING_BLOB_DATA, args)); databaseException.setErrorCode(ERROR_READING_BLOB_DATA); return databaseException; }
public static DatabaseException configurationErrorClassNotFound(String className) { Object[] args = { className }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_CLASS_NOT_FOUND, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_CLASS_NOT_FOUND); return databaseException; }
public static DatabaseException transactionManagerNotSetForJTSDriver() { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER, args)); databaseException.setErrorCode(TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER); return databaseException; }
public static DatabaseException databaseAccessorNotConnected() { Object[] args = { }; String message = org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator.buildMessage(DatabaseException.class, DATABASE_ACCESSOR_NOT_CONNECTED, args); DatabaseException databaseException = new DatabaseException(message); databaseException.setErrorCode(DATABASE_ACCESSOR_NOT_CONNECTED); return databaseException; }
public static DatabaseException sequenceTableInformationNotComplete() { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE, args)); databaseException.setErrorCode(SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE); return databaseException; }
public static DatabaseException transactionManagerNotSetForJTSDriver() { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER, args)); databaseException.setErrorCode(TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER); return databaseException; }
public static DatabaseException configurationErrorClassNotFound(String className) { Object[] args = { className }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_CLASS_NOT_FOUND, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_CLASS_NOT_FOUND); return databaseException; }
public static DatabaseException sqlException(SQLException exception, boolean commError) { DatabaseException databaseException = new DatabaseException(exception); databaseException.setErrorCode(SQL_EXCEPTION); databaseException.setCommunicationFailure(commError); return databaseException; }
public static DatabaseException logoutWhileTransactionInProgress() { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, LOGOUT_WHILE_TRANSACTION_IN_PROGRESS, args)); databaseException.setErrorCode(LOGOUT_WHILE_TRANSACTION_IN_PROGRESS); return databaseException; }
public static DatabaseException errorRetrieveDbMetadataThroughJDBCConnection() { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, ERROR_RETRIEVE_DB_METADATA_THROUGH_JDBC_CONNECTION, args)); databaseException.setErrorCode(ERROR_RETRIEVE_DB_METADATA_THROUGH_JDBC_CONNECTION); return databaseException; }
public static DatabaseException configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException databaseAccessorNotConnected(DatabaseAccessor databaseAccessor) { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, DATABASE_ACCESSOR_NOT_CONNECTED, args)); databaseException.setErrorCode(DATABASE_ACCESSOR_NOT_CONNECTED); databaseException.setAccessor(databaseAccessor); return databaseException; }
public static DatabaseException configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class javaClass) { Object[] args = { javaClass }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION, args)); databaseException.setErrorCode(CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION); databaseException.setInternalException(exception); return databaseException; }
public static DatabaseException databaseAccessorConnectionIsNull(DatabaseAccessor databaseAccessor, AbstractSession session) { Object[] args = { }; DatabaseException databaseException = new DatabaseException(ExceptionMessageGenerator.buildMessage(DatabaseException.class, DATABASE_ACCESSOR_CONNECTION_IS_NULL, args)); databaseException.setErrorCode(DATABASE_ACCESSOR_CONNECTION_IS_NULL); databaseException.setAccessor(databaseAccessor); databaseException.setSession(session); return databaseException; }
public static DatabaseException sqlException(SQLException exception, Call call, Accessor accessor, AbstractSession session, boolean isCommunicationFailure) { DatabaseException databaseException = new DatabaseException(exception); databaseException.setErrorCode(SQL_EXCEPTION); databaseException.setAccessor(accessor); databaseException.setCall(call); databaseException.setCommunicationFailure(isCommunicationFailure); return databaseException; }
public static DatabaseException sqlException(SQLException exception, Accessor accessor, AbstractSession session, boolean isCommunicationFailure) { DatabaseException databaseException = new DatabaseException(exception); databaseException.setErrorCode(SQL_EXCEPTION); databaseException.setAccessor(accessor); databaseException.setSession(session); databaseException.setCommunicationFailure(isCommunicationFailure); return databaseException; }
public static DatabaseException sqlException(SQLException exception, Accessor accessor, AbstractSession session, boolean isCommunicationFailure) { DatabaseException databaseException = new DatabaseException(exception); databaseException.setErrorCode(SQL_EXCEPTION); databaseException.setAccessor(accessor); databaseException.setSession(session); databaseException.setCommunicationFailure(isCommunicationFailure); return databaseException; }