|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 source,
int eid)
Create a new ConnectionEvent |
|
ConnectionEvent(ManagedConnection source,
int eid,
Exception exception)
Create a new ConnectionEvent |
Method Summary | |
Object |
getConnectionHandle()
Get the ConnectionHandle |
Exception |
getException()
Get the exception |
int |
getId()
Get the event type |
void |
setConnectionHandle(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 source, int eid)
source
- the source of the eventeid
- the event idpublic ConnectionEvent(ManagedConnection source, int eid, Exception exception)
source
- the source of the eventeid
- the event idexception
- the exception associated with the eventMethod Detail |
public int getId()
public Exception getException()
public void setConnectionHandle(Object connectionHandle)
connectionHandle
- the connection handlepublic Object getConnectionHandle()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |