Class BasicEmbeddedConnectionPoolDataSource40

java.lang.Object
org.apache.derby.jdbc.BasicEmbeddedDataSource40
org.apache.derby.jdbc.BasicEmbeddedConnectionPoolDataSource40
All Implemented Interfaces:
Serializable, Wrapper, CommonDataSource, ConnectionPoolDataSource, DataSource

public class BasicEmbeddedConnectionPoolDataSource40 extends BasicEmbeddedDataSource40 implements ConnectionPoolDataSource
This data source is suitable for an application using embedded Derby, running on Java 8 Compact Profile 2 or higher.

BasicEmbeddedConnectionPoolDataSource40 is similar to EmbeddedConnectionPoolDataSource40 except it does not support JNDI naming, i.e. it does not implement javax.naming.Referenceable.

See Also:
  • Constructor Details

    • BasicEmbeddedConnectionPoolDataSource40

      public BasicEmbeddedConnectionPoolDataSource40()
      No-argument constructor.
  • Method Details

    • getPooledConnection

      public final PooledConnection getPooledConnection() throws SQLException
      Specified by:
      getPooledConnection in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • getPooledConnection

      public final PooledConnection getPooledConnection(String username, String password) throws SQLException
      Specified by:
      getPooledConnection in interface ConnectionPoolDataSource
      Throws:
      SQLException
    • setDatabaseName

      void setDatabaseName(String databaseName)
    • getDatabaseName

      String getDatabaseName()
    • setDataSourceName

      void setDataSourceName(String dsn)
    • getDataSourceName

      String getDataSourceName()
    • setDescription

      void setDescription(String desc)
    • getDescription

      String getDescription()
    • setUser

      void setUser(String user)
    • getUser

      String getUser()
    • setPassword

      void setPassword(String password)
    • getPassword

      String getPassword()
    • setCreateDatabase

      void setCreateDatabase(String create)
    • getCreateDatabase

      String getCreateDatabase()
    • setConnectionAttributes

      void setConnectionAttributes(String prop)
    • getConnectionAttributes

      String getConnectionAttributes()
    • setShutdownDatabase

      void setShutdownDatabase(String shutdown)
    • getShutdownDatabase

      String getShutdownDatabase()
    • setAttributesAsPassword

      void setAttributesAsPassword(boolean attributesAsPassword)
    • getAttributesAsPassword

      boolean getAttributesAsPassword()
    • getConnection

      Connection getConnection(String username, String password, boolean requestPassword) throws SQLException
      Get a user connection.
      Parameters:
      username - the user name
      password - the password
      requestPassword - true if the password came from the getConnection() call with user and password arguments..
      Returns:
      user connection
      Throws:
      SQLException - on error