Hitachi

Hitachi Advanced Database Application Development Guide


8.3.35 setHADBOrderMode(int mode)

Organization of this subsection

(1) Function

Sets the sorting order of character string data in ORDER BY clauses that are enabled for the connection to the HADB server using this Connection object. The following ORDER BY clauses are applicable:

The information set in this method corresponds to the adb_clt_sql_order_mode operand in the client definition.

(2) Format

public void setHADBOrderMode(int mode) throws SQLException

(3) Arguments

int mode

Specifies the sort order for character string data when the following ORDER BY clause is specified.

  • The ORDER BY clause specified in the outermost query expression of the SELECT statement.

  • The ORDER BY clause specified in the outermost query expression body of the COPY statement.

Specify one of the following values:

  • AdbConnection.HADB_SQL_ORDER_MODE_BYTE

    Sort character string data by bytecode.

  • AdbConnection.HADB_SQL_ORDER_MODE_ISO

    Sort character string data by sort code (ISO/IEC 14651:2011 compliance).

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases:

(6) Notes