Class PooledConnectionAndInfo


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

      Constructors 
      Constructor Description
      PooledConnectionAndInfo​(javax.sql.PooledConnection pc, java.lang.String userName, char[] userPassword)  
      PooledConnectionAndInfo​(javax.sql.PooledConnection pc, java.lang.String userName, java.lang.String userPassword)
      Deprecated.
      Since 2.4.0
    • Field Detail

      • pooledConnection

        private final javax.sql.PooledConnection pooledConnection
      • userPassword

        private final char[] userPassword
      • userName

        private final java.lang.String userName
    • Constructor Detail

      • PooledConnectionAndInfo

        PooledConnectionAndInfo​(javax.sql.PooledConnection pc,
                                java.lang.String userName,
                                char[] userPassword)
        Since:
        2.4.0
      • PooledConnectionAndInfo

        @Deprecated
        PooledConnectionAndInfo​(javax.sql.PooledConnection pc,
                                java.lang.String userName,
                                java.lang.String userPassword)
        Deprecated.
        Since 2.4.0
    • Method Detail

      • getPooledConnection

        javax.sql.PooledConnection getPooledConnection()
      • getPassword

        java.lang.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

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