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) |
equals, findDriver, getAttributesAsPassword, getConnection, getConnection, getConnection, getConnectionAttributes, getCreateDatabase, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getParentLogger, getPassword, getShutdownDatabase, getUser, hashCode, isWrapperFor, setAttributesAsPassword, setConnectionAttributes, setCreateDatabase, setDatabaseName, setDataSourceName, setDescription, setLoginTimeout, setLogWriter, setPassword, setShutdownDatabase, setupResourceAdapter, setUser, unwrap, update
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAttributesAsPassword, getConnectionAttributes, getCreateDatabase, getDatabaseName, getDataSourceName, getDescription, getPassword, getShutdownDatabase, getUser, setAttributesAsPassword, setConnectionAttributes, setCreateDatabase, setDatabaseName, setDataSourceName, setDescription, setPassword, setShutdownDatabase, setUser
private static final long serialVersionUID
public BasicEmbeddedConnectionPoolDataSource40()
public final javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
java.sql.SQLException
public final javax.sql.PooledConnection getPooledConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
java.sql.SQLException
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 true
java.sql.SQLException
- if a database-access error occursApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.