/** * {@inheritDoc} * * @see java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp, * java.util.Calendar) */ // @Override public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException { checkClosed(); try { this.internalPreparedStatement.setTimestamp(parameterIndex, x, cal); if (this.logStatementsEnabled){ this.logParams.put(parameterIndex, PoolUtil.safePrint(x, ", cal=", cal)); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.PreparedStatement#setDate(int, java.sql.Date, * java.util.Calendar) */ // @Override public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException { checkClosed(); try { this.internalPreparedStatement.setDate(parameterIndex, x, cal); if (this.logStatementsEnabled){ this.logParams.put(parameterIndex, PoolUtil.safePrint(x, ", cal=", cal)); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.PreparedStatement#setTime(int, java.sql.Time, * java.util.Calendar) */ // @Override public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException { checkClosed(); try { this.internalPreparedStatement.setTime(parameterIndex, x, cal); if (this.logStatementsEnabled){ this.logParams.put(parameterIndex, PoolUtil.safePrint(x, ", cal=", cal)); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.PreparedStatement#setNull(int, int, java.lang.String) */ // @Override public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException { checkClosed(); try { this.internalPreparedStatement.setNull(parameterIndex, sqlType, typeName); if (this.logStatementsEnabled){ this.logParams.put(parameterIndex, PoolUtil.safePrint("[SQL NULL of type ", sqlType, ", type = ", typeName, "]")); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.CallableStatement#setNull(java.lang.String, int) */ public void setNull(String parameterName, int sqlType) throws SQLException { checkClosed(); try { this.internalCallableStatement.setNull(parameterName, sqlType); if (this.logStatementsEnabled){ this.logParams.put(parameterName, PoolUtil.safePrint("[SQL NULL type ", sqlType, "]")); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.CallableStatement#setNull(java.lang.String, int, * java.lang.String) */ // @Override public void setNull(String parameterName, int sqlType, String typeName) throws SQLException { checkClosed(); try { this.internalCallableStatement.setNull(parameterName, sqlType, typeName); if (this.logStatementsEnabled){ this.logParams.put(parameterName, PoolUtil.safePrint("[SQL NULL type ", sqlType, ", type=", typeName+"]")); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.CallableStatement#setTimestamp(java.lang.String, * java.sql.Timestamp, java.util.Calendar) */ // @Override public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException { checkClosed(); try { this.internalCallableStatement.setTimestamp(parameterName, x, cal); if (this.logStatementsEnabled){ this.logParams.put(parameterName, PoolUtil.safePrint(x, ", cal=", cal)); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.CallableStatement#setTime(java.lang.String, java.sql.Time, * java.util.Calendar) */ // @Override public void setTime(String parameterName, Time x, Calendar cal) throws SQLException { checkClosed(); try { this.internalCallableStatement.setTime(parameterName, x, cal); if (this.logStatementsEnabled){ this.logParams.put(parameterName, PoolUtil.safePrint(x, ", cal=", cal)); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }
/** * {@inheritDoc} * * @see java.sql.CallableStatement#setDate(java.lang.String, java.sql.Date, * java.util.Calendar) */ // @Override public void setDate(String parameterName, Date x, Calendar cal) throws SQLException { checkClosed(); try { this.internalCallableStatement.setDate(parameterName, x, cal); if (this.logStatementsEnabled){ this.logParams.put(parameterName, PoolUtil.safePrint(x, ", cal=", cal)); } } catch (SQLException e) { throw this.connectionHandle.markPossiblyBroken(e); } }