wt.fc.delete
Class DeleteManagerFwd

java.lang.Object
  extended bywt.fc.delete.DeleteManagerFwd
All Implemented Interfaces:
DeleteManager, RemoteAccess, Serializable

public class DeleteManagerFwd
extends Object
implements RemoteAccess, DeleteManager, Serializable

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: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
(package private) static boolean SERVER
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
DeleteManagerFwd()
           
 
Method Summary
private static Manager getManager()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

DeleteManagerFwd

public DeleteManagerFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

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: false

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: false

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

Specified by:
makeUnrestorable in interface DeleteManager
Parameters:
obj -
Returns:
The unrestorable object
Throws:
WTException