org.apache.derby.jdbc
Class Driver169
java.lang.Object
org.apache.derby.jdbc.InternalDriver
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
|
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)
|
protected EmbedConnection |
timeLogin(java.lang.String url,
java.util.Properties info,
int loginTimeoutSeconds)
This method does not enforce timeouts on JSR 169. |
| Methods inherited from class org.apache.derby.jdbc.InternalDriver |
acceptsURL, activeDriver, boot, connect, embeddedDriverAcceptsURL, getAttributes, getAuthenticationService, getContextServiceFactory, getDatabaseName, getDeregister, getMajorVersion, getMinorVersion, isActive, jdbcCompliant, newEmbedDatabaseMetaData, newEmbedResultSetMetaData, setDeregister, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Driver169
public Driver169()
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
timeLogin
protected EmbedConnection timeLogin(java.lang.String url,
java.util.Properties info,
int loginTimeoutSeconds)
throws java.sql.SQLException
- This method does not enforce timeouts on JSR 169. If that functionality is important
on CDC/FP 1.1 then a separate implementation can be plugged in here.
- Specified by:
timeLogin 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 connectionresults - Top level of language result set treeforMetaData - Is this for meta-datastatement - 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 permissionperm - 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
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.