com.apelon.beans.dts.plugin.connection
Class DtsConnectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.apelon.beans.dts.plugin.connection.DtsConnectionEvent
All Implemented Interfaces:
Serializable

public class DtsConnectionEvent
extends EventObject

Defines the available Connection events that an interested class may listen for.

Since:
DTS 3.0
Version:
1.0
Author:
Pete DiBetta, JohnSzinger, Abhay Sinha
See Also:
DtsConnectionEvent, Serialized Form

Field Summary
static int CONNECTION_CLOSE
          Connection Close Event ID = CONNECTION_FIRST + 1
static int CONNECTION_FIRST
          Starts the ID sequence at 1000 for Connection events.
static int CONNECTION_LAST
          Reflects the current end of the ID sequence at CONNECTION_FIRST + 1 for Connection events.
static int CONNECTION_OPEN
          Open Connection Event ID = CONNECTION_FIRST
static int INVALID_CONNECTION_EVENT
          Value of -1 to flag an unitialized or invalid setting for {@link #connectionEventType)
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DtsConnectionEvent(Object source, int eventType)
          Constructs a DtsConnectionEvent object.
 
Method Summary
 int getConnectionEventType()
           
 void setConnectionEventType(int eventType)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONNECTION_FIRST

public static final int CONNECTION_FIRST
Starts the ID sequence at 1000 for Connection events.

Since:
DTS 3.0
See Also:
CONNECTION_LAST, CONNECTION_OPEN, CONNECTION_CLOSE, Constant Field Values

CONNECTION_OPEN

public static final int CONNECTION_OPEN
Open Connection Event ID = CONNECTION_FIRST

Since:
DTS 3.0
See Also:
CONNECTION_CLOSE, Constant Field Values

CONNECTION_CLOSE

public static final int CONNECTION_CLOSE
Connection Close Event ID = CONNECTION_FIRST + 1

Since:
DTS 3.0
See Also:
CONNECTION_CLOSE, Constant Field Values

CONNECTION_LAST

public static final int CONNECTION_LAST
Reflects the current end of the ID sequence at CONNECTION_FIRST + 1 for Connection events.

Since:
DTS 3.0
See Also:
CONNECTION_FIRST, CONNECTION_OPEN, CONNECTION_CLOSE, Constant Field Values

INVALID_CONNECTION_EVENT

public static final int INVALID_CONNECTION_EVENT
Value of -1 to flag an unitialized or invalid setting for {@link #connectionEventType)

Since:
DTS 3.0
See Also:
CONNECTION_OPEN, CONNECTION_CLOSE, Constant Field Values
Constructor Detail

DtsConnectionEvent

public DtsConnectionEvent(Object source,
                          int eventType)
Constructs a DtsConnectionEvent object. eventType sets connectionEventType. If eventType is not a valid Connection Event code then connectionEventType will be set to INVALID_CONNECTION_EVENT.

Parameters:
source - Should be an object that is a valid source of Connection events.
eventType - If valid Connection Event value, is used to set connectionEventType
See Also:
DtsConnectionListener, DtsConnectionAdapter
Method Detail

getConnectionEventType

public int getConnectionEventType()

setConnectionEventType

public void setConnectionEventType(int eventType)


Copyright © 2011. All Rights Reserved.