Class PooledConnectionAndInfo
- java.lang.Object
-
- org.datanucleus.store.rdbms.datasource.dbcp2.datasources.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
-
-
Field Summary
Fields Modifier and Type Field Description private javax.sql.PooledConnection
pooledConnection
private UserPassKey
upKey
private java.lang.String
userName
private char[]
userPassword
-
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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getPassword()
Gets the value of password.(package private) char[]
getPasswordCharArray()
Gets the value of password.(package private) javax.sql.PooledConnection
getPooledConnection()
(package private) java.lang.String
getUsername()
Gets the value of userName.(package private) UserPassKey
getUserPassKey()
-
-
-
Field Detail
-
pooledConnection
private final javax.sql.PooledConnection pooledConnection
-
userPassword
private final char[] userPassword
-
userName
private final java.lang.String userName
-
upKey
private final UserPassKey upKey
-
-
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()
-
getUserPassKey
UserPassKey getUserPassKey()
-
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.
-
-