| org.apache.derby.iapi.jdbc.EngineConnection
All known Subclasses: org.apache.derby.impl.jdbc.EmbedConnection, org.apache.derby.iapi.jdbc.BrokeredConnection,
EngineConnection | public interface EngineConnection extends Connection(Code) | | Additional methods the embedded engine exposes on its Connection object
implementations. An internal api only, mainly for the network
server. Allows consistent interaction between EmbedConnections
and BrokeredConnections.
|
Method Summary | |
public void | addWarning(SQLWarning newWarning) Add a SQLWarning to this Connection object. | public int | getHoldability() Get the holdability of the connection. | public int | getPrepareIsolation() | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) Prepare a statement with holdability.
Identical to JDBC 3.0 method, to allow holdabilty
to be supported in JDK 1.3 by the network server,
e.g. | public void | setDrdaID(String drdaID) Set the DRDA identifier for this connection. | public void | setPrepareIsolation(int level) Set the transaction isolation level that will be used for the
next prepare. |
addWarning | public void addWarning(SQLWarning newWarning) throws SQLException(Code) | | Add a SQLWarning to this Connection object.
Parameters: newWarning - Warning to be added, will be chained to anyexisting warnings. |
getHoldability | public int getHoldability() throws SQLException(Code) | | Get the holdability of the connection.
Identical to JDBC 3.0 method, to allow holdabilty
to be supported in JDK 1.3 by the network server,
e.g. when the client is jdk 1.4 or above.
Can be removed once JDK 1.3 is no longer supported.
|
getPrepareIsolation | public int getPrepareIsolation() throws SQLException(Code) | | Return prepare isolation
|
prepareStatement | public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code) | | Prepare a statement with holdability.
Identical to JDBC 3.0 method, to allow holdabilty
to be supported in JDK 1.3 by the network server,
e.g. when the client is jdk 1.4 or above.
Can be removed once JDK 1.3 is no longer supported.
|
setDrdaID | public void setDrdaID(String drdaID)(Code) | | Set the DRDA identifier for this connection.
|
setPrepareIsolation | public void setPrepareIsolation(int level) throws SQLException(Code) | | Set the transaction isolation level that will be used for the
next prepare. Used by network server to implement DB2 style
isolation levels.
Note the passed in level using the Derby constants from
ExecutionContext and not the JDBC constants from java.sql.Connection.
Parameters: level - Isolation level to change to. level is the DB2 levelspecified in the package names which happen to correspondto our internal levels. If level == ExecutionContext.UNSPECIFIED_ISOLATION,the statement won't be prepared with an isolation level. |
|
|