Package org.apache.tomcat.jdbc.pool
Class PoolUtilities
- java.lang.Object
-
- org.apache.tomcat.jdbc.pool.PoolUtilities
-
public class PoolUtilities extends java.lang.ObjectUtility methods for managing JDBC pool properties.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_PASSWORDProperty key for the database password.static java.lang.StringPROP_USERProperty key for the database user name.
-
Constructor Summary
Constructors Constructor Description PoolUtilities()Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Propertiesclone(java.util.Properties p)Creates a shallow copy of the given properties.static java.util.PropertiescloneWithoutPassword(java.util.Properties p)Creates a copy of the given properties with the password entry removed.
-
-
-
Field Detail
-
PROP_USER
public static final java.lang.String PROP_USER
Property key for the database user name.- See Also:
- Constant Field Values
-
PROP_PASSWORD
public static final java.lang.String PROP_PASSWORD
Property key for the database password.- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public static java.util.Properties clone(java.util.Properties p)
Creates a shallow copy of the given properties.- Parameters:
p- the properties to clone- Returns:
- a new Properties instance containing all entries from the source
-
cloneWithoutPassword
public static java.util.Properties cloneWithoutPassword(java.util.Properties p)
Creates a copy of the given properties with the password entry removed.- Parameters:
p- the properties to clone- Returns:
- a new Properties instance with all entries except the password
-
-