Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

17.7.25 setSQLWarningLevel

(a) Function

Sets the warning retention level for warnings that occur during SQL execution.

(b) Format
 
public void setSQLWarningLevel ( String warningLevel ) throws SQLException
 
(c) Arguments

String warningLevel
Specifies the retention level for the warning information that occurs during SQL execution.
The following values can be specified (for details about the relationships between the specification values and the warnings to be retained, see 17.4.10(2)(b) Issuing conditions for SQLWarning objects):
  • IGNORE
  • SQLWARN
  • ALLWARN
For this method, the value specified in the argument is not case sensitive. If the null value is specified, the current warning retention level that had been set by this method is invalidated, and the setting is returned to its initial status.
(d) Return value

None.

(e) Functional detail

Sets the retention level for the warning information that occurs during SQL execution. The default value when this method is not called is SQLWARN.

The value specified by this method becomes the value of the HiRDB_for_Java_SQLWARNING_LEVEL property, which is shown in 17.2.2(2) User properties.

(f) Exceptions

If the argument is a value other than the specification values shown above, this method throws an SQLException.