|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.resource.spi.ConnectionEvent
The ConnectionEvent class provides information about the source of a Connection related event. A ConnectionEvent contains:
This class is used for the following types of notifications:
Field Summary | |
static int |
CONNECTION_CLOSED
Connection has been closed |
static int |
CONNECTION_ERROR_OCCURRED
Connection error has occurred |
protected int |
id
Type of event |
static int |
LOCAL_TRANSACTION_COMMITTED
Local transaction has been committed |
static int |
LOCAL_TRANSACTION_ROLLEDBACK
Local transaction has been rolled back |
static int |
LOCAL_TRANSACTION_STARTED
Local transaction has been started |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ConnectionEvent(ManagedConnection (src) source,
int eid)
Create a new ConnectionEvent |
|
ConnectionEvent(ManagedConnection (src) source,
int eid,
java.lang.Exception exception)
Create a new ConnectionEvent |
Method Summary | |
java.lang.Object |
getConnectionHandle()
Get the ConnectionHandle |
java.lang.Exception |
getException()
Get the exception |
int |
getId()
Get the event type |
void |
setConnectionHandle(java.lang.Object connectionHandle)
Set the ConnectionHandle |
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 |
public static final int CONNECTION_CLOSED
public static final int LOCAL_TRANSACTION_STARTED
public static final int LOCAL_TRANSACTION_COMMITTED
public static final int LOCAL_TRANSACTION_ROLLEDBACK
public static final int CONNECTION_ERROR_OCCURRED
protected int id
Constructor Detail |
public ConnectionEvent(ManagedConnection (src) source, int eid)
source
- the source of the eventeid
- the event idpublic ConnectionEvent(ManagedConnection (src) source, int eid, java.lang.Exception exception)
source
- the source of the eventeid
- the event idexception
- the exception associated with the eventMethod Detail |
public int getId()
public java.lang.Exception getException()
public void setConnectionHandle(java.lang.Object connectionHandle)
connectionHandle
- the connection handlepublic java.lang.Object getConnectionHandle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |