public interface java.sql
BaseQuery


Show All Login
Java SE 6
  
Details
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.
since1.6

Methods
public void clearWarnings() Details
Clears all warnings reported on this Query object. After this method is called, the method getWarnings returns null until a new warning is reported for this Query object.
ThrowsSQLRuntimeException: if a database access error occurs
since1.6
public void close() Details
Closes this Query Object and makes it no longer usable. All the resources held by this object are released
ThrowsSQLRuntimeException: if an access error occurs
since1.6

Properties
public boolean isClosed() Details
This method returns the status of this object, the return value determining whether the object can be used or not.
returntrue if the Query Object is closed, false otherwise.
since1.6
public SQLWarning getWarnings() Details
Retrieves the first warning reported by invoking methods on this Query object. Subsequent Query object warnings will be chained to this 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.
returnthe first SQLWarning object or null if there are no warnings
ThrowsSQLRuntimeException: if a database access error occurs or this method is called on a closed Query Object
since1.6