org.apache.derby.jdbc
Class Driver169

java.lang.Object
  extended by org.apache.derby.jdbc.InternalDriver
      extended by org.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


Field Summary
 
Fields inherited from class org.apache.derby.jdbc.InternalDriver
active
 
Constructor Summary
Driver169()
           
 
Method Summary
 void checkSystemPrivileges(java.lang.String user, java.security.Permission perm)
          Checks for System Privileges.
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, embeddedDriverAcceptsURL, getAttributes, getAuthenticationService, getContextServiceFactory, getDatabaseName, getMajorVersion, getMinorVersion, isActive, jdbcCompliant, newEmbedDatabaseMetaData, newEmbedResultSetMetaData, 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
Returns:
a new java.sql.ResultSet
Throws:
java.sql.SQLException

checkSystemPrivileges

public void checkSystemPrivileges(java.lang.String user,
                                  java.security.Permission perm)
                           throws java.lang.Exception
Checks for System Privileges.

Specified by:
checkSystemPrivileges in class InternalDriver
Parameters:
user - The user to be checked for having the permission
perm - The permission to be checked
Throws:
java.security.AccessControlException - if permissions are missing
java.lang.Exception - if the privileges check fails for some other reason

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.