Javadoc
Closes the connection. This also closes any XQExpression
and
XQPreparedExpression
obtained from this connection.
Once the connection is closed, no method other than close
or the isClosed
method may be called on the connection object.
Calling close on an XQConnection
object that is already closed
has no effect.
Note that an XQJ driver is not required to provide finalizer methods for
the connection and other objects. Hence it is strongly recommended that
users call this method explicitly to free any resources. It is also
recommended that they do so under a final block to ensure that the object
is closed even when there are exceptions.