public class BasicEmbeddedConnectionPoolDataSource40 extends BasicEmbeddedDataSource40 implements javax.sql.ConnectionPoolDataSource, EmbeddedConnectionPoolDataSourceInterface
javax.naming.Referenceable.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
attributesAsPassword, connectionAttributes, createDatabase, databaseName, dataSourceName, description, driver, jdbcurl, loginTimeout, shutdownDatabase| Constructor and Description |
|---|
BasicEmbeddedConnectionPoolDataSource40()
No-argument constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private javax.sql.PooledConnection |
createPooledConnection(java.lang.String user,
java.lang.String password,
boolean requestPassword)
Minion helper method.
|
javax.sql.PooledConnection |
getPooledConnection() |
javax.sql.PooledConnection |
getPooledConnection(java.lang.String username,
java.lang.String password) |
getParentLoggerequals, findDriver, getAttributesAsPassword, getConnection, getConnection, getConnection, getConnectionAttributes, getCreateDatabase, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getPassword, getShortDatabaseName, getShutdownDatabase, getUser, isWrapperFor, setAttributesAsPassword, setConnectionAttributes, setCreateDatabase, setDatabaseName, setDataSourceName, setDescription, setLoginTimeout, setLogWriter, setPassword, setShutdownDatabase, setupResourceAdapter, setUser, unwrap, updateclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributesAsPassword, getConnectionAttributes, getCreateDatabase, getDatabaseName, getDataSourceName, getDescription, getPassword, getShutdownDatabase, getUser, setAttributesAsPassword, setConnectionAttributes, setCreateDatabase, setDatabaseName, setDataSourceName, setDescription, setPassword, setShutdownDatabase, setUserprivate static final long serialVersionUID
public BasicEmbeddedConnectionPoolDataSource40()
public final javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.getPooledConnection()public final javax.sql.PooledConnection getPooledConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.getPooledConnection(
String, String)private javax.sql.PooledConnection createPooledConnection(java.lang.String user,
java.lang.String password,
boolean requestPassword)
throws java.sql.SQLException
user - the user name used to authenticate the connectionpassword - the user's passwordrequestPassword - false if original call is from a
no-argument constructor, otherwise truejava.sql.SQLException - if a database-access error occursApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.