wt.fc.delete
Class StandardDeleteManager

java.lang.Object
  extended by wt.services.StandardManager
      extended by wt.fc.delete.StandardDeleteManager
All Implemented Interfaces:
Serializable, DeleteManager, NetFactor, wt.services.Manager

public class StandardDeleteManager
extends StandardManager
implements DeleteManager, Serializable

StandardDeleteManager is a concrete persistent manager targeted for WTObject classes.

Use the newStandardDeleteManager static factory method(s), not the StandardDeleteManager constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 Persistable markForDelete(Persistable obj)
          Updates the given Persistable object in the datastore.
 Persistable restoreMarkForDelete(Persistable obj)
          Updates the given Persistable object in the datastore.
 
Methods inherited from class wt.services.StandardManager
getManagerService, getManagerStatus, getName, getStartupType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

Specified by:
markForDelete in interface DeleteManager
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

Specified by:
restoreMarkForDelete in interface DeleteManager
Parameters:
obj - The object to be modified in the datastore
Returns:
Persistable
Throws:
WTException