Class PooledConnectionAndInfo
java.lang.Object
org.datanucleus.store.rdbms.datasource.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
FieldsModifier and TypeFieldDescriptionprivate final PooledConnection
private final UserPassKey
private final String
private final char[]
-
Constructor Summary
ConstructorsConstructorDescriptionPooledConnectionAndInfo
(PooledConnection pc, String userName, char[] userPassword) PooledConnectionAndInfo
(PooledConnection pc, String userName, String userPassword) Deprecated.Since 2.4.0 -
Method Summary
Modifier and TypeMethodDescription(package private) String
Gets the value of password.(package private) char[]
Gets the value of password.(package private) PooledConnection
(package private) String
Gets the value of userName.(package private) UserPassKey
-
Field Details
-
pooledConnection
-
userPassword
private final char[] userPassword -
userName
-
upKey
-
-
Constructor Details
-
PooledConnectionAndInfo
PooledConnectionAndInfo(PooledConnection pc, String userName, char[] userPassword) - Since:
- 2.4.0
-
PooledConnectionAndInfo
Deprecated.Since 2.4.0
-
-
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.
-