|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.jdbc.EmbedConnection
org.apache.derby.impl.jdbc.EmbedConnection30
org.apache.derby.impl.jdbc.EmbedConnection40
public class EmbedConnection40
Field Summary |
---|
Fields inherited from class org.apache.derby.impl.jdbc.EmbedConnection |
---|
autoCommit, dbMetadata, memoryState, needCommit, NO_MEM, rootConnection, tr |
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
EmbedConnection40(EmbedConnection inputConnection)
Creates a new instance of EmbedConnection40 |
|
EmbedConnection40(InternalDriver driver,
java.lang.String url,
java.util.Properties info)
|
Method Summary | ||
---|---|---|
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. |
|
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 uless the properties
paramenter 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. |
|
|
unwrap(java.lang.Class<T> interfaces)
Returns this if this class implements the interface |
Methods inherited from class org.apache.derby.impl.jdbc.EmbedConnection30 |
---|
releaseSavepoint, rollback, setSavepoint, setSavepoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmbedConnection40(EmbedConnection inputConnection)
public EmbedConnection40(InternalDriver driver, java.lang.String url, java.util.Properties info) throws java.sql.SQLException
java.sql.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.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 boolean isValid(int timeout) throws java.sql.SQLException
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 occuredpublic 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.
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
uless the properties
paramenter 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.
properties
- a Properties
object with the
properties to set
java.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.
name
- a String
value
null String
value
java.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.
Properties
object
java.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 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 <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 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 |