/** * {@inheritDoc} */ @Override public final void setNull(int parameterIndex, int sqlType) throws SQLException { checkValidParameterIndex(parameterIndex); // ignore sqlType this.paramsList.setNull(parameterIndex - 1); }
/** * {@inheritDoc} */ @Override public final void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException { checkValidParameterIndex(parameterIndex); // ignore sqlType and typeName this.paramsList.setNull(parameterIndex - 1); }
/** * {@inheritDoc} */ @Override public final void updateNull(int columnIndex) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateNull"); final int index = columnIndex - 1; currentRow.setNull(index); this.changedColumns.set(index); }
boolean boolValue = rs.getBoolean(columnIndex); if (rs.wasNull()) { result.setNull(index); byte byteValue = rs.getByte(columnIndex); if (rs.wasNull()) { result.setNull(index); short shortValue = rs.getShort(columnIndex); if (rs.wasNull()) { result.setNull(index); int intValue = rs.getInt(columnIndex); if (rs.wasNull()) { result.setNull(index); long longValue = rs.getLong(columnIndex); if (rs.wasNull()) { result.setNull(index); float fltValue = rs.getFloat(columnIndex); if (rs.wasNull()) { result.setNull(index); double dblValue = rs.getDouble(columnIndex); if (rs.wasNull()) { result.setNull(index); String strValue = rs.getString(columnIndex);
/** * {@inheritDoc} */ @Override public final void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateBigDecimal"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSQLType(columnIndex), "BigDecimal"); cvc.setBigDecimal(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }
boolean boolValue = rs.getBoolean(columnIndex); if (rs.wasNull()) { result.setNull(index); byte byteValue = rs.getByte(columnIndex); if (rs.wasNull()) { result.setNull(index); short shortValue = rs.getShort(columnIndex); if (rs.wasNull()) { result.setNull(index); int intValue = rs.getInt(columnIndex); if (rs.wasNull()) { result.setNull(index); long longValue = rs.getLong(columnIndex); if (rs.wasNull()) { result.setNull(index); float fltValue = rs.getFloat(columnIndex); if (rs.wasNull()) { result.setNull(index); double dblValue = rs.getDouble(columnIndex); if (rs.wasNull()) { result.setNull(index); String strValue = rs.getString(columnIndex);
/** * {@inheritDoc} */ @Override public final void updateBytes(int columnIndex, byte[] x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateBytes"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSQLType(columnIndex), "byte[]"); cvc.setBytes(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }
/** * {@inheritDoc} */ @Override public final void updateDate(int columnIndex, Date x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateDate"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSQLType(columnIndex), "Date"); cvc.setDate(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }
/** * {@inheritDoc} */ @Override public final void updateTime(int columnIndex, Time x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateTime"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSQLType(columnIndex), "Time"); cvc.setTime(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }
/** * {@inheritDoc} */ @Override public final void updateString(int columnIndex, String x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateString"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSQLType(columnIndex), "String"); cvc.setString(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }
/** * {@inheritDoc} */ @Override public final void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateTimestamp"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSQLType(columnIndex), "Timestamp"); cvc.setTimestamp(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }
currentRow.setNull(columnIndex - 1);
/** * {@inheritDoc} */ @Override public final void updateObject(int columnIndex, Object x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateObject"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSQLType(columnIndex), "Object"); cvc.setObject(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }
boolean boolValue = rs.getBoolean(columnIndex); if (rs.wasNull()) { result.setNull(index); byte byteValue = rs.getByte(columnIndex); if (rs.wasNull()) { result.setNull(index); short shortValue = rs.getShort(columnIndex); if (rs.wasNull()) { result.setNull(index); int intValue = rs.getInt(columnIndex); if (rs.wasNull()) { result.setNull(index); long longValue = rs.getLong(columnIndex); if (rs.wasNull()) { result.setNull(index); float fltValue = rs.getFloat(columnIndex); if (rs.wasNull()) { result.setNull(index); double dblValue = rs.getDouble(columnIndex); if (rs.wasNull()) { result.setNull(index); String strValue = rs.getString(columnIndex);
boolean boolValue = rs.getBoolean(columnIndex); if (rs.wasNull()) { result.setNull(index); byte byteValue = rs.getByte(columnIndex); if (rs.wasNull()) { result.setNull(index); short shortValue = rs.getShort(columnIndex); if (rs.wasNull()) { result.setNull(index); int intValue = rs.getInt(columnIndex); if (rs.wasNull()) { result.setNull(index); long longValue = rs.getLong(columnIndex); if (rs.wasNull()) { result.setNull(index); float fltValue = rs.getFloat(columnIndex); if (rs.wasNull()) { result.setNull(index); double dblValue = rs.getDouble(columnIndex); if (rs.wasNull()) { result.setNull(index); String strValue = rs.getString(columnIndex);