|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.idms.jdbc.IdmsConnectOptions
public class IdmsConnectOptions
This class defines connection options for IDMS. On Windows, connection options are usually specified in the registry. The most commonly used options can be set using the ODBC Administrator. All options can be set by manually editing the registry. The property names defined in this class are the value names.
On OS/390, z/OS, and Linux on both the mainframe and PC, connection options can be specified in the IDMS configuration file, which is formatted like a Windows "ini" file. The property names defined in this class are the key names.
On all platforms, connection options can be specified in the IDMS
properties file, which is formatted as a standard Java properties file.
The property names defined in this are appended to "Options." to form
the key in the properties file. These properties can also be specified
as system properties when prefixed with the system property prefix
.
When an option is specified in more than one place, a value from the registry or configuration file overrides a value from the properties file, which overrides the value set as a system property. For compatibility with the registry and ini file conventions, boolean options are usually set as "integer" values, where 1 is "true" and 0 is "false".
IdmsConnection
,
TraceObject
Field Summary | |
---|---|
static java.lang.String |
ACCESSIBLE_TABLES
Property name to enable an alternate view for IdmsDatabaseMetaData.getTables(java.lang.String, java.lang.String, java.lang.String, java.lang.String[]) . |
static java.lang.String |
CALL_OUTPUT_ALL
Property name to force an SQL CALL statement to return all parameters defined in the CREATE PROCEDURE statement instead of returning only those specified in the CALL statement. |
static java.lang.String |
CALL_SELECT
Property name to force an SQL CALL statement to be treated as a SELECT. |
static java.lang.String |
CATALOG_TABLE
Property name to specify an alternate view for IdmsDatabaseMetaData.getTables(java.lang.String, java.lang.String, java.lang.String, java.lang.String[]) when
ACCESSIBLE_TABLES is enabled. |
static java.lang.String |
CLOSE_COMMIT
Property name to force a COMMIT on each CLOSE CURSOR. |
static java.lang.String |
COMMIT_BEHAVIOR
Property name to set the default "ResultSetHoldability". |
static java.lang.String |
COMMIT_SUSPEND
Property name to force a SUSPEND after each COMMIT. |
static java.lang.String |
CONNECT_SUSPEND
Property name to force a SUSPEND immediately after CONNECT. |
static int |
CSATST06
SERVER_TRACE = 67108864 - enable #DBTRACE. |
static int |
CSATST08
SERVER_TRACE = 16777216 - enable #WTL. |
static int |
CSATST16
SERVER_TRACE = 65536 - enable #SNAP. |
static java.lang.String |
DEFAULT_SCHEMA
Property name to specify a default schema for all SQL operations using this connection. |
static java.lang.String |
DESCRIBE_EXTENDED
Property name to enable the return of extended descriptors. |
static java.lang.String |
FETCH_ROWS
Property name to set the default "FetchSize". |
static java.lang.String |
FETCH_SUSPEND
Property name to force a SUSPEND on each FETCH. |
static java.lang.String |
FETCH_SUSPEND_C
Deprecated. This is now the default behavior |
static java.lang.String |
FORCE_DESCRIBE
Property name to force an IdmsPreparedStatement or IdmsCallableStatement object to attempt to use descriptors from the database for input parameters instead of default descriptors. |
static java.lang.String |
JDBC_TRACE
Property name to enable the global JDBC trace. |
static java.lang.String |
JDBC_TRACE_ID
Property name to identify IDMS output in the JDBC log writer trace. |
static java.lang.String |
LOGIN_TIMEOUT
Property name to set the default loginTimeout. |
static java.lang.String |
OPTIONS
Prefix for IDMS options. |
static java.lang.String |
POOL_SUSPEND
Deprecated. use the IdmsDriverInterface.INTERACTIVE
suspend strategy, or the IdmsDriverInterface.CUSTOM
strategy with COMMIT_SUSPEND instead. |
static java.lang.String |
PRESERVE_PREPARED
Property name to force prepared statements to be preserved. |
static java.lang.String |
QUERY_TIMEOUT
Property name to set the default queryTimeout. |
static java.lang.String |
READ_ONLY
Property name to set the default access mode to read only. |
static java.lang.String |
SERVER_TRACE
Property name to enable the IDMSJSRV server trace. |
static java.lang.String |
SUSPEND_STRATEGY
Property name to specify a suspend strategy. |
static java.lang.String |
TXN_ISOLATION
Property name to set the default transaction isolation. |
static java.lang.String |
WAIT_TIMEOUT
Property name to set the system default socket timeout in seconds. |
Fields inherited from interface ca.idms.jdbc.IdmsDriverInterface |
---|
ACCOUNT, BATCH, CCIHOST, CCIPORT, CSUSPEND, CUSTOM, DEF_CCIPORT, DEF_TASK, DEFSCHEM, EWAIT, INFO, INTERACTIVE, NODE, PASSWORD, PROGRAM, RSINT, SBUFLEN, SERVICE, SSL, STRACE, SUSPEND, TASK, USER, VIA |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPTIONS
public static final java.lang.String JDBC_TRACE
public static final java.lang.String JDBC_TRACE_ID
public static final java.lang.String SERVER_TRACE
CSATST06
CSATST08
CSATST16
public static final int CSATST06
SERVER_TRACE
= 67108864 - enable #DBTRACE.
public static final int CSATST08
SERVER_TRACE
= 16777216 - enable #WTL.
public static final int CSATST16
SERVER_TRACE
= 65536 - enable #SNAP.
public static final java.lang.String ACCESSIBLE_TABLES
IdmsDatabaseMetaData.getTables(java.lang.String, java.lang.String, java.lang.String, java.lang.String[])
.
Set "AccessibleTables" to 1 to enable (the default), 0 to disable.
Compatible with the ODBC driver option.
public static final java.lang.String CALL_SELECT
public static final java.lang.String CALL_OUTPUT_ALL
public static final java.lang.String CATALOG_TABLE
IdmsDatabaseMetaData.getTables(java.lang.String, java.lang.String, java.lang.String, java.lang.String[])
when
ACCESSIBLE_TABLES
is enabled.
Compatible with the ODBC driver option.
public static final java.lang.String CLOSE_COMMIT
public static final java.lang.String COMMIT_SUSPEND
public static final java.lang.String CONNECT_SUSPEND
public static final java.lang.String DEFAULT_SCHEMA
public static final java.lang.String DESCRIBE_EXTENDED
When this is enabled and the server is CA IDMS r16 or later, the IdmsResultSetMetaData getSchemaName and getTableName methods identify the table for each column in a resultSet, unless the column is an expression.
This is disabled by default because the current implementation in CA IDMS r16 and r17 causes a ROWID column to be inserted into the result set for each table that contains columns in the result set.
Set "DescribeExtended" to 1 to enable, 0 to disable.
public static final java.lang.String FETCH_ROWS
public static final java.lang.String FETCH_SUSPEND
public static final java.lang.String FETCH_SUSPEND_C
public static final java.lang.String FORCE_DESCRIBE
When this is disabled (the default) and the SQL statement is SELECT or CALL), the driver defers the PREPARE until the statement is executed, if possible, which allows an OPEN to be piggybacked on the request. The driver uses default descriptors, based on the setXXX method, setNull type, or registerOutParameter type, to build the the internal SQLDA used to describe the parameter buffer.
When this is enabled or the SQL statement is INSERT, UPDATE, or DELETE with parameter markers, the driver issues the PREPARE with DESCRIBE INPUT before it sets or registers any parameters, and use the descriptors returned from the database, if compatible with the type implied by the setXXX method, setNull type, or registerOutParameter type. A separate OPEN will be issued when the SQL statement is SELECT or CALL.
Note that the statement is also PREPARED and DESCRIBED when an application invokes the getMetaData or getParameterMetaData method.
Set "ForceDescribe" to 1 to enable, 0 to disable.
public static final java.lang.String POOL_SUSPEND
IdmsDriverInterface.INTERACTIVE
suspend strategy, or the IdmsDriverInterface.CUSTOM
strategy with COMMIT_SUSPEND
instead.
public static final java.lang.String SUSPEND_STRATEGY
IdmsDriverInterface.CUSTOM
,
which is the default if not specified as a Connection or DataSource
property, to enable the detailed options:
public static final java.lang.String READ_ONLY
public static final java.lang.String TXN_ISOLATION
public static final java.lang.String COMMIT_BEHAVIOR
public static final java.lang.String PRESERVE_PREPARED
Starting with CA IDMS Server r17, the driver ignores the existence of any prepared statements when committing a transaction. The driver re-prepares the statement from the locally cached syntax as needed. When the SQL caching feature, available with CA IDMS r16, is enabled this has a minimal impact on performance.
This option restores the legacy behavior. The default is false.
public static final java.lang.String WAIT_TIMEOUT
In most cases, a value of 0 specifies that there is no timeout, and socket requests will wait indefinitely. When the native socket interface is CAICCI, a value of 0 indicates that the reply timeout specified for CAICCI should be used.
Set "WaitTimeOut" to the default socket timeout in seconds.
public static final java.lang.String LOGIN_TIMEOUT
An application normally uses the DriverManager.setLoginTimeout or
IdmsCommonDataSource.setLoginTimeout(int)
methods to set the loginTimeout.
Setting loginTimeout property to 0 specifies that the default system
timeout should be used if there is one, and that there is no timeout if not.
This property can be used to override the default system default
timeout, specified by WAIT_TIMEOUT
, for the loginTimeout.
Set "LoginTimeout" to the default loginTimeout in seconds.
public static final java.lang.String QUERY_TIMEOUT
An application normally use the IdmsStatement.getQueryTimeout()
method to set the reply timeout value for a specific statement object.
Setting queryTimeout property to 0 specifies that the default system
timeout should be used if there is one, and that there is no timeout if not.
This property can be used to override the default system default
timeout, specified by WAIT_TIMEOUT
, for the queryTimeout.
Set "QueryTimeout" to the default queryTimeout in seconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |