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 valueMethodFunction description
HiRDBCHARHiRDBCHAR(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.
HiRDBCHARHiRDBCHAR(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 valueMethodFunction description
StringgetString()Returns the String object.
intlength()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 valueMethodFunction description
HiRDBVARCHARHiRDBVARCHAR(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.
HiRDBVARCHARHiRDBVARCHAR(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 valueMethodFunction description
StringgetString()Returns the String object.
intlength()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 valueMethodFunction description
HiRDBNCHARHiRDBNCHAR(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.
HiRDBNCHARHiRDBNCHAR(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 valueMethodsFunction description
StringgetString()Returns the String object.
intlength()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 valueMethodFunction description
HiRDBNVARCHARHiRDBNVARCHAR(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.
HiRDBNVARCHARHiRDBNVARCHAR(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 valueMethodFunction description
StringgetString()Returns the String object.
intlength()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 valueMethodFunction description
HiRDBMCHARHiRDBMCHAR(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.
HiRDBMCHARHiRDBMCHAR(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 valueMethodFunction description
StringgetString()Returns the String object.
intlength()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 valueMethodFunction description
HiRDBMVARCHARHiRDBMVARCHAR(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.
HiRDBMVARCHARHiRDBMVARCHAR(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 valueMethodFunction description
StringgetString()Returns the String object.
intlength()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 valueMethodFunction description
HiRDBLOBHiRDBBLOB(byte[] b)Generates a new HiRDBBLOB class.
HiRDBBLOBHiRDBBLOB(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 valueMethodFunction description
byte[]getBytes[]Returns byte[].
intlength()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 valueMethodFunction description
HiRDBBINARYHiRDBBINARY(byte[] b)Generates a new HiRDBBINARY class.
HiRDBBINARYHiRDBBINARY(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 valueMethodFunction description
byte[]getBytes()Returns byte[].
intlength()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 valueMethodFunction description
HiRDBDECIMALHiRDBDECIMAL(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.
HiRDBDECIMALHiRDBDECIMAL
(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.
HiRDBDECIMALHiRDBDECIMAL(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 valueMethodFunction description
StringgetString()Returns the String object.
java.math.BigDecimalgetBigDecimal()Returns the java.math.BigDecimal object.
intprecision()Returns the precision.
intscale()Returns the scale.