wt.graph.service
Class StandardObjectGraphService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.graph.service.StandardObjectGraphService
All Implemented Interfaces:
Manager, NetFactor, ObjectGraphService, Serializable

public class StandardObjectGraphService
extends StandardManager
implements ObjectGraphService, Serializable

Use the newStandardObjectGraphService static factory method(s), not the StandardObjectGraphService 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: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 class StandardObjectGraphService.PostCRUDCallback
           
 class StandardObjectGraphService.PreCRUDCallback
           
 
Field Summary
private static String CLASSNAME
           
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
StandardObjectGraphService()
           
 
Method Summary
 ObjectGraph create(ObjectGraph graph)
          

Supported API: false
protected  ObjectGraph createComponents(ObjectGraph graph)
          

Supported API: false
 ObjectGraph delete(ObjectGraph graph)
          

Supported API: false
protected  ObjectGraph deleteComponents(ObjectGraph graph)
          

Supported API: false
protected  void dispatchVetoableEvent(String eventType, ObjectGraph graph)
          Dispatches a WorkInProgressServiceEvent that includes the event type and target (i.e., Workable object).
 String getConceptualClassname()
          Deprecated.  
protected  boolean isCreated(ObjectGraph graph)
          

Supported API: false
protected  boolean isDeleted(ObjectGraph graph)
          

Supported API: false
protected  boolean isUpdated(ObjectGraph graph)
          

Supported API: false
static StandardObjectGraphService newStandardObjectGraphService()
          Default factory for the class.
protected  void performStartupProcess()
          Overrides the startup process specific to the WIP service to provide custom startup for event subscription.
 void registerEvents(ManagerService manager)
          Overrides the registration of all applicable WIP service events with the service manager.
 ObjectGraph retrieve(ObjectGraph graph)
          

Supported API: false
protected  ObjectGraph retrieveComponents(ObjectGraph graph)
          

Supported API: false
 ObjectGraph update(ObjectGraph graph)
          

Supported API: false
protected  ObjectGraph updateComponents(ObjectGraph graph)
          

Supported API: false
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, 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
Constructor Detail

StandardObjectGraphService

public StandardObjectGraphService()
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

registerEvents

public void registerEvents(ManagerService manager)
Overrides the registration of all applicable WIP service events with the service manager.

Supported API: false

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

dispatchVetoableEvent

protected void dispatchVetoableEvent(String eventType,
                                     ObjectGraph graph)
                              throws WTException,
                                     WTPropertyVetoException
Dispatches a WorkInProgressServiceEvent that includes the event type and target (i.e., Workable object).

Supported API: false

Parameters:
eventType - The name of the PersistentManagerEvent type.
graph - The target of the persistable operation.
Throws:
WTException
WTPropertyVetoException

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Overrides the startup process specific to the WIP service to provide custom startup for event subscription. During subscription an anonymous inner class adapter is created per subscription to handle each specific event of interest.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

createComponents

protected ObjectGraph createComponents(ObjectGraph graph)
                                throws WTException,
                                       WTPropertyVetoException,
                                       ObjectGraphServiceException


Supported API: false

Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException

retrieveComponents

protected ObjectGraph retrieveComponents(ObjectGraph graph)
                                  throws WTException,
                                         WTPropertyVetoException,
                                         ObjectGraphServiceException


Supported API: false

Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException

updateComponents

protected ObjectGraph updateComponents(ObjectGraph graph)
                                throws WTException,
                                       WTPropertyVetoException,
                                       ObjectGraphServiceException


Supported API: false

Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException

deleteComponents

protected ObjectGraph deleteComponents(ObjectGraph graph)
                                throws WTException,
                                       WTPropertyVetoException,
                                       ObjectGraphServiceException


Supported API: false

Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException

isCreated

protected boolean isCreated(ObjectGraph graph)


Supported API: false

Parameters:
graph -
Returns:
boolean

isUpdated

protected boolean isUpdated(ObjectGraph graph)


Supported API: false

Parameters:
graph -
Returns:
boolean

isDeleted

protected boolean isDeleted(ObjectGraph graph)


Supported API: false

Parameters:
graph -
Returns:
boolean

newStandardObjectGraphService

public static StandardObjectGraphService newStandardObjectGraphService()
                                                                throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardObjectGraphService
Throws:
WTException

create

public ObjectGraph create(ObjectGraph graph)
                   throws WTException,
                          WTPropertyVetoException,
                          ObjectGraphServiceException


Supported API: false

Specified by:
create in interface ObjectGraphService
Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException

retrieve

public ObjectGraph retrieve(ObjectGraph graph)
                     throws WTException,
                            WTPropertyVetoException,
                            ObjectGraphServiceException


Supported API: false

Specified by:
retrieve in interface ObjectGraphService
Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException

update

public ObjectGraph update(ObjectGraph graph)
                   throws WTException,
                          WTPropertyVetoException,
                          ObjectGraphServiceException


Supported API: false

Specified by:
update in interface ObjectGraphService
Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException

delete

public ObjectGraph delete(ObjectGraph graph)
                   throws WTException,
                          WTPropertyVetoException,
                          ObjectGraphServiceException


Supported API: false

Specified by:
delete in interface ObjectGraphService
Parameters:
graph -
Returns:
ObjectGraph
Throws:
WTException
WTPropertyVetoException
ObjectGraphServiceException