wt.fc.delete
Class StandardDeleteManager

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

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

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
private static String RESOURCE
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardDeleteManager()
           
 
Method Summary
protected  void checkMarkForDelete(Persistable obj)
          Ensure that it is valid to store the given persistable object into the datastore.
private  void dispatchVetoableEvent(DeleteManagerEvent a_event)
           
protected  void dispatchVetoableEvent(String eventType, Persistable obj)
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
 Persistable makeUnrestorable(Persistable obj)
          Makes the marked-for-delete object unrestorable.
 Persistable markForDelete(Persistable obj)
          Updates the given Persistable object in the datastore.
static StandardDeleteManager newStandardDeleteManager()
          Default factory for the class.
 void registerEvents(ManagerService ms)
          Register events with the passed ManagerService.
 Persistable restoreMarkForDelete(Persistable obj)
          Updates the given Persistable object in the datastore.
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, performStartupProcess, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values
Constructor Detail

StandardDeleteManager

public StandardDeleteManager()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

checkMarkForDelete

protected void checkMarkForDelete(Persistable obj)
                           throws WTException
Ensure that it is valid to store the given persistable object into the datastore.

Supported API: false

Parameters:
obj -
Throws:
WTException

dispatchVetoableEvent

protected void dispatchVetoableEvent(String eventType,
                                     Persistable obj)
                              throws WTException


Supported API: false

Parameters:
eventType -
obj -
Throws:
WTException

registerEvents

public void registerEvents(ManagerService ms)
Register events with the passed ManagerService.

Supported API: false

Specified by:
registerEvents in interface Manager
Overrides:
registerEvents in class StandardManager
Parameters:
ms -

newStandardDeleteManager

public static StandardDeleteManager newStandardDeleteManager()
                                                      throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardDeleteManager
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: 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

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

dispatchVetoableEvent

private void dispatchVetoableEvent(DeleteManagerEvent a_event)
                            throws WTException
Throws:
WTException