This datasource is suitable for an application using embedded Derby, running on full Java SE 6 and higher, corresponding to 4.0 and higher. EmbeddedConnectionPoolDataSource is a ConnectionPoolDataSource implementation.
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.
Use BasicEmbeddedConnectionPoolDataSource40 if your application runs on Java 8 Compact Profile 2.
EmbeddedConnectionPoolDataSource is serializable and referenceable.
See EmbeddedDataSource for DataSource properties.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private PooledConnection | Returns: A pooled connectionThe user name user, String The password password, boolean @ requestPassword)false if original call is from a
no-argument constructor, otherwise trueCreate and return an EmbedPooledConnection from this instance of EmbeddedConnectionPoolDataSource. |
| public final PooledConnection | Returns: a Connection to the databaseImplements javax. |
| public final PooledConnection | Returns: a Connection to the databasethe database user on whose behalf the Connection is being made username, String the user's password password)Implements javax. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| EmbeddedConnectionPoolDataSource | back to summary |
|---|---|
| public EmbeddedConnectionPoolDataSource() No-arg constructor. | |
| createPooledConnection | back to summary |
|---|---|
| private PooledConnection createPooledConnection(String user, String password, boolean requestPassword) throws SQLException Create and return an EmbedPooledConnection from this instance of EmbeddedConnectionPoolDataSource.
| |
| getPooledConnection | back to summary |
|---|---|
| public final PooledConnection getPooledConnection() throws SQLException Implements javax. Attempt to establish a database connection.
| |
| getPooledConnection | back to summary |
|---|---|
| public final PooledConnection getPooledConnection(String username, String password) throws SQLException Implements javax. Attempt to establish a database connection.
| |