P
- type of the dependent persistent object.T
- type of the dependent transport object.public interface DependentUpdater<P extends Storable<?>,T extends Transportable<? super T,?>>
void add(T dependent)
DependentEntity entity = new DependentEntity(dependent);
DependentEntity entity = dependentDao.create(dependent,...);
dependents.add(dependentEntity);
dependent.setOwner(idependent);
dependent
- the dependent to add.void update(P dependentTarget, T dependentSource)
dependentTarget
- object to update.dependentSource
- object to take the data from.void delete(P dependent)
Example:
dependents.remove(dependent);
dependent
- dependent to delete.Copyright © 2015. All Rights Reserved.