public boolean execute(String sql) throws SQLException { beforeExecuteStatement(this); try { return super.execute(sql); } finally { afterExecuteStatement(this); } }
protected ResultSet executeQuery(String sql, boolean wrap) throws SQLException { beforeExecuteStatement(this); try { return super.executeQuery(sql, wrap); } finally { afterExecuteStatement(this); } }
public int executeUpdate(String sql) throws SQLException { beforeExecuteStatement(this); try { return super.executeUpdate(sql); } finally { afterExecuteStatement(this); } }
/** * Execute the query, with the option of not wrapping it in a * {@link DelegatingResultSet}, which is the default. */ protected ResultSet executeQuery(String sql, boolean wrap) throws SQLException { ResultSet rs; if (_del != null) rs = _del.executeQuery(sql, false); else rs = _stmnt.executeQuery(sql); return wrapResult(rs, wrap); }
/** * Get the last result set, with the option of not wrapping it in a * {@link DelegatingResultSet}, which is the default. */ protected ResultSet getResultSet(boolean wrap) throws SQLException { ResultSet rs; if (_del != null) rs = _del.getResultSet(false); else rs = _stmnt.getResultSet(); return wrapResult(rs, wrap); }
public String toString() { StringBuffer buf = new StringBuffer("stmnt ").append(hashCode()); appendInfo(buf); return buf.toString(); }
/** * Return the base underlying data store statement. */ public Statement getInnermostDelegate() { return (_del == null) ? _stmnt : _del.getInnermostDelegate(); }
protected Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability, boolean wrap) throws SQLException { Statement stmnt; if (_del != null) stmnt = _del.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability, false); else { stmnt = _conn.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability); } if (wrap) stmnt = new DelegatingStatement(stmnt, this); return stmnt; }
public void cancel() throws SQLException { if (_logs.isJDBCEnabled()) _logs.logJDBC("cancel " + this, LoggingConnection.this); super.cancel(); }
public void close() throws SQLException { super.close(); synchronized (_cancelStatementPool) { _cancelStatementPool.add(this); } } }
protected void appendInfo(StringBuffer buf) { if (_del != null) _del.appendInfo(buf); }
public ResultSet getResultSet() throws SQLException { return getResultSet(true); }
/** * Execute the query, with the option of not wrapping it in a * {@link DelegatingResultSet}, which is the default. */ protected ResultSet executeQuery(String sql, boolean wrap) throws SQLException { ResultSet rs; if (_del != null) rs = _del.executeQuery(sql, false); else rs = _stmnt.executeQuery(sql); return wrapResult(rs, wrap); }
public String toString() { StringBuffer buf = new StringBuffer("stmnt ").append(hashCode()); appendInfo(buf); return buf.toString(); }
/** * Get the last result set, with the option of not wrapping it in a * {@link DelegatingResultSet}, which is the default. */ protected ResultSet getResultSet(boolean wrap) throws SQLException { ResultSet rs; if (_del != null) rs = _del.getResultSet(false); else rs = _stmnt.getResultSet(); return wrapResult(rs, wrap); }
/** * Return the base underlying data store statement. */ public Statement getInnermostDelegate() { return (_del == null) ? _stmnt : _del.getInnermostDelegate(); }
protected Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability, boolean wrap) throws SQLException { Statement stmnt; if (_del != null) stmnt = _del.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability, false); else { stmnt = _conn.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability); } if (wrap) stmnt = new DelegatingStatement(stmnt, this); return stmnt; }
public void cancel() throws SQLException { if (_logs.isJDBCEnabled()) _logs.logJDBC("cancel " + this, LoggingConnection.this); super.cancel(); }
public void close() throws SQLException { super.close(); synchronized (_cancelStatementPool) { _cancelStatementPool.add(this); } } }
protected void appendInfo(StringBuffer buf) { if (_del != null) _del.appendInfo(buf); }