net.sourceforge.floggy.persistence
Interface Deletable


public interface Deletable

An interface that helps the developer to delete in cascade Persistable fields. This interface is optional. The developer can implement this class to clean up the RecordStore system from orphan entities. The delete method must contain all clean up code necessary to delete Persistable fields.

public class Order implements Persistable, Deletable {
  protected Shipment shipment;
 public void delete() throws FloggyException {
  if (shipment != null) {
   PersistableManager.getInstance().delete(shipment);
  }  }
}

Since:
1.3.0

Method Summary
 void delete()
          It is used to clean up references that the implementation class may have to another entities.
 

Method Detail

delete

void delete()
            throws FloggyException
It is used to clean up references that the implementation class may have to another entities.

Throws:
FloggyException - Exception thrown if an error occurs while deleting the object.


Copyright © 2006-2011 Floggy Open Source Group. All Rights Reserved.