|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.client.am.LogicalConnection
org.apache.derby.client.am.LogicalConnection40
public class LogicalConnection40
A simple delegation wrapper handle for a physical connection. This class only contains JDBC 4.0 specific methods. NOTE: All non-implemented JDBC 4.0 methods are located here, but when they are implemented, they should be moved to the superclass if possible.
Field Summary |
---|
Fields inherited from class org.apache.derby.client.am.LogicalConnection |
---|
physicalConnection_ |
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
LogicalConnection40(Connection physicalConnection,
ClientPooledConnection pooledConnection)
|
Method Summary | ||
---|---|---|
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_ . |
|
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)
|
|
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_ . |
|
|
unwrap(java.lang.Class<T> interfaces)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogicalConnection40(Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException
SqlException
Method Detail |
---|
public java.sql.Array createArrayOf(java.lang.String typeName, java.lang.Object[] elements) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Blob createBlob() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Clob createClob() throws java.sql.SQLException
java.sql.SQLException
public java.sql.NClob createNClob() throws java.sql.SQLException
java.sql.SQLException
public java.sql.SQLXML createSQLXML() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Struct createStruct(java.lang.String typeName, java.lang.Object[] attributes) throws java.sql.SQLException
java.sql.SQLException
public 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
object
java.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 String
String
java.sql.SQLException
- if an error occursprotected LogicalDatabaseMetaData newLogicalDatabaseMetaData() throws java.sql.SQLException
newLogicalDatabaseMetaData
in class LogicalConnection
java.sql.SQLException
public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap() throws java.sql.SQLException
getTypeMap
in interface java.sql.Connection
getTypeMap
in class LogicalConnection
java.sql.SQLException
- if a database access error occurspublic 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.SQLException
public void setClientInfo(java.util.Properties properties) throws java.sql.SQLClientInfoException
setClientInfo
forwards to
physicalConnection_
.
properties
- a Properties
object with the
properties to set
java.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 String
value
- a property value String
java.sql.SQLException
- if an error occurs
java.sql.SQLClientInfoException
public <T> T unwrap(java.lang.Class<T> interfaces) throws java.sql.SQLException
java.sql.SQLException
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |