public interface BaseQuery
The interface that needs to be extended by all Query interfaces in order
to free up the resources that this Query object uses. After the close()
method is called, the Query object is no longer usable. The isClosed()
method is used to determine whether the Query object is still valid or has
been closed.
| Method Summary | |
|---|---|
void |
clearWarnings()
Clears all warnings reported on this Query object. |
void |
close()
Closes this Query Object and makes it no longer usable. |
SQLWarning |
getWarnings()
Retrieves the first warning reported by invoking methods on this Query object. |
boolean |
isClosed()
This method returns the status of this object, the return value determining whether the object can be used or not. |
| Method Detail |
|---|
void close()
SQLRuntimeException - if an access error occursboolean isClosed()
SQLWarning getWarnings()
SQLWarning object.
The warning chain is automatically cleared each time
a method is (re)executed. This method may not be called on a closed
Query object; doing so will cause an SQLRuntimeException
to be thrown.
SQLWarning object or null
if there are no warnings
SQLRuntimeException - if a database access error occurs or this
method is called on a closed Query Objectvoid clearWarnings()
getWarnings
returns null until a new warning is
reported for this Query object.
SQLRuntimeException - if a database access error occurs