|
||||||||||
| 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
public class ConnectionEvent
A listener for connection events, implemented by the application server.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ConnectionEvent(ManagedConnection source,
int eid)
Creates an event. |
|
ConnectionEvent(ManagedConnection source,
int eid,
java.lang.Exception exception)
Creates an event. |
|
| Method Summary | |
|---|---|
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. |
| 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 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
| Constructor Detail |
|---|
public ConnectionEvent(ManagedConnection source,
int eid)
public ConnectionEvent(ManagedConnection source,
int eid,
java.lang.Exception exception)
| Method Detail |
|---|
public java.lang.Object getConnectionHandle()
public void setConnectionHandle(java.lang.Object handle)
public java.lang.Exception getException()
public int getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||