Movatterモバイル変換


[0]ホーム

URL:


         


Class ConnectionEvent

java.lang.Object  |  +--java.util.EventObject        |        +--javax.resource.spi.ConnectionEvent
All Implemented Interfaces:
java.io.Serializable

public classConnectionEvent
extends java.util.EventObject

The ConnectionEvent class provides information about the source of a connection related event.A ConnectionEvent instance contains the following information:

This class defines following types of event notifications:

See Also:
ConnectionEventListener,Serialized Form

CONNECTION_CLOSED
          Event notification that an application component has closed the connection
CONNECTION_ERROR_OCCURRED
          Event notification that an error occurred on the connection.
id
          Type of the event
LOCAL_TRANSACTION_COMMITTED
          Event notification that a Resource Manager Local Transaction was committed on the connection
LOCAL_TRANSACTION_ROLLEDBACK
          Event notification that a Resource Manager Local Transaction was rolled back on the connection
LOCAL_TRANSACTION_STARTED
          Event notification that a Resource Manager Local Transaction was started on the connection
 
Fields inherited from class java.util.EventObject
source
 
ConnectionEvent(ManagedConnection source, int eid)
          Construct a ConnectionEvent object.
ConnectionEvent(ManagedConnection source, int eid, java.lang.Exception exception)
          Construct a ConnectionEvent object.
 
getConnectionHandle()
          Get the connection handle associated with the Managed Connection instance.
getException()
          Get the exception.
getId()
          Get the type of event
setConnectionHandle(java.lang.Object connectionHandle)
          Set 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
 

CONNECTION_CLOSED

public static final intCONNECTION_CLOSED
Event notification that an application component has closed the connection

LOCAL_TRANSACTION_STARTED

public static final intLOCAL_TRANSACTION_STARTED
Event notification that a Resource Manager Local Transaction was started on the connection

LOCAL_TRANSACTION_COMMITTED

public static final intLOCAL_TRANSACTION_COMMITTED
Event notification that a Resource Manager Local Transaction was committed on the connection

LOCAL_TRANSACTION_ROLLEDBACK

public static final intLOCAL_TRANSACTION_ROLLEDBACK
Event notification that a Resource Manager Local Transaction was rolled back on the connection

CONNECTION_ERROR_OCCURRED

public static final intCONNECTION_ERROR_OCCURRED
Event notification that an error occurred on the connection. This event indicates that the ManagedConnection instance is now invalid and unusable.

id

protected intid
Type of the event

ConnectionEvent

publicConnectionEvent(ManagedConnection source,                       int eid)
Construct a ConnectionEvent object. Exception defaults to null.
Parameters:
source - ManagedConnection that is the source of the event
eid - type of the Connection event

ConnectionEvent

publicConnectionEvent(ManagedConnection source,                       int eid,                       java.lang.Exception exception)
Construct a ConnectionEvent object.
Parameters:
source - ManagedConnection that is the source of the event
exception - exception about to be thrown to the application
eid - type of the Connection event

getConnectionHandle

public java.lang.ObjectgetConnectionHandle()
Get the connection handle associated with the Managed Connection instance. Used for CONNECTION_CLOSED event.

setConnectionHandle

public voidsetConnectionHandle(java.lang.Object connectionHandle)
Set the connection handle. Used for CONNECTION_CLOSED event

getException

public java.lang.ExceptiongetException()
Get the exception. May be null.
Returns:
the exception about to be thrown.

getId

public intgetId()
Get the type of event

         


[8]ページ先頭

©2009-2025 Movatter.jp