@Override public boolean execute(String sql) throws SQLException { boolean result; this.sql = sql; result = super.execute(sql); this.loggingAutoCommitHelper(); return result; }
@Override public ResultSet executeQuery(String sql) throws SQLException { this.sql = sql; ResultSet rs = new LoggingPhoenixResultSet(super.executeQuery(sql), phoenixMetricsLog, this.sql); this.loggingAutoCommitHelper(); return rs; }
@Override public int executeUpdate(String sql) throws SQLException { int result; this.sql = sql; result = super.executeUpdate(sql); this.loggingAutoCommitHelper(); return result; }
@Override public ResultSet getGeneratedKeys() throws SQLException { return new LoggingPhoenixResultSet(super.getGeneratedKeys(), phoenixMetricsLog, this.sql); }
@Override public ResultSet getResultSet() throws SQLException { // Re-use the cached ResultSet value since call to getResultSet() is not idempotent ResultSet resultSet = super.getResultSet(); return (resultSet == null) ? null : new LoggingPhoenixResultSet(resultSet, phoenixMetricsLog, sql); }
@Override public ResultSet getGeneratedKeys() throws SQLException { return new LoggingPhoenixResultSet(super.getGeneratedKeys(), phoenixMetricsLog, this.sql); }
@Override public ResultSet getResultSet() throws SQLException { return new LoggingPhoenixResultSet(super.getResultSet(), phoenixMetricsLog); }
@Override public ResultSet getGeneratedKeys() throws SQLException { return new LoggingPhoenixResultSet(super.getGeneratedKeys(), phoenixMetricsLog); }
@Override public ResultSet getResultSet() throws SQLException { // Re-use the cached ResultSet value since call to getResultSet() is not idempotent ResultSet resultSet = super.getResultSet(); return (resultSet == null) ? null : new LoggingPhoenixResultSet(resultSet, phoenixMetricsLog, sql); }
@Override public ResultSet executeQuery(String sql) throws SQLException { return new LoggingPhoenixResultSet(super.executeQuery(sql), phoenixMetricsLog); }
@Override public int executeUpdate(String sql) throws SQLException { int result; this.sql = sql; result = super.executeUpdate(sql); this.loggingAutoCommitHelper(); return result; }
@Override public boolean execute(String sql) throws SQLException { boolean result; this.sql = sql; result = super.execute(sql); this.loggingAutoCommitHelper(); return result; }
@Override public ResultSet executeQuery(String sql) throws SQLException { this.sql = sql; ResultSet rs = new LoggingPhoenixResultSet(super.executeQuery(sql), phoenixMetricsLog, this.sql); this.loggingAutoCommitHelper(); return rs; }