Nonstop Database, HiRDB Version 9 UAP Development Guide
Sets the additional connection information needed by the database to be connected.
public void setDescription (String description)
None.
Sets the additional connection information needed by the database to be connected. Setting details and whether setting is required are shown as follows.
Setting | Setting details | Setting required? |
---|---|---|
HiRDB port number | Sets the HiRDB port number expressed as a character string. | Optional |
HiRDB environment variable group name | Sets the HiRDB environment variable group name following @HIRDBENVGRP=, expressed as a character string. If the environment variable name contains single-byte spaces or single-byte @ characters, enclose the name in single-byte quotation marks ("). When an environment variable group name is enclosed in single-byte quotation marks, all characters following the last single-byte quotation mark through the end of the character string are ignored. An environment variable group name containing single-byte quotation marks or single-byte commas cannot be specified. | Optional |
HiRDB environment variable group identifier | Sets the HiRDB environment variable group identifier expressed as four alphanumeric characters. | Required during XA connection |
ds.setDescription("@HIRDBENVGRP=/HiRDB_P/Client/HiRDB.ini");
ds.setDescription("22200");
ds.setDescription("@HIRDBENVGRP=HiRDB_ENV_GROUP");
ds.setDescription("@HIRDBENVGRP=C:\\HiRDB_P\\Client\\HiRDB.ini");
ds.setDescription("@HIRDBENVGRP=\"C:\\ProgramFiles\\HITACHI\\HiRDB\HiRDB.ini\"");
ds.setDescription("HDB1");
If an environment variable group name beginning with @ is specified during a connection other than the XA connection, and the specified information following @ contains a single-byte space, this method throws an SQLException.
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.