|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.jdbc.BrokeredConnection
org.apache.derby.iapi.jdbc.BrokeredConnection30
org.apache.derby.iapi.jdbc.BrokeredConnection40
public class BrokeredConnection40
Field Summary |
---|
Fields inherited from class org.apache.derby.iapi.jdbc.BrokeredConnection |
---|
control, stateHoldability |
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
BrokeredConnection40(BrokeredConnectionControl control)
Creates a new instance of BrokeredConnection40 |
Method Summary | ||
---|---|---|
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. |
|
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 |
|
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. |
|
|
unwrap(java.lang.Class<T> interfaces)
Returns this if this class implements the interface |
Methods inherited from class org.apache.derby.iapi.jdbc.BrokeredConnection30 |
---|
createStatement, prepareCall, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setHoldability, setSavepoint, setSavepoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BrokeredConnection40(BrokeredConnectionControl control)
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
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
.
Blob
interface
java.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
.
Clob
interface
java.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
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 final 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 void setClientInfo(java.lang.String name, java.lang.String value) throws java.sql.SQLClientInfoException
setClientInfo
forwards to the real connection.
name
- the property key String
value
- the property value String
java.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.
properties
- 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.
name
- 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.
Properties
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 BrokeredConnection
statementControl
- BrokeredStatementControl
java.sql.SQLException
public final BrokeredPreparedStatement newBrokeredStatement(BrokeredStatementControl statementControl, java.lang.String sql, java.lang.Object generatedKeys) throws java.sql.SQLException
newBrokeredStatement
in class BrokeredConnection30
java.sql.SQLException
public final BrokeredCallableStatement newBrokeredStatement(BrokeredStatementControl statementControl, java.lang.String sql) throws java.sql.SQLException
newBrokeredStatement
in class BrokeredConnection30
java.sql.SQLException
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 BrokeredConnection
java.sql.SQLException
- if a database access error occurspublic final boolean isWrapperFor(java.lang.Class<?> interfaces) throws java.sql.SQLException
interfaces
is implemented
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 final <T> T unwrap(java.lang.Class<T> interfaces) throws java.sql.SQLException
this
if this class implements the interface
interfaces
- a Class defining an interface
java.sql.SQLExption
- if no object if found that implements the
interface
java.sql.SQLException
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |