wt.graph.service
Class ObjectGraphServiceEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.graph.service.ObjectGraphServiceEvent
All Implemented Interfaces:
Serializable

public class ObjectGraphServiceEvent
extends KeyedEvent
implements Serializable



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static String POST_CREATE_GRAPH
          

Supported API: true
static String POST_DELETE_GRAPH
          

Supported API: true
static String POST_RETRIEVE_GRAPH
          

Supported API: true
static String POST_UPDATE_GRAPH
          

Supported API: true
static String PRE_CREATE_GRAPH
          

Supported API: true
static String PRE_DELETE_GRAPH
          

Supported API: true
static String PRE_UPDATE_GRAPH
          

Supported API: true
private static String RESOURCE
           
private  ObjectGraphService service
           
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
ObjectGraphServiceEvent(ObjectGraphService service, String eventType, ObjectGraph eventTarget)
          Constructs an object graph service's event from the specified service and its event type and target.
ObjectGraphServiceEvent(String eventType, Object eventTarget)
          Constructs single object graph service's event from the event type and collection target objects.
ObjectGraphServiceEvent(String eventType, WTCollection eventTarget)
          Constructs multi object graph service's event from the event type and collection target objects.
 
Method Summary
static String generateEventKey(String eventType)
          Generates an event key from an event type.
 ObjectGraphService getService()
          Gets the object for the association that plays role: service.
 ObjectGraph getTarget()
          

Supported API: true
 WTCollection getTargets()
          Returns WTCollection of ObjectGraph objects.
 
Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toMultiObjectEvent, toSingleObjectEvents, 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

PRE_CREATE_GRAPH

public static final String PRE_CREATE_GRAPH


Supported API: true

See Also:
Constant Field Values

POST_CREATE_GRAPH

public static final String POST_CREATE_GRAPH


Supported API: true

See Also:
Constant Field Values

POST_RETRIEVE_GRAPH

public static final String POST_RETRIEVE_GRAPH


Supported API: true

See Also:
Constant Field Values

PRE_UPDATE_GRAPH

public static final String PRE_UPDATE_GRAPH


Supported API: true

See Also:
Constant Field Values

POST_UPDATE_GRAPH

public static final String POST_UPDATE_GRAPH


Supported API: true

See Also:
Constant Field Values

PRE_DELETE_GRAPH

public static final String PRE_DELETE_GRAPH


Supported API: true

See Also:
Constant Field Values

POST_DELETE_GRAPH

public static final String POST_DELETE_GRAPH


Supported API: true

See Also:
Constant Field Values

service

private ObjectGraphService service
Constructor Detail

ObjectGraphServiceEvent

public ObjectGraphServiceEvent(ObjectGraphService service,
                               String eventType,
                               ObjectGraph eventTarget)
                        throws ObjectGraphServiceException,
                               WTPropertyVetoException
Constructs an object graph service's event from the specified service and its event type and target.

Supported API: false

Parameters:
service -
eventType -
eventTarget -
Throws:
ObjectGraphServiceException
WTPropertyVetoException

ObjectGraphServiceEvent

public ObjectGraphServiceEvent(String eventType,
                               WTCollection eventTarget)
                        throws ObjectGraphServiceException
Constructs multi object graph service's event from the event type and collection target objects.

Supported API: false

Parameters:
eventType -
eventTarget -
Throws:
ObjectGraphServiceException

ObjectGraphServiceEvent

public ObjectGraphServiceEvent(String eventType,
                               Object eventTarget)
                        throws ObjectGraphServiceException
Constructs single object graph service's event from the event type and collection target objects.

Supported API: false

Parameters:
eventType -
eventTarget -
Throws:
ObjectGraphServiceException
Method Detail

getService

public ObjectGraphService getService()
Gets the object for the association that plays role: service.

Supported API: false

Returns:
ObjectGraphService

generateEventKey

public static String generateEventKey(String eventType)
Generates an event key from an event type.

Supported API: false

Parameters:
eventType -
Returns:
String

getTarget

public ObjectGraph getTarget()


Supported API: true

Returns:
ObjectGraph

getTargets

public WTCollection getTargets()
Returns WTCollection of ObjectGraph objects. Use when this event is dispatched as multi object event.

Supported API: true

Returns:
WTCollection