/** * Set customizer, customize the connection if it's available. */ protected void setCustomizer(ConnectionCustomizer newCustomizer) { this.customizer = newCustomizer; if(getDatasourceConnection() != null) { customizer.customize(); } }
/** * Set customizer, customize the connection if it's available. */ protected void setCustomizer(ConnectionCustomizer newCustomizer) { this.customizer = newCustomizer; if(getDatasourceConnection() != null) { customizer.customize(); } }
/** * Set customizer, customize the connection if it's available. */ protected void setCustomizer(ConnectionCustomizer newCustomizer) { this.customizer = newCustomizer; if(getDatasourceConnection() != null) { customizer.customize(); } }
/** * 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; } }
/** * 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; } }