Class PooledConnectionAndInfo

java.lang.Object
org.apache.commons.dbcp2.datasources.PooledConnectionAndInfo

final class PooledConnectionAndInfo extends Object
Immutable poolable object holding a PooledConnection along with the user name and password used to create the connection.
Since:
2.0
  • Field Details

  • Constructor Details

    • PooledConnectionAndInfo

      PooledConnectionAndInfo(PooledConnection pooledConnection, char[] userName, char[] userPassword)
      Constructs a new instance.
      Since:
      2.4.0
    • PooledConnectionAndInfo

      PooledConnectionAndInfo(PooledConnection pooledConnection, UserPassKey userPassKey)
  • Method Details

    • getPassword

      String getPassword()
      Gets the value of password.
      Returns:
      value of password.
    • getPooledConnection

      PooledConnection getPooledConnection()
      Gets the pooled connection.
      Returns:
      the pooled connection.
    • getUserName

      String getUserName()
      Gets the value of userName.
      Returns:
      value of userName.
    • getUserPassKey

      UserPassKey getUserPassKey()