Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.jdbc
Class BrokeredConnection30  view BrokeredConnection30 download BrokeredConnection30.java

java.lang.Object
  extended byorg.apache.derby.iapi.jdbc.BrokeredConnection
      extended byorg.apache.derby.iapi.jdbc.BrokeredConnection30
All Implemented Interfaces:
java.sql.Connection

public class BrokeredConnection30
extends BrokeredConnection

Extends BrokeredConnection to provide the JDBC 3.0 connection methods.


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
BrokeredConnection30(BrokeredConnectionControl control)
           
 
Method Summary
 java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          This method creates a new SQL statement with the specified type, concurrency and holdability, instead of using the defaults.
 int getHoldability()
          Gets the default holdability of ResultSetS that are created from StatementS using this Connection.
protected  int getJDBCLevel()
           
 BrokeredCallableStatement newBrokeredStatement(BrokeredStatementControl statementControl, java.lang.String sql)
           
 BrokeredPreparedStatement newBrokeredStatement(BrokeredStatementControl statementControl, java.lang.String sql, java.lang.Object generatedKeys)
           
 java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          This method creates a new CallableStatement for the specified SQL string.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys)
           
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes)
           
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          This method creates a new PreparedStatement for the specified SQL string.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames)
           
 void releaseSavepoint(java.sql.Savepoint savepoint)
          Removes the specified savepoint from this Connection.
 void rollback(java.sql.Savepoint savepoint)
          Undoes all changes made after the specified savepoint was set.
 void setHoldability(int holdability)
          Sets the default holdability of ResultSetS that are created from StatementS using this Connection.
 java.sql.Savepoint setSavepoint()
          Creates a new unnamed savepoint for this Connection
 java.sql.Savepoint setSavepoint(java.lang.String name)
          Creates a new savepoint with the specifiend name for this Connection.
 
Methods inherited from class org.apache.derby.iapi.jdbc.BrokeredConnection
clearWarnings, close, commit, createStatement, createStatement, getAutoCommit, getCatalog, getMetaData, getPrepareIsolation, getRealConnection, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, newBrokeredStatement, notifyException, prepareCall, prepareCall, prepareStatement, prepareStatement, rollback, setAutoCommit, setCatalog, setDrdaID, setPrepareIsolation, setReadOnly, setState, setTransactionIsolation, setTypeMap, syncState, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrokeredConnection30

public BrokeredConnection30(BrokeredConnectionControl control)
Method Detail

createStatement

public final java.sql.Statement createStatement(int resultSetType,
                                                int resultSetConcurrency,
                                                int resultSetHoldability)
                                         throws java.sql.SQLException
Description copied from interface: java.sql.Connection
This method creates a new SQL statement with the specified type, concurrency and holdability, instead of using the defaults. Valid values for these parameters are specified in the ResultSet class.


prepareStatement

public final java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                         int resultSetType,
                                                         int resultSetConcurrency,
                                                         int resultSetHoldability)
                                                  throws java.sql.SQLException
Description copied from interface: java.sql.Connection
This method creates a new PreparedStatement for the specified SQL string. This method is designed for use with parameterized statements. The specified result set type, concurrency and holdability will be used. Valid values for these parameters are specified in the ResultSet class.


prepareCall

public final java.sql.CallableStatement prepareCall(java.lang.String sql,
                                                    int resultSetType,
                                                    int resultSetConcurrency,
                                                    int resultSetHoldability)
                                             throws java.sql.SQLException
Description copied from interface: java.sql.Connection
This method creates a new CallableStatement for the specified SQL string. Thie method is designed to be used with stored procedures. The specified result set type, concurrency and holdability will be used. Valid values for these parameters are specified in the ResultSet class.


setSavepoint

public final java.sql.Savepoint setSavepoint()
                                      throws java.sql.SQLException
Description copied from interface: java.sql.Connection
Creates a new unnamed savepoint for this Connection


setSavepoint

public final java.sql.Savepoint setSavepoint(java.lang.String name)
                                      throws java.sql.SQLException
Description copied from interface: java.sql.Connection
Creates a new savepoint with the specifiend name for this Connection.


rollback

public final void rollback(java.sql.Savepoint savepoint)
                    throws java.sql.SQLException
Description copied from interface: java.sql.Connection
Undoes all changes made after the specified savepoint was set.


releaseSavepoint

public final void releaseSavepoint(java.sql.Savepoint savepoint)
                            throws java.sql.SQLException
Description copied from interface: java.sql.Connection
Removes the specified savepoint from this Connection. Refering to a savepoint after it was removed is an error and will throw an SQLException.


getHoldability

public final int getHoldability()
                         throws java.sql.SQLException
Description copied from interface: java.sql.Connection
Gets the default holdability of ResultSetS that are created from StatementS using this Connection.


setHoldability

public final void setHoldability(int holdability)
                          throws java.sql.SQLException
Description copied from interface: java.sql.Connection
Sets the default holdability of ResultSetS that are created from StatementS using this Connection.


prepareStatement

public final java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                         int autoGeneratedKeys)
                                                  throws java.sql.SQLException

prepareStatement

public final java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                         int[] columnIndexes)
                                                  throws java.sql.SQLException

prepareStatement

public final java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                         java.lang.String[] columnNames)
                                                  throws java.sql.SQLException

newBrokeredStatement

public BrokeredPreparedStatement newBrokeredStatement(BrokeredStatementControl statementControl,
                                                      java.lang.String sql,
                                                      java.lang.Object generatedKeys)
                                               throws java.sql.SQLException
Overrides:
newBrokeredStatement in class BrokeredConnection

newBrokeredStatement

public BrokeredCallableStatement newBrokeredStatement(BrokeredStatementControl statementControl,
                                                      java.lang.String sql)
                                               throws java.sql.SQLException
Overrides:
newBrokeredStatement in class BrokeredConnection

getJDBCLevel

protected int getJDBCLevel()
Overrides:
getJDBCLevel in class BrokeredConnection