Hitachi

Hitachi Advanced Database Application Development Guide


8.3.21 getMaxFieldSize()

Organization of this subsection

(1) Function

This method acquires the maximum number of bytes for a CHAR or VARCHAR column of a ResultSet object that is created by this Statement object. Any bytes in excess of this value are discarded.

(2) Format

public synchronized int getMaxFieldSize() throws SQLException

(3) Arguments

None.

(4) Return value

This method returns the maximum number of bytes for a CHAR or VARCHAR column. The method returns the value set by the setMaxFieldSize method. A value of 0 means that no maximum number of bytes has been set.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: