Nonstop Database, HiRDB Version 9 UAP Development Guide
This section describes the method and field values of each class.
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 x len) was specified. If the specified len value is not in the range from 1 to 30,000, SQLException is thrown. |
Return value | Method | Function description |
---|---|---|
String | getString() | Returns the String object. |
int | length() | Returns the character string length. |
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 x len) was specified. If the specified len value is not in the range from 1 to 32,000, SQLException is thrown. |
Return value | Method | Function description |
---|---|---|
String | getString() | Returns the String object. |
int | length() | Returns the character string length. |
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 x len) was specified. If the specified len value is not in the range from 1 to 15,000, SQLException is thrown. |
Return value | Methods | Function description |
---|---|---|
String | getString() | Returns the String object. |
int | length() | Returns the character string length. |
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 x len) was specified. If the specified len value is not in the range from 1 to 16,000, SQLException is thrown. |
Return value | Method | Function description |
---|---|---|
String | getString() | Returns the String object. |
int | length() | Returns the character string length. |
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 x len) was specified. If the specified len value is not in the range from 1 to 30,000, SQLException is thrown. |
Return value | Method | Function description |
---|---|---|
String | getString() | Returns the String object. |
int | length() | Returns the character string length. |
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 x len) was specified. If the specified len value is not in the range from 1 to 32,000, SQLException is thrown. |
Return value | Method | Function description |
---|---|---|
String | getString() | Returns the String object. |
int | length() | Returns the character string length. |
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) x len) was specified. If the specified len value is 0 or less, SQLException is thrown. |
Return value | Method | Function description |
---|---|---|
byte[] | getBytes[] | Returns byte[]. |
int | length() | Returns the byte[] length. |
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) x len) was specified. If the specified len value is 0 or less, SQLException is thrown. |
Return value | Method | Function description |
---|---|---|
byte[] | getBytes() | Returns byte[]. |
int | length() | Returns the byte[] length. |
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. |
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. |
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.