protected ResultSet wrapResult(ResultSet rs, boolean wrap) { if (!wrap || rs == null) return rs; return new DelegatingResultSet(rs, this); }
public boolean absolute(int a) throws SQLException { SQLException err = null; try { return super.absolute(a); } catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(LoggingResultSet.this, err); } }
public void afterLast() throws SQLException { try { super.afterLast(); } finally { handleSQLWarning(LoggingResultSet.this); } }
public String toString() { StringBuffer buf = new StringBuffer("resultset ").append(hashCode()); appendInfo(buf); return buf.toString(); }
/** * Return the inner-most wrapped delegate. */ public ResultSet getInnermostDelegate() { return (_del == null) ? _rs : _del.getInnermostDelegate(); }
public void close() throws SQLException { SQLException err = null; try { super.close(); } catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(LoggingResultSet.this, err); } }
public boolean last() throws SQLException { SQLException err = null; try { return super.last(); } catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(LoggingResultSet.this, err); } }
public boolean first() throws SQLException { try { return super.first(); } finally { handleSQLWarning(LoggingResultSet.this); } }
public void beforeFirst() throws SQLException { try { super.beforeFirst(); } finally { handleSQLWarning(LoggingResultSet.this); } }
protected void appendInfo(StringBuffer buf) { if (_del != null) _del.appendInfo(buf); }
public String toString() { StringBuffer buf = new StringBuffer("resultset ").append(hashCode()); appendInfo(buf); return buf.toString(); }
/** * Return the inner-most wrapped delegate. */ public ResultSet getInnermostDelegate() { return (_del == null) ? _rs : _del.getInnermostDelegate(); }
public void close() throws SQLException { try { super.close(); } finally { handleSQLWarning(LoggingResultSet.this); } }
public boolean last() throws SQLException { SQLException err = null; try { return super.last(); } catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(LoggingResultSet.this, err); } }
public boolean first() throws SQLException { SQLException err = null; try { return super.first(); } catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(LoggingResultSet.this, err); } }
public void beforeFirst() throws SQLException { SQLException err = null; try { super.beforeFirst(); } catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(LoggingResultSet.this, err); } }
protected void appendInfo(StringBuffer buf) { if (_del != null) _del.appendInfo(buf); }
public String toString() { StringBuffer buf = new StringBuffer("resultset ").append(hashCode()); appendInfo(buf); return buf.toString(); }
protected ResultSet wrapResult(boolean wrap, ResultSet rs) { if (!wrap) return rs; // never wrap null if (rs == null) return null; return new DelegatingResultSet(rs, this); }
/** * Return the inner-most wrapped delegate. */ public ResultSet getInnermostDelegate() { return (_del == null) ? _rs : _del.getInnermostDelegate(); }