/** * Sets the specified {@link Property} to the given value. For generated models, it is preferred to call a * generated set[Property] method instead. * * @param property the property to set * @param value the new value for the property */ public <TYPE> void set(Property<TYPE> property, TYPE value) { if (setValues == null) { setValues = newValuesStorage(); } if (!shouldSaveValue(property, value)) { return; } saver.save(property, setValues, value); }
private void readFieldIntoModel(SquidCursor<?> cursor, com.yahoo.squidb.sql.Field<?> field) { try { if (field instanceof Property<?>) { Property<?> property = (Property<?>) field; saver.save(property, values, cursor.get(property)); } } catch (IllegalArgumentException e) { // underlying cursor may have changed, suppress } }
/** * Sets the specified {@link Property} to the given value. For generated models, it is preferred to call a * generated set[Property] method instead. * * @param property the property to set * @param value the new value for the property */ public <TYPE> void set(Property<TYPE> property, TYPE value) { if (setValues == null) { setValues = newValuesStorage(); } if (!shouldSaveValue(property, value)) { return; } saver.save(property, setValues, value); }
private void readFieldIntoModel(SquidCursor<?> cursor, com.yahoo.squidb.sql.Field<?> field) { try { if (field instanceof Property<?>) { Property<?> property = (Property<?>) field; saver.save(property, values, cursor.get(property)); } } catch (IllegalArgumentException e) { // underlying cursor may have changed, suppress } }