wt.fc.delete
Interface DeleteManager

All Known Implementing Classes:
DeleteManagerFwd, StandardDeleteManager

public interface DeleteManager

The DeleteManager interface identifies the set of methods that applications use to manage the Mark for Delete state of their business objects. While all of the methods declared by this interface execute on the server, they are accessable to client application through a helper class. See DeleteHelper.

Supported API: true

Extendable: false


Method Summary
 Persistable makeUnrestorable(Persistable obj)
          Makes the marked-for-delete object unrestorable.
 Persistable markForDelete(Persistable obj)
          Updates the given Persistable object in the datastore.
 Persistable restoreMarkForDelete(Persistable obj)
          Updates the given Persistable object in the datastore.
 

Method Detail

markForDelete

public Persistable markForDelete(Persistable obj)
                          throws WTException
Updates the given Persistable object in the datastore. The markForDelete method ensures that the operation is valid before updating the Persistable object in the datastore.

Supported API: true

Parameters:
obj - The object to be modified in the datastore
Returns:
Persistable
Throws:
WTException

restoreMarkForDelete

public Persistable restoreMarkForDelete(Persistable obj)
                                 throws WTException
Updates the given Persistable object in the datastore. The object will nolonger be marked for delete.

Supported API: true

Parameters:
obj - The object to be modified in the datastore
Returns:
Persistable
Throws:
WTException

makeUnrestorable

public Persistable makeUnrestorable(Persistable obj)
                             throws WTException
Makes the marked-for-delete object unrestorable.

Parameters:
obj -
Returns:
The unrestorable object
Throws:
WTException