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