@Override public void setDate(OptimizedElementArray row, int columnPosition, Date x) throws SQLException { if (x != null) { // mark as non-null and call the underlying type's method getConverterForSet(row.setNotNull(columnPosition - 1), "date", columnPosition).setDate(row, columnPosition, x); } }
/** * {@inheritDoc} */ @Override public final void setDate(int parameterIndex, java.sql.Date x) throws SQLException { checkValidParameterIndex(parameterIndex); Converters.getConverter(getType(parameterIndex), "java.sql.Date", true, parameterIndex).setDate(this.paramsList, parameterIndex, x); }
/** * {@inheritDoc} */ @Override public final void updateDate(int columnIndex, java.sql.Date x) throws SQLException { final Row currentRow = checkValidColumn(columnIndex); initRowUpdate("updateDate"); if (x != null) { ColumnValueConverter cvc = Converters.getConverter( getSnappyType(columnIndex, currentRow), "Date", true, columnIndex); cvc.setDate(currentRow, columnIndex, x); } else { currentRow.setNull(columnIndex - 1); } this.changedColumns.set(columnIndex - 1); }