public class BrokeredConnection40 extends BrokeredConnection implements EngineConnection40
control, isClosed, stateHoldability| Constructor and Description |
|---|
BrokeredConnection40(BrokeredConnectionControl control)
Creates a new instance of BrokeredConnection40
|
| 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()
Constructs an object that implements the
Blob interface. |
java.sql.Clob |
createClob()
Constructs an object that implements the
Clob interface. |
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 the real connection. |
java.lang.String |
getClientInfo(java.lang.String name)
getClientInfo forwards to the real connection. |
int |
getNetworkTimeout() |
boolean |
isValid(int timeout)
Checks if the connection has not been closed and is still valid.
|
boolean |
isWrapperFor(java.lang.Class<?> interfaces)
Returns false unless
interfaces is implemented |
BrokeredStatement |
newBrokeredStatement(BrokeredStatementControl statementControl)
returns an instance of JDBC4.0 speccific class BrokeredStatement40
|
BrokeredCallableStatement |
newBrokeredStatement(BrokeredStatementControl statementControl,
java.lang.String sql) |
BrokeredPreparedStatement |
newBrokeredStatement(BrokeredStatementControl statementControl,
java.lang.String sql,
java.lang.Object generatedKeys) |
void |
setClientInfo(java.util.Properties properties)
setClientInfo forwards to the real connection. |
void |
setClientInfo(java.lang.String name,
java.lang.String value)
setClientInfo forwards to the real connection. |
void |
setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds) |
<T> T |
unwrap(java.lang.Class<T> interfaces)
Returns
this if this class implements the interface |
addWarning, clearLOBMapping, clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getCurrentSchemaName, getExceptionFactory, getHoldability, getIsolationUptoDate, getLOBMapping, getMetaData, getPrepareIsolation, getRealConnection, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isInGlobalTransaction, isReadOnly, nativeSQL, noCurrentConnection, notifyException, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, resetFromPool, rollback, rollback, setAutoCommit, setCatalog, setDrdaID, setHoldability, setPrepareIsolation, setReadOnly, setSavepoint, setSavepoint, setSchema, setState, setTransactionIsolation, setTypeMap, statementHoldabilityCheck, syncState, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddWarning, clearLOBMapping, getCurrentSchemaName, getExceptionFactory, getHoldability, getLOBMapping, getPrepareIsolation, getSchema, isInGlobalTransaction, resetFromPool, setDrdaID, setPrepareIsolation, setSchemaclearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMappublic BrokeredConnection40(BrokeredConnectionControl control) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Array createArrayOf(java.lang.String typeName,
java.lang.Object[] elements)
throws java.sql.SQLException
createArrayOf in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.Blob createBlob()
throws java.sql.SQLException
Blob interface. The object
returned initially contains no data. The setBinaryStream and
setBytes methods of the Blob interface may be used to add data to
the Blob.createBlob in interface java.sql.ConnectionBlob interfacejava.sql.SQLException - if an object that implements the
Blob interface can not be constructed, this method is
called on a closed connection or a database access error occurs.public java.sql.Clob createClob()
throws java.sql.SQLException
Clob interface. The object
returned initially contains no data. The setAsciiStream,
setCharacterStream and setString methods of
the Clob interface may be used to add data to the Clob.createClob in interface java.sql.ConnectionClob interfacejava.sql.SQLException - if an object that implements the
Clob interface can not be constructed, this method is
called on a closed connection or a database access error occurs.public java.sql.NClob createNClob()
throws java.sql.SQLException
createNClob in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.SQLXML createSQLXML()
throws java.sql.SQLException
createSQLXML in interface java.sql.Connectionjava.sql.SQLExceptionpublic java.sql.Struct createStruct(java.lang.String typeName,
java.lang.Object[] attributes)
throws java.sql.SQLException
createStruct in interface java.sql.Connectionjava.sql.SQLExceptionpublic final boolean isValid(int timeout)
throws java.sql.SQLException
isValid in interface java.sql.Connectiontimeout - 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 void setClientInfo(java.lang.String name,
java.lang.String value)
throws java.sql.SQLClientInfoException
setClientInfo forwards to the real connection.setClientInfo in interface java.sql.Connectionname - the property key Stringvalue - the property value Stringjava.sql.SQLClientInfoException - if the property is not
supported or the real connection could not be obtained.public void setClientInfo(java.util.Properties properties)
throws java.sql.SQLClientInfoException
setClientInfo forwards to the real connection. If
the call to getRealConnection fails the resulting
SQLException is wrapped in a
SQLClientInfoException to satisfy the specified
signature.setClientInfo in interface java.sql.Connectionproperties - a Properties object with the
properties to set.java.sql.SQLClientInfoException - if the properties are not
supported or the real connection could not be obtained.public java.lang.String getClientInfo(java.lang.String name)
throws java.sql.SQLException
getClientInfo forwards to the real connection.getClientInfo in interface java.sql.Connectionname - a String that is the property key to get.String that is returned from the real connection.java.sql.SQLException - if a database access error occurs.public java.util.Properties getClientInfo()
throws java.sql.SQLException
getClientInfo forwards to the real connection.getClientInfo in interface java.sql.ConnectionProperties object
from the real connection.java.sql.SQLException - if a database access error occurs.public final BrokeredStatement newBrokeredStatement(BrokeredStatementControl statementControl) throws java.sql.SQLException
newBrokeredStatement in class BrokeredConnectionstatementControl - BrokeredStatementControljava.sql.SQLExceptionpublic BrokeredPreparedStatement newBrokeredStatement(BrokeredStatementControl statementControl, java.lang.String sql, java.lang.Object generatedKeys) throws java.sql.SQLException
newBrokeredStatement in class BrokeredConnectionjava.sql.SQLExceptionpublic BrokeredCallableStatement newBrokeredStatement(BrokeredStatementControl statementControl, java.lang.String sql) throws java.sql.SQLException
newBrokeredStatement in class BrokeredConnectionjava.sql.SQLExceptionpublic final boolean isWrapperFor(java.lang.Class<?> interfaces)
throws java.sql.SQLException
interfaces is implementedisWrapperFor in interface java.sql.Wrapperinterfaces - a Class defining an interface.java.sql.SQLException - if an error occurs while determining
whether this is a wrapper for an object
with the given interface.public final <T> T unwrap(java.lang.Class<T> interfaces)
throws java.sql.SQLException
this if this class implements the interfaceunwrap in interface java.sql.Wrapperinterfaces - a Class defining an interfacejava.sql.SQLException - if no object if found that implements the
interfacepublic void abort(java.util.concurrent.Executor executor)
throws java.sql.SQLException
abort in interface java.sql.Connectionabort in interface EngineConnection40java.sql.SQLExceptionpublic int getNetworkTimeout()
throws java.sql.SQLException
getNetworkTimeout in interface java.sql.ConnectiongetNetworkTimeout in interface EngineConnection40java.sql.SQLExceptionpublic void setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds)
throws java.sql.SQLException
setNetworkTimeout in interface java.sql.ConnectionsetNetworkTimeout in interface EngineConnection40java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.