public class LogicalConnection40 extends LogicalConnection
physicalConnection_| Constructor and Description |
|---|
LogicalConnection40(Connection physicalConnection,
ClientPooledConnection pooledConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(java.util.concurrent.Executor executor) |
java.sql.Array |
createArrayOf(java.lang.String typeName,
java.lang.Object[] elements) |
java.sql.Blob |
createBlob() |
java.sql.Clob |
createClob() |
java.sql.NClob |
createNClob() |
java.sql.SQLXML |
createSQLXML() |
java.sql.Struct |
createStruct(java.lang.String typeName,
java.lang.Object[] attributes) |
java.util.Properties |
getClientInfo()
getClientInfo forwards to
physicalConnection_. |
java.lang.String |
getClientInfo(java.lang.String name)
getClientInfo forwards to
physicalConnection_. |
int |
getNetworkTimeout() |
boolean |
isValid(int timeout)
Checks if the connection has not been closed and is still valid.
|
boolean |
isWrapperFor(java.lang.Class<?> interfaces) |
protected LogicalDatabaseMetaData |
newLogicalDatabaseMetaData()
Returns a newly created logical database metadata object.
|
void |
setClientInfo(java.util.Properties properties)
setClientInfo forwards to
physicalConnection_. |
void |
setClientInfo(java.lang.String name,
java.lang.String value)
setClientInfo forwards to
physicalConnection_. |
void |
setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds) |
<T> T |
unwrap(java.lang.Class<T> interfaces) |
checkForNullPhysicalConnection, clearWarnings, close, closeWithoutRecyclingToPool, commit, createStatement, createStatement, createStatement, finalize, getAutoCommit, getCatalog, getHoldability, getMetaData, getRealMetaDataObject, getSchema, getServerVersion, getTransactionID, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, notifyException, nullPhysicalConnection, prepareCall, prepareCall, prepareCall, preparePositionedUpdateStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMappublic LogicalConnection40(Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException
SqlExceptionpublic java.sql.Array createArrayOf(java.lang.String typeName,
java.lang.Object[] elements)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Blob createBlob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Clob createClob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.NClob createNClob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.SQLXML createSQLXML()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Struct createStruct(java.lang.String typeName,
java.lang.Object[] attributes)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Properties getClientInfo()
throws java.sql.SQLException
getClientInfo forwards to
physicalConnection_.
getClientInfo always returns an empty
Properties object since Derby doesn't support
ClientInfoProperties.Properties objectjava.sql.SQLException - if an error occurspublic java.lang.String getClientInfo(java.lang.String name)
throws java.sql.SQLException
getClientInfo forwards to
physicalConnection_. Always returns a null
String since Derby does not support
ClientInfoProperties.name - a property key to get StringStringjava.sql.SQLException - if an error occursprotected LogicalDatabaseMetaData newLogicalDatabaseMetaData() throws java.sql.SQLException
newLogicalDatabaseMetaData in class LogicalConnectionjava.sql.SQLExceptionpublic boolean isValid(int timeout)
throws java.sql.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.java.sql.SQLException - if the call on the physical connection throws an
exception.public boolean isWrapperFor(java.lang.Class<?> interfaces)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setClientInfo(java.util.Properties properties)
throws java.sql.SQLClientInfoException
setClientInfo forwards to
physicalConnection_.properties - a Properties object with the
properties to setjava.sql.SQLClientInfoException - if an error occurspublic void setClientInfo(java.lang.String name,
java.lang.String value)
throws java.sql.SQLClientInfoException
setClientInfo forwards to
physicalConnection_.name - a property key Stringvalue - a property value Stringjava.sql.SQLClientInfoException - if an error occurspublic <T> T unwrap(java.lang.Class<T> interfaces)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void abort(java.util.concurrent.Executor executor)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getNetworkTimeout()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds)
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.