/** * Connect to the database. * Exceptions are caught and re-thrown as EclipseLink exceptions. */ protected void connectInternal(Login login, AbstractSession session) throws DatabaseException { try{ this.datasourceConnection = login.connectToDatasource(this, session); this.isConnected = true; if(this.customizer != null) { customizer.customize(); } }catch (DatabaseException ex){ //Set the accessor to ensure the retry code has an opportunity to retry. ex.setAccessor(this); throw ex; } }
/** * Connect to the database. * Exceptions are caught and re-thrown as EclipseLink exceptions. */ protected void connectInternal(Login login, AbstractSession session) throws DatabaseException { try{ this.datasourceConnection = login.connectToDatasource(this, session); this.isConnected = true; if(this.customizer != null) { customizer.customize(); } }catch (DatabaseException ex){ //Set the accessor to ensure the retry code has an opportunity to retry. ex.setAccessor(this); throw ex; } }
/** * Connect to the database. * Exceptions are caught and re-thrown as EclipseLink exceptions. */ protected void connectInternal(Login login, AbstractSession session) throws DatabaseException { try{ this.datasourceConnection = login.connectToDatasource(this, session); this.isConnected = true; if(this.customizer != null) { customizer.customize(); } }catch (DatabaseException ex){ //Set the accessor to ensure the retry code has an oportunity to retry. ex.setAccessor(this); throw ex; } }
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 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 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 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 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 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, 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, 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 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; }
((DatabaseException)exception).setCall(dbCall); if(((DatabaseException)exception).getAccessor() == null) { ((DatabaseException)exception).setAccessor(this);
((DatabaseException)exception).setCall(dbCall); if(((DatabaseException)exception).getAccessor() == null) { ((DatabaseException)exception).setAccessor(this);
((DatabaseException)exception).setCall(dbCall); if(((DatabaseException)exception).getAccessor() == null) { ((DatabaseException)exception).setAccessor(this);