public static DatabaseException sqlException(SQLException exception) { return sqlException(exception, false); }
public static DatabaseException sqlException(SQLException exception) { return sqlException(exception, false); }
public static DatabaseException sqlException(SQLException exception) { return sqlException(exception, false); }
public static DatabaseException sqlException(SQLException exception, AbstractSession session, boolean commError) { if (session == null) { return sqlException(exception, commError); } else { return sqlException(exception, session.getAccessor(), session, commError); } }
public static DatabaseException sqlException(SQLException exception, AbstractSession session, boolean commError) { if (session == null) { return sqlException(exception, commError); } else { return sqlException(exception, session.getAccessor(), session, commError); } }
public static DatabaseException sqlException(SQLException exception, AbstractSession session, boolean commError) { if (session == null) { return sqlException(exception, commError); } else { return sqlException(exception, session.getAccessor(), session, commError); } }
/** * Close the result set of the cursored stream. */ public void closeCursor(ResultSet resultSet, AbstractSession session) throws DatabaseException { try { resultSet.close(); } catch (SQLException exception) { DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
public void register(DataSource datSource, Session session) { try { ((PoolDataSource)datSource).registerConnectionAffinityCallback(this); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, (AbstractSession)session, false); } }
public void register(DataSource datSource, Session session) { try { ((PoolDataSource)datSource).registerConnectionAffinityCallback(this); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, (AbstractSession)session, false); } }
/** * Close the connection. */ public void closeDatasourceConnection() throws DatabaseException { try { getConnection().close(); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, this, null, false); } }
/** * Close the result set of the cursored stream. */ public void closeCursor(ResultSet resultSet, AbstractSession session) throws DatabaseException { try { resultSet.close(); } catch (SQLException exception) { DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
/** * Close the connection. */ @Override public void closeDatasourceConnection() throws DatabaseException { try { getConnection().close(); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, this, null, false); } }
/** * Close the connection. */ @Override public void closeDatasourceConnection() throws DatabaseException { try { getConnection().close(); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, this, null, false); } }
/** * Close the result set of the cursored stream. */ public void closeCursor(ResultSet resultSet, AbstractSession session) throws DatabaseException { try { resultSet.close(); } catch (SQLException exception) { DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
/** * Build a row from the output parameters of a sp call. */ public AbstractRecord buildOutputRow(CallableStatement statement, DatabaseCall call, AbstractSession session) throws DatabaseException { try { return call.buildOutputRow(statement, this, session); } catch (SQLException exception) { DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
/** * Build a row from the output parameters of a sp call. */ public AbstractRecord buildOutputRow(CallableStatement statement, DatabaseCall call, AbstractSession session) throws DatabaseException { try { return call.buildOutputRow(statement, this, session); } catch (SQLException exception) { DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
/** * Build a row from the output parameters of a sp call. */ public AbstractRecord buildOutputRow(CallableStatement statement, DatabaseCall call, AbstractSession session) throws DatabaseException { try { return call.buildOutputRow(statement); } catch (SQLException exception) { DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
/** * PUBLIC: * Moves the cursor to the front of the result set, just before the first row */ public void beforeFirst() throws DatabaseException { clearNextAndPrevious(); try { getResultSet().beforeFirst(); setPosition(0); } catch (SQLException exception) { DatabaseException commException = getAccessor().processExceptionForCommError(getSession(), exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, getAccessor(), getSession(), false); } }
/** * PUBLIC: * Moves the cursor to the end of the result set, just after the last row. */ public void afterLast() throws DatabaseException { clearNextAndPrevious(); try { this.resultSet.afterLast(); setPosition(size() + 1); } catch (SQLException exception) { DatabaseException commException = getAccessor().processExceptionForCommError(this.session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, getAccessor(), this.session, false); } }
/** * PUBLIC: * Moves the cursor to the end of the result set, just after the last row. */ public void afterLast() throws DatabaseException { clearNextAndPrevious(); try { this.resultSet.afterLast(); setPosition(size() + 1); } catch (SQLException exception) { DatabaseException commException = getAccessor().processExceptionForCommError(this.session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, getAccessor(), this.session, false); } }