org.apache.derby.jdbc
Class Driver169

java.lang.Object
  extended byorg.apache.derby.jdbc.InternalDriver
      extended byorg.apache.derby.jdbc.Driver169
All Implemented Interfaces:
ModuleControl

public class Driver169
extends InternalDriver

Driver169 - JDBC "driver" for J2ME/CDC/Foundation/JSR169, really the JDBC object factory for the JSR169 environment. WORK IN PROGRESS

Author:
djd

Field Summary
 
Fields inherited from class org.apache.derby.jdbc.InternalDriver
active
 
Constructor Summary
Driver169()
           
 
Method Summary
protected  EmbedConnection getNewEmbedConnection(java.lang.String url, java.util.Properties info)
           
 java.sql.Connection getNewNestedConnection(EmbedConnection conn)
          Get a new nested connection.
 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)
           
 EmbedResultSet newEmbedResultSet(EmbedConnection conn, ResultSet results, boolean forMetaData, EmbedStatement statement, boolean isAtomic)
          Return a new java.sql.ResultSet instance for this implementation.
 java.sql.Statement newEmbedStatement(EmbedConnection conn, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 
Methods inherited from class org.apache.derby.jdbc.InternalDriver
acceptsURL, activeDriver, boot, connect, getAttributes, getAuthenticationService, getContextServiceFactory, getDatabaseName, getMajorVersion, getMinorVersion, isActive, jdbcCompliant, newEmbedDatabaseMetaData, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Driver169

public Driver169()
Method Detail

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

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.

newEmbedStatement

public java.sql.Statement newEmbedStatement(EmbedConnection conn,
                                            boolean forMetaData,
                                            int resultSetType,
                                            int resultSetConcurrency,
                                            int resultSetHoldability)
Overrides:
newEmbedStatement in class InternalDriver

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

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.

Specified by:
newEmbedResultSet in class InternalDriver
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
isAtomic -
Returns:
a new java.sql.ResultSet
Throws:
java.sql.SQLException

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.