/** * @param property the {@link Property} to check * @return true if this property has a value that was set by the user */ public boolean fieldIsDirty(Property<?> property) { return valuesContainsKey(setValues, property); }
/** * @param property the {@link Property} to check * @return true if a value for this property has been read from the database or set by the user */ public boolean containsValue(Property<?> property) { return valuesContainsKey(setValues, property) || valuesContainsKey(values, property); }
/** * @param property the {@link Property} to check * @return true if a value for this property has been read from the database or set by the user, and the "active" * value stored (i.e. the value that would be returned by a call to {@link #get(Property)}) is not null. Does not * take into account column default values. */ public boolean containsNonNullValue(Property<?> property) { if (valuesContainsKey(setValues, property)) { return setValues.get(property.getName()) != null; } else if (valuesContainsKey(values, property)) { return values.get(property.getName()) != null; } return false; }
/** * @param property the {@link Property} to check * @return true if this property has a value that was set by the user */ public boolean fieldIsDirty(Property<?> property) { return valuesContainsKey(setValues, property); }
/** * @param property the {@link Property} to check * @return true if a value for this property has been read from the database or set by the user */ public boolean containsValue(Property<?> property) { return valuesContainsKey(setValues, property) || valuesContainsKey(values, property); }
/** * @param property the {@link Property} to check * @return true if a value for this property has been read from the database or set by the user, and the "active" * value stored (i.e. the value that would be returned by a call to {@link #get(Property)}) is not null. Does not * take into account column default values. */ public boolean containsNonNullValue(Property<?> property) { if (valuesContainsKey(setValues, property)) { return setValues.get(property.getName()) != null; } else if (valuesContainsKey(values, property)) { return values.get(property.getName()) != null; } return false; }