org.nuiton.topia.persistence.util
Interface Deletor<P,E>

Type Parameters:
P - the parent of the entity to delete (if the entity has no parent says is not in a association) of another entity, just used the Void type).
E - the type of the entity to delete.

public interface Deletor<P,E>

A simple contract to hook the deletion of an entity.

Author:
chemit

Method Summary
 void delete(P parent, E from)
          Hook to delete an entity from a prent entity.
 

Method Detail

delete

void delete(P parent,
            E from)
Hook to delete an entity from a prent entity.

Parameters:
parent - the parent of the entity
from - the entity to delete.


Copyright © 2004-2010 CodeLutin. All Rights Reserved.