java.lang.AutoCloseable, java.sql.Connection, java.sql.WrapperBrokeredConnection, BrokeredConnection42, EmbedConnectionpublic interface EngineConnection
extends java.sql.Connection
| Modifier and Type | Method | Description |
|---|---|---|
void |
abort(java.util.concurrent.Executor executor) |
|
void |
addWarning(java.sql.SQLWarning newWarning) |
Add a SQLWarning to this Connection object.
|
java.lang.String |
getCurrentSchemaName() |
Obtain the name of the current schema, so that the NetworkServer can
use it for piggy-backing
|
java.lang.Object |
getLOBMapping(int key) |
Get the LOB reference corresponding to the locator.
|
int |
getNetworkTimeout() |
|
int |
getPrepareIsolation() |
Return prepare isolation
|
java.lang.String |
getSchema() |
Get the name of the current schema.
|
boolean |
isInGlobalTransaction() |
Is this a global transaction
|
void |
resetFromPool() |
Resets the connection before it is returned from a PooledConnection
to a new application request (wrapped by a BrokeredConnection).
|
void |
setDrdaID(java.lang.String drdaID) |
Set the DRDA identifier for this connection.
|
void |
setNetworkTimeout(java.util.concurrent.Executor executor,
int millis) |
|
void |
setPrepareIsolation(int level) |
Set the transaction isolation level that will be used for the
next prepare.
|
void |
setSchema(java.lang.String schemaName) |
Set the default schema for the Connection.
|
beginRequest, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, endRequest, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid, setTransactionIsolation, setTypeMapvoid setDrdaID(java.lang.String drdaID)
boolean isInGlobalTransaction()
void setPrepareIsolation(int level)
throws java.sql.SQLException
level - 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.java.sql.SQLExceptionint getPrepareIsolation()
throws java.sql.SQLException
java.sql.SQLExceptionvoid addWarning(java.sql.SQLWarning newWarning)
throws java.sql.SQLException
newWarning - Warning to be added, will be chained to any
existing warnings.java.sql.SQLExceptionjava.lang.Object getLOBMapping(int key)
throws java.sql.SQLException
key - the integer that represents the LOB locator value.java.sql.SQLExceptionjava.lang.String getCurrentSchemaName()
throws java.sql.SQLException
java.sql.SQLExceptionvoid resetFromPool()
throws java.sql.SQLException
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.
java.sql.SQLExceptionjava.lang.String getSchema()
throws java.sql.SQLException
getSchema in interface java.sql.Connectionjava.sql.SQLExceptionvoid setSchema(java.lang.String schemaName)
throws java.sql.SQLException
setSchema in interface java.sql.Connectionjava.sql.SQLExceptionvoid abort(java.util.concurrent.Executor executor)
throws java.sql.SQLException
abort in interface java.sql.Connectionjava.sql.SQLExceptionvoid setNetworkTimeout(java.util.concurrent.Executor executor,
int millis)
throws java.sql.SQLException
setNetworkTimeout in interface java.sql.Connectionjava.sql.SQLExceptionint getNetworkTimeout()
throws java.sql.SQLException
getNetworkTimeout in interface java.sql.Connectionjava.sql.SQLExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.