public class EmbedConnection40 extends EmbedConnection implements EngineConnection40
autoCommit, dbMetadata, exceptionClose, memoryState, needCommit, NO_MEM, rootConnection, tr
Constructor and Description |
---|
EmbedConnection40(EmbedConnection inputConnection)
Creates a new instance of EmbedConnection40
|
EmbedConnection40(InternalDriver driver,
java.lang.String url,
java.util.Properties info) |
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.NClob |
createNClob() |
java.sql.SQLXML |
createSQLXML() |
java.sql.Struct |
createStruct(java.lang.String typeName,
java.lang.Object[] attributes) |
java.util.Properties |
getClientInfo()
getClientInfo always returns an empty
Properties object since Derby doesn't support
ClientInfoProperties. |
java.lang.String |
getClientInfo(java.lang.String name)
getClientInfo always returns a
null String since Derby doesn't support
ClientInfoProperties. |
int |
getNetworkTimeout() |
java.util.Map<java.lang.String,java.lang.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(java.lang.Class<?> interfaces)
Returns false unless
interfaces is implemented |
void |
setClientInfo(java.util.Properties properties)
setClientInfo will throw a
SQLClientInfoException unless the properties
parameter is empty, since Derby does not support any
properties. |
void |
setClientInfo(java.lang.String name,
java.lang.String value)
setClientInfo will always throw a
SQLClientInfoException since Derby does not support
any properties. |
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 |
addLobFile, addLOBMapping, addLOBReference, addWarning, beginAborting, cancelRunningStatement, checkForTransactionInProgress, checkIfClosed, clearLOBMapping, clearWarnings, close, close, commit, commitIfAutoCommit, commitIfNeeded, createBlob, createClob, createStatement, createStatement, createStatement, finalize, getApplicationConnection, getAutoCommit, getCatalog, getConnectionSynchronization, getContextManager, getCurrentSchemaName, getDatabase, getDBName, getEngineType, getExceptionFactory, getHoldability, getLanguageConnection, getLOBMapping, getLocalDriver, getMetaData, getPrepareIsolation, getResultSetOrderId, getSchema, getTR, getTransactionIsolation, getWarnings, handleException, handleException, isAborting, isClosed, isInGlobalTransaction, isReadOnly, nativeSQL, needCommit, newSQLException, newSQLException, newSQLException, newSQLException, prepareCall, prepareCall, prepareCall, prepareMetaDataStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, removeLobFile, removeLOBMapping, resetFromPool, restoreContextStack, rollback, rollback, setApplicationConnection, setAutoCommit, setCatalog, setDrdaID, setHoldability, setInactive, setPrepareIsolation, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, setupContextStack, stripSubSubProtocolPrefix, toString, transactionIsIdle, xa_commit, xa_prepare, xa_rollback
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addWarning, clearLOBMapping, getCurrentSchemaName, getExceptionFactory, getHoldability, getLOBMapping, getPrepareIsolation, getSchema, isInGlobalTransaction, resetFromPool, setDrdaID, setPrepareIsolation, setSchema
clearWarnings, close, commit, createBlob, createClob, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getMetaData, getTransactionIsolation, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
public EmbedConnection40(EmbedConnection inputConnection)
public EmbedConnection40(InternalDriver driver, java.lang.String url, java.util.Properties info) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Array createArrayOf(java.lang.String typeName, java.lang.Object[] elements) throws java.sql.SQLException
createArrayOf
in interface java.sql.Connection
java.sql.SQLException
public java.sql.NClob createNClob() throws java.sql.SQLException
createNClob
in interface java.sql.Connection
java.sql.SQLException
public java.sql.SQLXML createSQLXML() throws java.sql.SQLException
createSQLXML
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Struct createStruct(java.lang.String typeName, java.lang.Object[] attributes) throws java.sql.SQLException
createStruct
in interface java.sql.Connection
java.sql.SQLException
public boolean isValid(int timeout) throws java.sql.SQLException
isValid
in interface java.sql.Connection
timeout
- This should be the time in seconds to wait for the
database operation used to validate the connection to complete
(according to the JDBC4 JavaDoc). This is currently not supported/used.java.sql.SQLException
- if the parameter value is illegal or if a
database error has occurredpublic void setClientInfo(java.lang.String name, java.lang.String value) throws java.sql.SQLClientInfoException
setClientInfo
will always throw a
SQLClientInfoException
since Derby does not support
any properties.setClientInfo
in interface java.sql.Connection
name
- a property key String
value
- a property value String
java.sql.SQLClientInfoException
- unless both name and value are nullpublic void setClientInfo(java.util.Properties properties) throws java.sql.SQLClientInfoException
setClientInfo
will throw a
SQLClientInfoException
unless the properties
parameter is empty, since Derby does not support any
properties. All the property keys in the
properties
parameter are added to failedProperties
of the exception thrown, with REASON_UNKNOWN_PROPERTY as the
value.setClientInfo
in interface java.sql.Connection
properties
- a Properties
object with the
properties to setjava.sql.SQLClientInfoException
- unless properties parameter
is null or emptypublic java.lang.String getClientInfo(java.lang.String name) throws java.sql.SQLException
getClientInfo
always returns a
null String
since Derby doesn't support
ClientInfoProperties.getClientInfo
in interface java.sql.Connection
name
- a String
valuenull String
valuejava.sql.SQLException
- if the connection is closed.public java.util.Properties getClientInfo() throws java.sql.SQLException
getClientInfo
always returns an empty
Properties
object since Derby doesn't support
ClientInfoProperties.getClientInfo
in interface java.sql.Connection
Properties
objectjava.sql.SQLException
- if the connection is closed.public final java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap() throws java.sql.SQLException
getTypeMap
in interface java.sql.Connection
getTypeMap
in class EmbedConnection
java.sql.SQLException
- if a database access error occurspublic boolean isWrapperFor(java.lang.Class<?> interfaces) throws java.sql.SQLException
interfaces
is implementedisWrapperFor
in interface java.sql.Wrapper
interfaces
- 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 <T> T unwrap(java.lang.Class<T> interfaces) throws java.sql.SQLException
this
if this class implements the interfaceunwrap
in interface java.sql.Wrapper
interfaces
- 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.Connection
abort
in interface EngineConnection40
java.sql.SQLException
public int getNetworkTimeout() throws java.sql.SQLException
getNetworkTimeout
in interface java.sql.Connection
getNetworkTimeout
in interface EngineConnection40
java.sql.SQLException
public void setNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds) throws java.sql.SQLException
setNetworkTimeout
in interface java.sql.Connection
setNetworkTimeout
in interface EngineConnection40
java.sql.SQLException
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.