public class ConnectionEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTION_CLOSED |
static int |
CONNECTION_ERROR_OCCURRED |
protected int |
id |
static int |
LOCAL_TRANSACTION_COMMITTED |
static int |
LOCAL_TRANSACTION_ROLLEDBACK |
static int |
LOCAL_TRANSACTION_STARTED |
Constructor and Description |
---|
ConnectionEvent(ManagedConnection source,
int eid)
Creates an event.
|
ConnectionEvent(ManagedConnection source,
int eid,
java.lang.Exception exception)
Creates an event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConnectionHandle()
Returns the connection handle.
|
java.lang.Exception |
getException()
Returns the exception
|
int |
getId()
Returns the type of the event.
|
void |
setConnectionHandle(java.lang.Object handle)
Sets the connection handle.
|
public static final int CONNECTION_CLOSED
public static final int CONNECTION_ERROR_OCCURRED
public static final int LOCAL_TRANSACTION_COMMITTED
public static final int LOCAL_TRANSACTION_ROLLEDBACK
public static final int LOCAL_TRANSACTION_STARTED
protected int id
public ConnectionEvent(ManagedConnection source, int eid)
public ConnectionEvent(ManagedConnection source, int eid, java.lang.Exception exception)
public java.lang.Object getConnectionHandle()
public void setConnectionHandle(java.lang.Object handle)
public java.lang.Exception getException()
public int getId()