Class PooledConnectionAndInfo

java.lang.Object
org.datanucleus.store.rdbms.datasource.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

    • pooledConnection

      private final PooledConnection pooledConnection
    • userPassword

      private final char[] userPassword
    • userName

      private final String userName
    • upKey

      private final UserPassKey upKey
  • Constructor Details

  • Method Details

    • getPooledConnection

      PooledConnection getPooledConnection()
    • getUserPassKey

      UserPassKey getUserPassKey()
    • getPassword

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

      char[] getPasswordCharArray()
      Gets the value of password.
      Returns:
      value of password.
      Since:
      2.4.0
    • getUsername

      String getUsername()
      Gets the value of userName.
      Returns:
      value of userName.