public class Driver169 extends InternalDriver
active
Constructor and Description |
---|
Driver169() |
Modifier and Type | Method and Description |
---|---|
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.
|
acceptsURL, activeDriver, boot, connect, embeddedDriverAcceptsURL, getAttributes, getAuthenticationService, getContextServiceFactory, getDatabaseName, getDeregister, getMajorVersion, getMinorVersion, isActive, jdbcCompliant, newEmbedDatabaseMetaData, newEmbedResultSetMetaData, setDeregister, stop
protected EmbedConnection getNewEmbedConnection(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
getNewEmbedConnection
in class InternalDriver
java.sql.SQLException
protected EmbedConnection timeLogin(java.lang.String url, java.util.Properties info, int loginTimeoutSeconds) throws java.sql.SQLException
timeLogin
in class InternalDriver
java.sql.SQLException
public java.sql.Connection getNewNestedConnection(EmbedConnection conn)
getNewNestedConnection
in class InternalDriver
conn
- The EmbedConnection.public java.sql.Statement newEmbedStatement(EmbedConnection conn, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
newEmbedStatement
in class InternalDriver
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
newEmbedPreparedStatement
in class InternalDriver
java.sql.SQLException
- if fails to create statementpublic java.sql.CallableStatement newEmbedCallableStatement(EmbedConnection conn, java.lang.String stmt, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
newEmbedCallableStatement
in class InternalDriver
java.sql.SQLException
- if fails to create statementpublic EmbedResultSet newEmbedResultSet(EmbedConnection conn, ResultSet results, boolean forMetaData, EmbedStatement statement, boolean isAtomic) throws java.sql.SQLException
InternalDriver
newEmbedResultSet
in class InternalDriver
conn
- Owning connectionresults
- Top level of language result set treeforMetaData
- Is this for meta-datastatement
- The statement that is creating the SQL ResultSetjava.sql.SQLException
public void checkSystemPrivileges(java.lang.String user, java.security.Permission perm) throws java.lang.Exception
checkSystemPrivileges
in class InternalDriver
user
- The user to be checked for having the permissionperm
- The permission to be checkedjava.security.AccessControlException
- if permissions are missingjava.lang.Exception
- if the privileges check fails for some other reasonApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.