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
XQException
to be thrown to the application
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anXQConnectionEvent
object initialized with the givenPooledXQConnection
object.Constructs anXQConnectionEvent
object initialized with the givenPooledXQConnection
object andXQException
object. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves theXQException
for thisXQConnectionEvent
object.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
XQConnectionEvent
Constructs anXQConnectionEvent
object initialized with the givenPooledXQConnection
object.XQException
defaults tonull
.- Parameters:
con
- the pooled connection that is the source of the event
-
XQConnectionEvent
Constructs anXQConnectionEvent
object initialized with the givenPooledXQConnection
object andXQException
object.- Parameters:
con
- the pooled connection that is the source of the eventex
- the XQException to be thrown to the application
-
-
Method Details
-
getXQException
Retrieves theXQException
for thisXQConnectionEvent
object.- Returns:
- the
XQException
to be thrown ornull
-