javax.resource.spi

Class ConnectionEvent


public class ConnectionEvent
extends EventObject

Field Summary

static int
CONNECTION_CLOSED
static int
CONNECTION_ERROR_OCCURRED
static int
LOCAL_TRANSACTION_COMMITTED
static int
LOCAL_TRANSACTION_ROLLEDBACK
static int
LOCAL_TRANSACTION_STARTED
protected int
id

Constructor Summary

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

Method Summary

Object
getConnectionHandle()
Exception
getException()
int
getId()
void
setConnectionHandle(Object connectionHandle)

Field Details

CONNECTION_CLOSED

public static final int CONNECTION_CLOSED
Field Value:
1

CONNECTION_ERROR_OCCURRED

public static final int CONNECTION_ERROR_OCCURRED
Field Value:
5

LOCAL_TRANSACTION_COMMITTED

public static final int LOCAL_TRANSACTION_COMMITTED
Field Value:
3

LOCAL_TRANSACTION_ROLLEDBACK

public static final int LOCAL_TRANSACTION_ROLLEDBACK
Field Value:
4

LOCAL_TRANSACTION_STARTED

public static final int LOCAL_TRANSACTION_STARTED
Field Value:
2

id

protected int id

Constructor Details

ConnectionEvent

public ConnectionEvent(ManagedConnection source,
                       int eid)

ConnectionEvent

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

Method Details

getConnectionHandle

public Object getConnectionHandle()

getException

public Exception getException()

getId

public int getId()

setConnectionHandle

public void setConnectionHandle(Object connectionHandle)