/** * Sets the {@code byte} value of the given field. * * @param fieldName the field name. * @param value the value to insert. * @throws IllegalArgumentException if field name doesn't exists or isn't an integer field. */ public void setByte(String fieldName, byte value) { long columnIndex = row.getColumnIndex(fieldName); row.setLong(columnIndex, value); }
/** * Sets the {@code int} value of the given field. * * @param fieldName the field name to update. * @param value the value to insert. * @throws IllegalArgumentException if field name doesn't exists or isn't an integer field. */ public void setInt(String fieldName, int value) { long columnIndex = row.getColumnIndex(fieldName); row.setLong(columnIndex, value); }