public class Diff extends Object
| Modifier and Type | Method and Description |
|---|---|
Map<Class<? extends Change>,Integer> |
countByType() |
List<Change> |
getChanges()
Full list of changes
|
List<Change> |
getChanges(Predicate<Change> predicate)
Changes that satisfies given filter condition
|
<C extends Change> |
getChangesByType(Class<C> type) |
<C extends Change> |
getObjectsByChangeType(Class<C> type)
Selects new, removed or changed objects
|
List |
getObjectsWithChangedProperty(String propertyName)
Selects objects
with changed property for given property name
|
List<PropertyChange> |
getPropertyChanges(String propertyName)
Selects property changes for given property name
|
boolean |
hasChanges() |
String |
toString() |
public <C extends Change> List getObjectsByChangeType(Class<C> type)
JaversException - AFFECTED_CDO_IS_NOT_AVAILABLE if diff is restored from repository,
see Change.getAffectedCdo()public List getObjectsWithChangedProperty(String propertyName)
JaversException - AFFECTED_CDO_IS_NOT_AVAILABLE if diff is restored from repository,
see Change.getAffectedCdo()public List<Change> getChanges(Predicate<Change> predicate)
public List<PropertyChange> getPropertyChanges(String propertyName)
public boolean hasChanges()
Copyright © 2014. All rights reserved.