1 16 17 package org.apache.commons.dbcp.datasources; 18 19 import javax.sql.PooledConnection ; 20 21 24 final class PooledConnectionAndInfo { 25 private final PooledConnection pooledConnection; 26 private final String password; 27 private final String username; 28 private final UserPassKey upkey; 29 30 PooledConnectionAndInfo(PooledConnection pc, 31 String username, String password) { 32 this.pooledConnection = pc; 33 this.username = username; 34 this.password = password; 35 upkey = new UserPassKey(username, password); 36 } 37 38 final PooledConnection getPooledConnection() { 39 return pooledConnection; 40 } 41 42 final UserPassKey getUserPassKey() { 43 return upkey; 44 } 45 46 50 final String getPassword() { 51 return password; 52 } 53 54 58 final String getUsername() { 59 return username; 60 } 61 } 62 | Popular Tags |