public class LogicalConnection40 extends LogicalConnection
physicalConnection_TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
LogicalConnection40(Connection physicalConnection,
ClientPooledConnection pooledConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Executor executor) |
Array |
createArrayOf(String typeName,
Object[] elements) |
Blob |
createBlob() |
Clob |
createClob() |
NClob |
createNClob() |
SQLXML |
createSQLXML() |
Struct |
createStruct(String typeName,
Object[] attributes) |
Properties |
getClientInfo()
getClientInfo forwards to
physicalConnection_. |
String |
getClientInfo(String name)
getClientInfo forwards to
physicalConnection_. |
int |
getNetworkTimeout() |
String |
getSchema() |
Map<String,Class<?>> |
getTypeMap()
Returns the type map for this connection.
|
boolean |
isValid(int timeout)
Checks if the connection has not been closed and is still valid.
|
boolean |
isWrapperFor(Class<?> interfaces) |
void |
setClientInfo(Properties properties)
setClientInfo forwards to
physicalConnection_. |
void |
setClientInfo(String name,
String value)
setClientInfo forwards to
physicalConnection_. |
void |
setNetworkTimeout(Executor executor,
int milliseconds) |
void |
setSchema(String schema) |
<T> T |
unwrap(Class<T> interfaces) |
checkForNullPhysicalConnection, clearWarnings, close, closeWithoutRecyclingToPool, commit, createStatement, createStatement, createStatement, finalize, getAutoCommit, getCatalog, getHoldability, getMetaData, getServerVersion, getTransactionID, getTransactionIsolation, getWarnings, isClosed, isReadOnly, nativeSQL, nullPhysicalConnection, prepareCall, prepareCall, prepareCall, preparePositionedUpdateStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMappublic LogicalConnection40(Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException
SqlExceptionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
SQLExceptionpublic Blob createBlob() throws SQLException
SQLExceptionpublic Clob createClob() throws SQLException
SQLExceptionpublic NClob createNClob() throws SQLException
SQLExceptionpublic SQLXML createSQLXML() throws SQLException
SQLExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
SQLExceptionpublic Properties getClientInfo() throws SQLException
getClientInfo forwards to
physicalConnection_.
getClientInfo always returns an empty
Properties object since Derby doesn't support
ClientInfoProperties.Properties objectSQLException - if an error occurspublic String getClientInfo(String name) throws SQLException
getClientInfo forwards to
physicalConnection_. Always returns a null
String since Derby does not support
ClientInfoProperties.name - a property key to get StringStringSQLException - if an error occurspublic Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap in interface ConnectiongetTypeMap in class LogicalConnectionSQLException - if a database access error occurspublic boolean isValid(int timeout)
throws SQLException
timeout - The time in seconds to wait for the database
operation used to validate the connection to complete. If the
timeout period expires before the operation completes, this
method returns false. A value of 0 indicates a timeout is not
applied to the database operation.SQLException - if the call on the physical connection throws an
exception.public boolean isWrapperFor(Class<?> interfaces) throws SQLException
SQLExceptionpublic void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo forwards to
physicalConnection_.properties - a Properties object with the
properties to setSQLClientInfoException - if an error occurspublic void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo forwards to
physicalConnection_.name - a property key Stringvalue - a property value StringSQLException - if an error occursSQLClientInfoExceptionpublic <T> T unwrap(Class<T> interfaces) throws SQLException
SQLExceptionpublic void setSchema(String schema) throws SQLException
SQLExceptionpublic String getSchema() throws SQLException
SQLExceptionpublic void abort(Executor executor) throws SQLException
SQLExceptionpublic void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException
SQLExceptionpublic int getNetworkTimeout()
throws SQLException
SQLExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.