Hitachi

Hitachi Advanced Database Application Development Guide


8.2.22 getWarnings()

Organization of this subsection

(1) Function

This method acquires as an SQLWarning object a warning reported by a call related to this Connection object.

This method acquires the SQLWarning object held by the corresponding Connection object. By executing the getNextWarning method of the acquired SQLWarning object, you can acquire the next warning.

(2) Format

public synchronized SQLWarning getWarnings() throws SQLException

(3) Arguments

None.

(4) Return value

The method returns the first SQLWarning object. If there is no SQLWarning object, the method returns null.

(5) Exceptions

If this Connection object is closed, the JDBC driver throws an SQLException.