javax.resource.spi

Class ConnectionEvent

public class ConnectionEvent extends EventObject

Field Summary
static intCONNECTION_CLOSED
static intCONNECTION_ERROR_OCCURRED
protected intid
static intLOCAL_TRANSACTION_COMMITTED
static intLOCAL_TRANSACTION_ROLLEDBACK
static intLOCAL_TRANSACTION_STARTED
Constructor Summary
ConnectionEvent(ManagedConnection source, int eid)
ConnectionEvent(ManagedConnection source, int eid, Exception exception)
Method Summary
ObjectgetConnectionHandle()
ExceptiongetException()
intgetId()
voidsetConnectionHandle(Object connectionHandle)

Field Detail

CONNECTION_CLOSED

public static final int CONNECTION_CLOSED

CONNECTION_ERROR_OCCURRED

public static final int CONNECTION_ERROR_OCCURRED

id

protected int id

LOCAL_TRANSACTION_COMMITTED

public static final int LOCAL_TRANSACTION_COMMITTED

LOCAL_TRANSACTION_ROLLEDBACK

public static final int LOCAL_TRANSACTION_ROLLEDBACK

LOCAL_TRANSACTION_STARTED

public static final int LOCAL_TRANSACTION_STARTED

Constructor Detail

ConnectionEvent

public ConnectionEvent(ManagedConnection source, int eid)

ConnectionEvent

public ConnectionEvent(ManagedConnection source, int eid, Exception exception)

Method Detail

getConnectionHandle

public Object getConnectionHandle()

getException

public Exception getException()

getId

public int getId()

setConnectionHandle

public void setConnectionHandle(Object connectionHandle)