protected static interface AssociationSyncher.Helper
Modifier and Type | Method and Description |
---|---|
java.util.Set |
getLocalDMOs(Persistable foreignDMO)
Retrieve the set of local DMOs stored in a foreign DMO for this
association.
|
void |
remove(Persistable foreignDMO,
Persistable localDMO)
Remove the given local DMO from the set of local DMOs stored in a
foreign DMO for this association.
|
void |
replace(Persistable foreignDMO,
java.util.Set localDMOs)
Replace the set of local DMOs stored in a foreign DMO for this
association.
|
java.util.Set getLocalDMOs(Persistable foreignDMO) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
foreignDMO
- Foreign DMO from which to extract the set of local DMOs.null
.java.lang.IllegalAccessException
- if an access error occurs while invoking a method using
reflection.java.lang.reflect.InvocationTargetException
- if a method invoked using reflection throws an exception.void replace(Persistable foreignDMO, java.util.Set localDMOs) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
foreignDMO
- Foreign DMO which stores a reference to local DMOs.localDMOs
- The set of local DMOs which must replace the existing set.java.lang.IllegalAccessException
- if an access error occurs while invoking a method using
reflection.java.lang.reflect.InvocationTargetException
- if a method invoked using reflection throws an exception.void remove(Persistable foreignDMO, Persistable localDMO) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
foreignDMO
- Foreign DMO which stores a reference to local DMOs.localDMO
- The local DMO to be removed from the existing set.java.lang.IllegalAccessException
- if an access error occurs while invoking a method using
reflection.java.lang.reflect.InvocationTargetException
- if a method invoked using reflection throws an exception.