# Serialized Form

- ## Package org.apache.commons.dbcp2.cpdsadapter

  - ### Class org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS extends Object implements Serializable

    serialVersionUID:
      -4820523787212147844L

    - ### Serialized Fields

      - #### description

            String description

        Description

      - #### password

            String password

        Password

      - #### url

            String url

        Url name

      - #### user

            String user

        User name

      - #### driver

            String driver

        Driver class name

      - #### loginTimeout

            int loginTimeout

        Login TimeOut in seconds

      - #### poolPreparedStatements

            boolean poolPreparedStatements

      - #### maxIdle

            int maxIdle

      - #### _timeBetweenEvictionRunsMillis

            long _timeBetweenEvictionRunsMillis

      - #### _numTestsPerEvictionRun

            int _numTestsPerEvictionRun

      - #### _minEvictableIdleTimeMillis

            int _minEvictableIdleTimeMillis

      - #### _maxPreparedStatements

            int _maxPreparedStatements

      - #### getConnectionCalled

            boolean getConnectionCalled

        Whether or not getConnection has been called

      - #### connectionProperties

            Properties connectionProperties

        Connection properties passed to JDBC Driver

      - #### accessToUnderlyingConnectionAllowed

            boolean accessToUnderlyingConnectionAllowed

        Controls access to the underlying connection

- ## Package org.apache.commons.dbcp2.datasources

  - ### Class org.apache.commons.dbcp2.datasources.InstanceKeyDataSource extends Object implements Serializable

    serialVersionUID:
      -6819270431752240878L

    - ### Serialized Fields

      - #### getConnectionCalled

            boolean getConnectionCalled

        Guards property setters - once true, setters throw IllegalStateException

      - #### dataSource

            ConnectionPoolDataSource dataSource

        Underlying source of PooledConnections

      - #### dataSourceName

            String dataSourceName

        DataSource Name used to find the ConnectionPoolDataSource

      - #### description

            String description

        Description

      - #### jndiEnvironment

            Properties jndiEnvironment

        Environment that may be used to set up a jndi initial context.

      - #### loginTimeout

            int loginTimeout

        Login TimeOut in seconds

      - #### logWriter

            PrintWriter logWriter

        Log stream

      - #### instanceKey

            String instanceKey

        Instance key

      - #### defaultBlockWhenExhausted

            boolean defaultBlockWhenExhausted

      - #### defaultEvictionPolicyClassName

            String defaultEvictionPolicyClassName

      - #### defaultLifo

            boolean defaultLifo

      - #### defaultMaxIdle

            int defaultMaxIdle

      - #### defaultMaxTotal

            int defaultMaxTotal

      - #### defaultMaxWaitMillis

            long defaultMaxWaitMillis

      - #### defaultMinEvictableIdleTimeMillis

            long defaultMinEvictableIdleTimeMillis

      - #### defaultMinIdle

            int defaultMinIdle

      - #### defaultNumTestsPerEvictionRun

            int defaultNumTestsPerEvictionRun

      - #### defaultSoftMinEvictableIdleTimeMillis

            long defaultSoftMinEvictableIdleTimeMillis

      - #### defaultTestOnCreate

            boolean defaultTestOnCreate

      - #### defaultTestOnBorrow

            boolean defaultTestOnBorrow

      - #### defaultTestOnReturn

            boolean defaultTestOnReturn

      - #### defaultTestWhileIdle

            boolean defaultTestWhileIdle

      - #### defaultTimeBetweenEvictionRunsMillis

            long defaultTimeBetweenEvictionRunsMillis

      - #### validationQuery

            String validationQuery

      - #### validationQueryTimeout

            int validationQueryTimeout

      - #### rollbackAfterValidation

            boolean rollbackAfterValidation

      - #### maxConnLifetimeMillis

            long maxConnLifetimeMillis

      - #### defaultAutoCommit

            Boolean defaultAutoCommit

      - #### defaultTransactionIsolation

            int defaultTransactionIsolation

      - #### defaultReadOnly

            Boolean defaultReadOnly

  - ### Class org.apache.commons.dbcp2.datasources.PerUserPoolDataSource extends InstanceKeyDataSource implements Serializable

    serialVersionUID:
      7872747993848065028L

    - ### Serialization Methods

      - #### readObject

            private void readObject(ObjectInputStream in)
                             throws IOException,
                                    ClassNotFoundException

        Supports Serialization interface.
        Throws:
          `IOException` - if an error occurs
          `ClassNotFoundException` - if an error occurs

    - ### Serialized Fields

      - #### perUserBlockWhenExhausted

            Map<K,V> perUserBlockWhenExhausted

      - #### perUserEvictionPolicyClassName

            Map<K,V> perUserEvictionPolicyClassName

      - #### perUserLifo

            Map<K,V> perUserLifo

      - #### perUserMaxIdle

            Map<K,V> perUserMaxIdle

      - #### perUserMaxTotal

            Map<K,V> perUserMaxTotal

      - #### perUserMaxWaitMillis

            Map<K,V> perUserMaxWaitMillis

      - #### perUserMinEvictableIdleTimeMillis

            Map<K,V> perUserMinEvictableIdleTimeMillis

      - #### perUserMinIdle

            Map<K,V> perUserMinIdle

      - #### perUserNumTestsPerEvictionRun

            Map<K,V> perUserNumTestsPerEvictionRun

      - #### perUserSoftMinEvictableIdleTimeMillis

            Map<K,V> perUserSoftMinEvictableIdleTimeMillis

      - #### perUserTestOnCreate

            Map<K,V> perUserTestOnCreate

      - #### perUserTestOnBorrow

            Map<K,V> perUserTestOnBorrow

      - #### perUserTestOnReturn

            Map<K,V> perUserTestOnReturn

      - #### perUserTestWhileIdle

            Map<K,V> perUserTestWhileIdle

      - #### perUserTimeBetweenEvictionRunsMillis

            Map<K,V> perUserTimeBetweenEvictionRunsMillis

      - #### perUserDefaultAutoCommit

            Map<K,V> perUserDefaultAutoCommit

      - #### perUserDefaultTransactionIsolation

            Map<K,V> perUserDefaultTransactionIsolation

      - #### perUserDefaultReadOnly

            Map<K,V> perUserDefaultReadOnly

  - ### Class org.apache.commons.dbcp2.datasources.SharedPoolDataSource extends InstanceKeyDataSource implements Serializable

    serialVersionUID:
      -1458539734480586454L

    - ### Serialization Methods

      - #### readObject

            private void readObject(ObjectInputStream in)
                             throws IOException,
                                    ClassNotFoundException

        Supports Serialization interface.
        Throws:
          `IOException` - if an error occurs
          `ClassNotFoundException` - if an error occurs

    - ### Serialized Fields

      - #### maxTotal

            int maxTotal

Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.