org.apache.derby.jdbc
Class Driver30

java.lang.Object
  extended by org.apache.derby.jdbc.InternalDriver
      extended by org.apache.derby.jdbc.Driver20
          extended by org.apache.derby.jdbc.Driver30
All Implemented Interfaces:
java.sql.Driver, ModuleControl
Direct Known Subclasses:
Driver40

public class Driver30
extends Driver20

This class extends the local20 JDBC driver in order to determine at JBMS boot-up if the JVM that runs us does support JDBC 3.0. If it is the case then we will load the appropriate class(es) that have JDBC 3.0 new public methods and sql types.


Field Summary
 
Fields inherited from class org.apache.derby.jdbc.InternalDriver
active
 
Constructor Summary
Driver30()
           
 
Method Summary
protected  EmbedConnection getNewEmbedConnection(java.lang.String url, java.util.Properties info)
           
 java.sql.Connection getNewNestedConnection(EmbedConnection conn)
          Get a new nested connection.
protected  javax.sql.PooledConnection getNewPooledConnection(EmbeddedDataSource eds, java.lang.String user, java.lang.String password, boolean requestPassword)
          Create and return an EmbedPooledConnection from the received instance of EmbeddedDataSource.
protected  javax.sql.XAConnection getNewXAConnection(EmbeddedDataSource eds, ResourceAdapter ra, java.lang.String user, java.lang.String password, boolean requestPassword)
          Create and return an EmbedXAConnection from the received instance of EmbeddedDataSource.
 BrokeredConnection newBrokeredConnection(BrokeredConnectionControl control)
           
 java.sql.CallableStatement newEmbedCallableStatement(EmbedConnection conn, java.lang.String stmt, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 java.sql.PreparedStatement newEmbedPreparedStatement(EmbedConnection conn, java.lang.String stmt, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, int[] columnIndexes, java.lang.String[] columnNames)
           
 
Methods inherited from class org.apache.derby.jdbc.Driver20
boot, checkSystemPrivileges, getPropertyInfo, newEmbedResultSet, stop
 
Methods inherited from class org.apache.derby.jdbc.InternalDriver
acceptsURL, activeDriver, connect, embeddedDriverAcceptsURL, getAttributes, getAuthenticationService, getContextServiceFactory, getDatabaseName, getMajorVersion, getMinorVersion, isActive, jdbcCompliant, newEmbedDatabaseMetaData, newEmbedResultSetMetaData, newEmbedStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Driver
acceptsURL, connect, getMajorVersion, getMinorVersion, jdbcCompliant
 

Constructor Detail

Driver30

public Driver30()
Method Detail

getNewNestedConnection

public java.sql.Connection getNewNestedConnection(EmbedConnection conn)
Get a new nested connection.

Specified by:
getNewNestedConnection in class InternalDriver
Parameters:
conn - The EmbedConnection.
Returns:
A nested connection object.

getNewEmbedConnection

protected EmbedConnection getNewEmbedConnection(java.lang.String url,
                                                java.util.Properties info)
                                         throws java.sql.SQLException
Specified by:
getNewEmbedConnection in class InternalDriver
Throws:
java.sql.SQLException

newEmbedPreparedStatement

public java.sql.PreparedStatement newEmbedPreparedStatement(EmbedConnection conn,
                                                            java.lang.String stmt,
                                                            boolean forMetaData,
                                                            int resultSetType,
                                                            int resultSetConcurrency,
                                                            int resultSetHoldability,
                                                            int autoGeneratedKeys,
                                                            int[] columnIndexes,
                                                            java.lang.String[] columnNames)
                                                     throws java.sql.SQLException
Specified by:
newEmbedPreparedStatement in class InternalDriver
Throws:
java.sql.SQLException - if fails to create statement

newEmbedCallableStatement

public java.sql.CallableStatement newEmbedCallableStatement(EmbedConnection conn,
                                                            java.lang.String stmt,
                                                            int resultSetType,
                                                            int resultSetConcurrency,
                                                            int resultSetHoldability)
                                                     throws java.sql.SQLException
Specified by:
newEmbedCallableStatement in class InternalDriver
Throws:
java.sql.SQLException - if fails to create statement

newBrokeredConnection

public BrokeredConnection newBrokeredConnection(BrokeredConnectionControl control)
Specified by:
newBrokeredConnection in class Driver20

getNewPooledConnection

protected javax.sql.PooledConnection getNewPooledConnection(EmbeddedDataSource eds,
                                                            java.lang.String user,
                                                            java.lang.String password,
                                                            boolean requestPassword)
                                                     throws java.sql.SQLException
Create and return an EmbedPooledConnection from the received instance of EmbeddedDataSource.

Throws:
java.sql.SQLException

getNewXAConnection

protected javax.sql.XAConnection getNewXAConnection(EmbeddedDataSource eds,
                                                    ResourceAdapter ra,
                                                    java.lang.String user,
                                                    java.lang.String password,
                                                    boolean requestPassword)
                                             throws java.sql.SQLException
Create and return an EmbedXAConnection from the received instance of EmbeddedDataSource.

Throws:
java.sql.SQLException

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.