Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

18.4.3 Cluster specifications

This section describes the method and field values of each class.

Organization of this subsection
(1) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBCHAR class
(2) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBVARCHAR class
(3) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBNCHAR class
(4) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBNVARCHAR class
(5) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBMCHAR class
(6) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBMVARCHAR class
(7) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBBLOB class
(8) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBBINARY class
(9) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBDECIMAL class

(1) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBCHAR class

Description
This class corresponds to the CHAR type of HiRDB.

Constructors
Return value Method Function description
HiRDBCHAR HiRDBCHAR(String s)
throws SQLException
Generates a new HiRDBCHAR class.
If the length of the specified character string is 30,001 bytes or greater, SQLException is thrown.
HiRDBCHAR HiRDBCHAR(int len)
throws SQLException
Returns a HiRDBCHAR class that has a length of len.
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that (single-byte space character [Figure] len) was specified. If the specified len value is not in the range from 1 to 30,000, SQLException is thrown.

Methods
Return value Method Function description
String getString() Returns the String object.
int length() Returns the character string length.

(2) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBVARCHAR class

Description
This class corresponds to the VARCHAR type of HiRDB.

Constructors
Return value Method Function description
HiRDBVARCHAR HiRDBVARCHAR(String s)
throws SQLException
Generates a new HiRDBVARCHAR class.
If the length of the specified character string is 32,001 bytes or greater, SQLException is thrown.
HiRDBVARCHAR HiRDBVARCHAR(int len)
throws SQLException
Returns a HiRDBVARCHAR class that has a length of len.
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that (single-byte space character [Figure] len) was specified. If the specified len value is not in the range from 1 to 32,000, SQLException is thrown.

Methods
Return value Method Function description
String getString() Returns the String object.
int length() Returns the character string length.

(3) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBNCHAR class

Description
This class corresponds to the NCHAR type of HiRDB.

Constructors
Return value Method Function description
HiRDBNCHAR HiRDBNCHAR(String s)
throws SQLException
Generates a new HiRDBNCHAR class.
If the length of the specified character string is 15,001 bytes or greater, SQLException is thrown.
HiRDBNCHAR HiRDBNCHAR(int len)
throws SQLException
Returns a HiRDBNCHAR class that has a length of len (len is the number of double-byte characters).
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that (double-byte space character [Figure] len) was specified. If the specified len value is not in the range from 1 to 15,000, SQLException is thrown.

Methods
Return value Methods Function description
String getString() Returns the String object.
int length() Returns the character string length.

(4) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBNVARCHAR class

Description
This class corresponds to the NVARCHAR type of HiRDB.

Constructors
Return value Method Function description
HiRDBNVARCHAR HiRDBNVARCHAR(String s)
throws SQLException
Generates a new HiRDBNVARCHAR class.
If the length of the specified character string is 16,001 characters or greater, SQLException is thrown.
HiRDBNVARCHAR HiRDBNVARCHAR(int len)
throws SQLException
Returns a HiRDBNVARCHAR class that has a length of len (len is the number of double-byte characters).
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that (double-byte space character [Figure] len) was specified. If the specified len value is not in the range from 1 to 16,000, SQLException is thrown.

Methods
Return value Method Function description
String getString() Returns the String object.
int length() Returns the character string length.

(5) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBMCHAR class

Description
This class corresponds to the MCHAR type of HiRDB.

Constructors
Return value Method Function description
HiRDBMCHAR HiRDBMCHAR(String s)
throws SQLException
Generates a new HiRDBMCHAR class.
If the length of the specified character string is 30,001 bytes or greater, SQLException is thrown.
HiRDBMCHAR HiRDBMCHAR(int len)
throws SQLException
Returns a HiRDBMCHAR class that has a length of len.
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that (single-byte space character [Figure] len) was specified. If the specified len value is not in the range from 1 to 30,000, SQLException is thrown.

Methods
Return value Method Function description
String getString() Returns the String object.
int length() Returns the character string length.

(6) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBMVARCHAR class

Description
This class corresponds to the MVARCHAR type of HiRDB.

Constructors
Return value Method Function description
HiRDBMVARCHAR HiRDBMVARCHAR(String s)
throws SQLException
Generates a new HiRDBMVARCHAR class.
If the length of the specified character string is 32,001 bytes or greater, SQLException is thrown.
HiRDBMVARCHAR HiRDBMVARCHAR(int len)
throws SQLException
Returns a HiRDBMVARCHAR class that has a length of len.
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that (single-byte space character [Figure] len) was specified. If the specified len value is not in the range from 1 to 32,000, SQLException is thrown.

Method
Return value Method Function description
String getString() Returns the String object.
int length() Returns the character string length.

(7) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBBLOB class

Description
This class corresponds to the BLOB type of HiRDB.

Constructors
Return value Method Function description
HiRDBLOB HiRDBBLOB(byte[] b) Generates a new HiRDBBLOB class.
HiRDBBLOB HiRDBBLOB(int len)
throws SQLException
Returns a HiRDBBLOB class that has a length of len.
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that the number (0(0x30) [Figure] len) was specified. If the specified len value is 0 or less, SQLException is thrown.

Methods
Return value Method Function description
byte[] getBytes[] Returns byte[].
int length() Returns the byte[] length.

(8) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBBINARY class

Description
This class corresponds to the BINARY type of HiRDB.

Constructors
Return value Method Function description
HiRDBBINARY HiRDBBINARY(byte[] b) Generates a new HiRDBBINARY class.
HiRDBBINARY HiRDBBINARY(int len)
throws SQLException
Returns a HiRDBBINARY class that has a length of len.
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that the number (0(0x30) [Figure] len) was specified. If the specified len value is 0 or less, SQLException is thrown.

Methods
Return value Method Function description
byte[] getBytes() Returns byte[].
int length() Returns the byte[] length.

(9) JP.co.Hitachi.soft.HiRDB.pdjpp.runtime.HiRDBDECIMAL class

Description
This class corresponds to the DECIMAL type of HiRDB.

Constructors
Return value Method Function description
HiRDBDECIMAL HiRDBDECIMAL(String s)
throws SQLException
Generates a new HiRDBDECIMAL class.
If the character string of the argument contains a character string other than a number, a period, and a sign or if the precision and scale values obtained from the character string are 30 or higher, SQLException occurs.
HiRDBDECIMAL HiRDBDECIMAL
(java.math.BigDecimal)
throws SQLException
Generates a new HiRDBDECIMAL class.
If the precision and scale values in the arguments are 30 or higher, SQLException occurs.
HiRDBDECIMAL HiRDBDECIMAL(int x,int y)
throws SQLException
Returns a HiRDBDECIMAL class with precision x and scale y.
This constructor is used to specify this class in a single-row retrieval or the OUT parameter of a CALL statement. If this constructor is specified in an input variable, the system assumes that 0 was specified. If x is not in the range from 1 to 29, y is not in the range from 0 to 29, and x is less than y, SQLException occurs.

Methods
Return value Method Function description
String getString() Returns the String object.
java.math.BigDecimal getBigDecimal() Returns the java.math.BigDecimal object.
int precision() Returns the precision.
int scale() Returns the scale.