java.io.Serializable
, java.sql.Wrapper
, javax.sql.CommonDataSource
, javax.sql.ConnectionPoolDataSource
, javax.sql.DataSource
, EmbeddedConnectionPoolDataSourceInterface
, EmbeddedDataSourceInterface
public class BasicEmbeddedConnectionPoolDataSource40 extends BasicEmbeddedDataSource40 implements javax.sql.ConnectionPoolDataSource, EmbeddedConnectionPoolDataSourceInterface
javax.naming.Referenceable
.Modifier and Type | Field | Description |
---|---|---|
private static long |
serialVersionUID |
attributesAsPassword, connectionAttributes, createDatabase, databaseName, dataSourceName, description, driver, jdbcurl, loginTimeout, shutdownDatabase
Constructor | Description |
---|---|
BasicEmbeddedConnectionPoolDataSource40() |
No-argument constructor.
|
Modifier and Type | Method | 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
createShardingKeyBuilder, getParentLogger
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
createConnectionBuilder, getConnection, getConnection
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.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.