Package javax.xml.xquery
Class XQConnectionEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.xml.xquery.XQConnectionEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class XQConnectionEvent extends java.util.EventObjectAn event object that provides information about the source of a connection-related event.XQConnectionEventobjects are generated when an application closes a pooled connection and when an error occurs. TheXQConnectionEventobject 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XQConnectionEvent(PooledXQConnection con)Constructs anXQConnectionEventobject initialized with the givenPooledXQConnectionobject.XQConnectionEvent(PooledXQConnection con, XQException ex)Constructs anXQConnectionEventobject initialized with the givenPooledXQConnectionobject andXQExceptionobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XQExceptiongetXQException()Retrieves theXQExceptionfor thisXQConnectionEventobject.
-
-
-
Constructor Detail
-
XQConnectionEvent
public XQConnectionEvent(PooledXQConnection con)
Constructs anXQConnectionEventobject initialized with the givenPooledXQConnectionobject.XQExceptiondefaults tonull.- Parameters:
con- the pooled connection that is the source of the event
-
XQConnectionEvent
public XQConnectionEvent(PooledXQConnection con, XQException ex)
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 Detail
-
getXQException
public XQException getXQException()
Retrieves theXQExceptionfor thisXQConnectionEventobject.- Returns:
- the
XQExceptionto be thrown ornull
-
-