public class EmbeddedConnectionPoolDataSource extends EmbeddedDataSource implements org.apache.derby.jdbc.EmbeddedConnectionPoolDataSourceInterface
A ConnectionPoolDataSource is a factory for PooledConnection objects. An object that implements this interface will typically be registered with a JNDI service.
EmbeddedConnectionPoolDataSource automatically supports the correct JDBC specification version for the Java Virtual Machine's environment.
EmbeddedConnectionPoolDataSource is serializable and referenceable.
See EmbeddedDataSource for DataSource properties.
| Constructor and Description |
|---|
EmbeddedConnectionPoolDataSource()
No-arg constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.sql.PooledConnection |
getPooledConnection()
Attempt to establish a database connection.
|
javax.sql.PooledConnection |
getPooledConnection(java.lang.String username,
java.lang.String password)
Attempt to establish a database connection.
|
getReferenceequals, getAttributesAsPassword, 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, setUserpublic EmbeddedConnectionPoolDataSource()
public final javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLException - if a database-access error occurs.public final javax.sql.PooledConnection getPooledConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourceusername - the database user on whose behalf the Connection is being madepassword - the user's passwordjava.sql.SQLException - if a database-access error occurs.Apache Derby 10.10 API Documentation - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.