| java.lang.Object org.geotools.data.postgis.FeatureDiff
FeatureDiff | public class FeatureDiff (Code) | | Represents the difference between two states of the same feature.
author: aaime since: 2.4 |
DELETED | final public static int DELETED(Code) | | Feature existed in fromVersion, but has been deleted (change map is empty)
|
INSERTED | final public static int INSERTED(Code) | | Feature does not exists in fromVersion, has been created in the meantime (change map contains
all attributes in this case)
|
UPDATED | final public static int UPDATED(Code) | | Feature exists in both versions, but has been modified
|
FeatureDiff | FeatureDiff(Feature oldFeature, Feature newFeature)(Code) | | Creates a new feature difference for a modified feature
Parameters: ID - Parameters: oldFeature - Parameters: newFeature - Parameters: changes - |
getChangedAttributes | public List getChangedAttributes()(Code) | | Returns a read only list of modified attribute names if state is
FeatureDiff.UPDATED , an empty
list otherwise
|
getState | public int getState()(Code) | | The type of difference, either::
|
|
|