org.apache.derby.jdbc
Class Driver40

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

public class Driver40
extends Driver30


Field Summary
 
Fields inherited from class org.apache.derby.jdbc.InternalDriver
active
 
Constructor Summary
Driver40()
           
 
Method Summary
 void boot(boolean create, java.util.Properties properties)
          Overwriting the super class boot method to set exception factory
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.DatabaseMetaData newEmbedDatabaseMetaData(EmbedConnection conn, java.lang.String dbname)
          Return a new java.sql.DatabaseMetaData instance for this implementation.
 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)
           
 EmbedResultSet newEmbedResultSet(EmbedConnection conn, ResultSet results, boolean forMetaData, EmbedStatement statement, boolean isAtomic)
          Return a new java.sql.ResultSet instance for this implementation.
 EmbedResultSetMetaData40 newEmbedResultSetMetaData(ResultColumnDescriptor[] columnInfo)
          Returns a new java.sql.ResultSetMetaData for this implementation
 java.sql.Statement newEmbedStatement(EmbedConnection conn, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          returns a new EmbedStatement
 
Methods inherited from class org.apache.derby.jdbc.Driver20
checkSystemPrivileges, getPropertyInfo, stop
 
Methods inherited from class org.apache.derby.jdbc.InternalDriver
acceptsURL, activeDriver, connect, embeddedDriverAcceptsURL, getAttributes, getAuthenticationService, getContextServiceFactory, getDatabaseName, getMajorVersion, getMinorVersion, isActive, jdbcCompliant
 
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

Driver40

public Driver40()
Method Detail

getNewNestedConnection

public java.sql.Connection getNewNestedConnection(EmbedConnection conn)
Description copied from class: Driver30
Get a new nested connection.

Overrides:
getNewNestedConnection in class Driver30
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
Overrides:
getNewEmbedConnection in class Driver30
Throws:
java.sql.SQLException

newEmbedStatement

public java.sql.Statement newEmbedStatement(EmbedConnection conn,
                                            boolean forMetaData,
                                            int resultSetType,
                                            int resultSetConcurrency,
                                            int resultSetHoldability)
returns a new EmbedStatement

Overrides:
newEmbedStatement in class InternalDriver
Parameters:
conn - the EmbedConnection class associated with this statement object
forMetaData - boolean
resultSetType - int
resultSetConcurrency - int
resultSetHoldability - int
Returns:
Statement a new java.sql.Statement implementation

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
Overrides:
newEmbedPreparedStatement in class Driver30
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
Overrides:
newEmbedCallableStatement in class Driver30
Throws:
java.sql.SQLException - if fails to create statement

newBrokeredConnection

public BrokeredConnection newBrokeredConnection(BrokeredConnectionControl control)
Overrides:
newBrokeredConnection in class Driver30

newEmbedResultSet

public EmbedResultSet newEmbedResultSet(EmbedConnection conn,
                                        ResultSet results,
                                        boolean forMetaData,
                                        EmbedStatement statement,
                                        boolean isAtomic)
                                 throws java.sql.SQLException
Description copied from class: InternalDriver
Return a new java.sql.ResultSet instance for this implementation.

Overrides:
newEmbedResultSet in class Driver20
Parameters:
conn - Owning connection
results - Top level of language result set tree
forMetaData - Is this for meta-data
statement - The statement that is creating the SQL ResultSet
Returns:
a new java.sql.ResultSet
Throws:
java.sql.SQLException

boot

public void boot(boolean create,
                 java.util.Properties properties)
          throws StandardException
Overwriting the super class boot method to set exception factory

Specified by:
boot in interface ModuleControl
Overrides:
boot in class Driver20
Throws:
StandardException - Module cannot be started.
See Also:
InternalDriver.boot(boolean, java.util.Properties)

newEmbedDatabaseMetaData

public java.sql.DatabaseMetaData newEmbedDatabaseMetaData(EmbedConnection conn,
                                                          java.lang.String dbname)
                                                   throws java.sql.SQLException
Description copied from class: InternalDriver
Return a new java.sql.DatabaseMetaData instance for this implementation.

Overrides:
newEmbedDatabaseMetaData in class InternalDriver
Throws:
java.sql.SQLException - on failure to create.

newEmbedResultSetMetaData

public EmbedResultSetMetaData40 newEmbedResultSetMetaData(ResultColumnDescriptor[] columnInfo)
Returns a new java.sql.ResultSetMetaData for this implementation

Overrides:
newEmbedResultSetMetaData in class InternalDriver
Parameters:
columnInfo - a ResultColumnDescriptor that stores information about the columns in a ResultSet
Returns:
ResultSetMetaData

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.

Overrides:
getNewPooledConnection in class Driver30
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.

Overrides:
getNewXAConnection in class Driver30
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.