| Modifier and Type | Method and Description |
|---|---|
| public void | abort(Executor
The executor)Executor implementation which will
be used by abort.Redeclares java. Terminates an open connection. |
| public void | addWarning(SQLWarning
Warning to be added, will be chained to any
existing warnings. newWarning)Add a SQLWarning to this Connection object. |
| public String | Returns: the current schema nameObtain the name of the current schema, so that the NetworkServer can use it for piggy-backing |
| public Object | Returns: the LOB Object corresponding to this locator.the integer that represents the LOB locator value. key)Get the LOB reference corresponding to the locator. |
| public int | getNetworkTimeout()
Redeclares java. Retrieves the number of milliseconds the driver will wait for a database request to complete. |
| public int | |
| public String | Returns: the current schema nameRedeclares java. Get the name of the current schema. |
| public boolean | |
| public void | resetFromPool()
Resets the connection before it is returned from a PooledConnection to a new application request (wrapped by a BrokeredConnection). |
| public void | |
| public void | setNetworkTimeout(Executor
The executor, int Executor implementation which will
be used by setNetworkTimeout.The time in milliseconds to wait for the database
operation
to complete. If the JDBC driver does not support milliseconds, the
JDBC driver will round the value up to the nearest second. If the
timeout period expires before the operation
completes, a SQLException will be thrown.
A value of 0 indicates that there is not timeout for database operations. millis)Redeclares java. Sets the maximum period a |
| public void | setPrepareIsolation(int
Isolation level to change to. level is the DB2 level
specified in the package names which happen to correspond
to our internal levels. If
level == ExecutionContext.UNSPECIFIED_ISOLATION,
the statement won't be prepared with an isolation level. level)Set the transaction isolation level that will be used for the next prepare. |
| public void | setSchema(String
The new default schema schemaName)Redeclares java. Set the default schema for the Connection. |
| abort | back to summary |
|---|---|
| public void abort(Executor executor) throws SQLException Redeclares java. Doc from java. Terminates an open connection. Calling
Calling
It is possible that the aborting and releasing of the resources that are
held by the connection can take an extended period of time. When the
This method checks to see that there is an
| |
| addWarning | back to summary |
|---|---|
| public void addWarning(SQLWarning newWarning) throws SQLException Add a SQLWarning to this Connection object.
| |
| getCurrentSchemaName | back to summary |
|---|---|
| public String getCurrentSchemaName() throws SQLException Obtain the name of the current schema, so that the NetworkServer can use it for piggy-backing
| |
| getLOBMapping | back to summary |
|---|---|
| public Object getLOBMapping(int key) throws SQLException Get the LOB reference corresponding to the locator.
| |
| getNetworkTimeout | back to summary |
|---|---|
| public int getNetworkTimeout() throws SQLException Redeclares java. Doc from java. Retrieves the number of milliseconds the driver will
wait for a database request to complete.
If the limit is exceeded, a
| |
| getPrepareIsolation | back to summary |
|---|---|
| public int getPrepareIsolation() throws SQLException Return prepare isolation
| |
| getSchema | back to summary |
|---|---|
| public String getSchema() throws SQLException Redeclares java. Get the name of the current schema.
| |
| isInGlobalTransaction | back to summary |
|---|---|
| public boolean isInGlobalTransaction() Is this a global transaction
| |
| resetFromPool | back to summary |
|---|---|
| public void resetFromPool() throws SQLException Resets the connection before it is returned from a PooledConnection to a new application request (wrapped by a BrokeredConnection). Note that resetting the transaction isolation level is not performed as part of this method. Temporary tables, IDENTITY_VAL_LOCAL and current schema are reset.
| |
| setDrdaID | back to summary |
|---|---|
| public void setDrdaID(String drdaID) Set the DRDA identifier for this connection.
| |
| setNetworkTimeout | back to summary |
|---|---|
| public void setNetworkTimeout(Executor executor, int millis) throws SQLException Redeclares java. Doc from java. Sets the maximum period a Note This method is intended to address a rare but serious
condition where network partitions can cause threads issuing JDBC calls
to hang uninterruptedly in socket reads, until the OS TCP-TIMEOUT
(typically 10 minutes). This method is related to the
JDBC driver implementations may also choose to support the
Drivers may internally implement some or all of their API calls with multiple internal driver-database transmissions, and it is left to the driver implementation to determine whether the limit will be applied always to the response to the API call, or to any single request made during the API call. This method can be invoked more than once, such as to set a limit for an area of JDBC code, and to reset to the default on exit from this area. Invocation of this method has no impact on already outstanding requests.
The
When the driver determines that the
This method checks to see that there is an
| |
| setPrepareIsolation | back to summary |
|---|---|
| public void setPrepareIsolation(int level) throws SQLException Set the transaction isolation level that will be used for the next prepare. Used by network server to implement DB2 style isolation levels. Note the passed in level using the Derby constants from ExecutionContext and not the JDBC constants from java.sql.Connection.
| |
| setSchema | back to summary |
|---|---|
| public void setSchema(String schemaName) throws SQLException Redeclares java. Set the default schema for the Connection.
| |