Package org.coliper.ibean.extension
Interface ModificationAwareExt
-
- All Superinterfaces:
ModificationAware
- All Known Implementing Classes:
ModificationAwareHandler
public interface ModificationAwareExt extends ModificationAware
ExtendsModificationAwarewith functionality to determine which fields have been modified.- See Also:
ModificationAware
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallFieldsModified()Checks if every field has been set since creation orModificationAware.resetModified().String[]getModifiedFieldNames()Gives the names of all bean fields that have been modified since creation or respectively since the last call ofModificationAware.resetModified().-
Methods inherited from interface org.coliper.ibean.extension.ModificationAware
isModified, resetModified
-
-
-
-
Method Detail
-
getModifiedFieldNames
String[] getModifiedFieldNames()
Gives the names of all bean fields that have been modified since creation or respectively since the last call ofModificationAware.resetModified().- Returns:
- a string array containing the names of the modified fields. If no
fields have been modified an empty array will be returned. The
names of the fields are deducible from the getter and setter
names depending on the bean style.
The order of field names returned is random and not be reliable!
-
allFieldsModified
boolean allFieldsModified()
Checks if every field has been set since creation orModificationAware.resetModified(). Can for example be used as a runtime check if an initialization has been complete.- Returns:
trueif each setter had been called
-
-