Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

17.7.45 setLONGVARBINARY_TruncError

(a) Function

Sets whether or not an exception is to be thrown if truncation occurs during acquisition of data of the LONGVARBINARY type (a JDBC SQL type).

(b) Format
 
public void setLONGVARBINARY_TruncError ( boolean mode ) throws SQLException
 
(c) Arguments

boolean mode
Specifies whether or not an exception is to be thrown when truncation occurs:
true
Throw an exception.
false
Do not throw an exception.
(d) Return value

None.

(e) Functional detail

Sets whether or not an exception is to be thrown if truncation occurs during acquisition of data of the LONGVARBINARY type (a JDBC SQL type). If this method is not set, the JDBC driver assumes that true was specified.

The specification value of this method becomes invalid if IGNORE is specified in the warningLevel argument of the setSQLWarningLevel method. In such a case, the JDBC driver operates as if false were specified.

A truncation that occurs when LONGVARBINARY data is retrieved refers to the action that occurs when the flowing conditional expression is satisfied:

 
actual-length-of-LONGVARBINARY-data-retrieved-by-SQL-execution > data-length-specified-by-setMaxBinarySize
 
(f) Exceptions

None.