| |
|
| java.lang.Object java.util.EventObject javax.resource.spi.ConnectionEvent
ConnectionEvent | public class ConnectionEvent extends EventObject (Code) | | The ConnectionEvent class provides information about the source of a
Connection related event. A ConnectionEvent contains:
- Type of connection event.
- Managed connection instance that generated the event.
- Connection handle associated with the managed connection.
- Optionally an exception indicating an error.
This class is used for the following types of notifications:
- Connection closed
- Local transaction started
- Local transaction commited
- Local transaction rolled back
- Connection error occurred
version: $Revision: 57196 $ |
CONNECTION_CLOSED | final public static int CONNECTION_CLOSED(Code) | | Connection has been closed
|
CONNECTION_ERROR_OCCURRED | final public static int CONNECTION_ERROR_OCCURRED(Code) | | Connection error has occurred
|
LOCAL_TRANSACTION_COMMITTED | final public static int LOCAL_TRANSACTION_COMMITTED(Code) | | Local transaction has been committed
|
LOCAL_TRANSACTION_ROLLEDBACK | final public static int LOCAL_TRANSACTION_ROLLEDBACK(Code) | | Local transaction has been rolled back
|
LOCAL_TRANSACTION_STARTED | final public static int LOCAL_TRANSACTION_STARTED(Code) | | Local transaction has been started
|
id | protected int id(Code) | | Type of event
|
serialVersionUID | final static long serialVersionUID(Code) | | since: 4.0.2 |
ConnectionEvent | public ConnectionEvent(ManagedConnection source, int eid)(Code) | | Create a new ConnectionEvent
Parameters: source - the source of the event Parameters: eid - the event id |
ConnectionEvent | public ConnectionEvent(ManagedConnection source, int eid, Exception exception)(Code) | | Create a new ConnectionEvent
Parameters: source - the source of the event Parameters: eid - the event id Parameters: exception - the exception associated with the event |
getConnectionHandle | public Object getConnectionHandle()(Code) | | Get the ConnectionHandle
the connection handle |
getException | public Exception getException()(Code) | | Get the exception
the exception |
getId | public int getId()(Code) | | Get the event type
the event id |
setConnectionHandle | public void setConnectionHandle(Object connectionHandle)(Code) | | Set the ConnectionHandle
Parameters: connectionHandle - the connection handle |
|
|
|