wt.step.processor
Class WTImportEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bywt.step.processor.WTImportEvent
All Implemented Interfaces:
Serializable

public class WTImportEvent
extends EventObject

An event fired from the WTImportService when instances are found/created. To receive these event the receiver must register as a WTImportEventListener.

See Also:
WTImportEventListener, WTImportService, Serialized Form

Nested Class Summary
 class WTImportEvent.ComparablePersistableWrapper
           
 
Field Summary
private  int _eventType
           
private  Throwable _exception
           
private  String _id
           
private  Object _otherInstance
           
private  Object _targetInstance
           
private  int _targetType
           
static int EXISTING_INSTANCE_EVENT
           
static int ITERATION_TYPE
           
static int MASTER_TYPE
           
static int NEW_INSTANCE_EVENT
           
static int PERSISTENCE_EVENT
           
static int PROGRESS_EVENT
           
static int RELATIONSHIP_TYPE
           
static int UNDEFINED_TYPE
           
static int VERSION_TYPE
           
static int WARNING_EVENT
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WTImportEvent(Object src, Persistable nonPersistent, Persistable persistent)
           
WTImportEvent(Object src, Persistable targetInstance, Persistable otherInstance, int targetType, int eventType, String id1, String id2)
           
WTImportEvent(Object src, Persistable targetInstance, String warning)
           
WTImportEvent(Object src, String progressMessage)
           
WTImportEvent(Object src, Throwable exception)
           
 
Method Summary
 int getEventType()
           
 Throwable getException()
           
 String getId()
           
 Object getOtherInstance()
           
 Object getTargetInstance()
           
 Persistable getTargetInstancePersistable()
           
 int getTargetType()
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WARNING_EVENT

public static final int WARNING_EVENT
See Also:
Constant Field Values

NEW_INSTANCE_EVENT

public static final int NEW_INSTANCE_EVENT
See Also:
Constant Field Values

EXISTING_INSTANCE_EVENT

public static final int EXISTING_INSTANCE_EVENT
See Also:
Constant Field Values

PERSISTENCE_EVENT

public static final int PERSISTENCE_EVENT
See Also:
Constant Field Values

PROGRESS_EVENT

public static final int PROGRESS_EVENT
See Also:
Constant Field Values

MASTER_TYPE

public static final int MASTER_TYPE
See Also:
Constant Field Values

VERSION_TYPE

public static final int VERSION_TYPE
See Also:
Constant Field Values

ITERATION_TYPE

public static final int ITERATION_TYPE
See Also:
Constant Field Values

RELATIONSHIP_TYPE

public static final int RELATIONSHIP_TYPE
See Also:
Constant Field Values

UNDEFINED_TYPE

public static final int UNDEFINED_TYPE
See Also:
Constant Field Values

_targetInstance

private Object _targetInstance

_otherInstance

private Object _otherInstance

_targetType

private int _targetType

_eventType

private int _eventType

_id

private String _id

_exception

private Throwable _exception
Constructor Detail

WTImportEvent

public WTImportEvent(Object src,
                     Persistable nonPersistent,
                     Persistable persistent)

WTImportEvent

public WTImportEvent(Object src,
                     Persistable targetInstance,
                     Persistable otherInstance,
                     int targetType,
                     int eventType,
                     String id1,
                     String id2)

WTImportEvent

public WTImportEvent(Object src,
                     Throwable exception)

WTImportEvent

public WTImportEvent(Object src,
                     String progressMessage)

WTImportEvent

public WTImportEvent(Object src,
                     Persistable targetInstance,
                     String warning)
Method Detail

getTargetInstancePersistable

public Persistable getTargetInstancePersistable()

getTargetInstance

public Object getTargetInstance()

getOtherInstance

public Object getOtherInstance()

getId

public String getId()

getTargetType

public int getTargetType()

getEventType

public int getEventType()

getException

public Throwable getException()

toString

public String toString()