Package javax.xml.xquery
Class XQConnectionEvent
java.lang.Object
java.util.EventObject
javax.xml.xquery.XQConnectionEvent
- All Implemented Interfaces:
Serializable
An event object that provides information about the
source of a connection-related event.
XQConnectionEvent
objects are generated when an application closes a pooled connection
and when an error occurs. The XQConnectionEvent object
contains the folowing information:
- The pooled connection closed by the application
- In the case of an error, the
XQExceptionto be thrown to the application
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionConstructs anXQConnectionEventobject initialized with the givenPooledXQConnectionobject.Constructs anXQConnectionEventobject initialized with the givenPooledXQConnectionobject andXQExceptionobject. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves theXQExceptionfor thisXQConnectionEventobject.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
XQConnectionEvent
Constructs anXQConnectionEventobject initialized with the givenPooledXQConnectionobject.XQExceptiondefaults tonull.- Parameters:
con- the pooled connection that is the source of the event
-
XQConnectionEvent
Constructs anXQConnectionEventobject initialized with the givenPooledXQConnectionobject andXQExceptionobject.- Parameters:
con- the pooled connection that is the source of the eventex- the XQException to be thrown to the application
-
-
Method Details
-
getXQException
Retrieves theXQExceptionfor thisXQConnectionEventobject.- Returns:
- the
XQExceptionto be thrown ornull
-