Class PooledConnectionAndInfo
java.lang.Object
org.apache.commons.dbcp2.datasources.PooledConnectionAndInfo
Immutable poolable object holding a
PooledConnection along with the user name and password used to create the
connection.- Since:
- 2.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPooledConnectionAndInfo(PooledConnection pooledConnection, char[] userName, char[] userPassword) Constructs a new instance.PooledConnectionAndInfo(PooledConnection pooledConnection, UserPassKey userPassKey) -
Method Summary
Modifier and TypeMethodDescription(package private) StringGets the value of password.(package private) PooledConnectionGets the pooled connection.(package private) StringGets the value of userName.(package private) UserPassKey
-
Field Details
-
pooledConnection
-
userPassKey
-
-
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()
-