Class PoolUtilities
java.lang.Object
org.apache.tomcat.jdbc.pool.PoolUtilities
Utility methods for managing JDBC pool properties.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Propertiesclone(Properties p) Creates a shallow copy of the given properties.static PropertiesCreates a copy of the given properties with the password entry removed.
-
Field Details
-
PROP_USER
-
PROP_PASSWORD
-
-
Constructor Details
-
PoolUtilities
public PoolUtilities()Default constructor.
-
-
Method Details
-
clone
Creates a shallow copy of the given properties. Entries that the source resolves to a String through a defaults table are materialized into the copy as plain values, unless the source has a directly present entry under the same key, so the copy needs no defaults table of its own for them. Entries directly present in the source are copied as they are, including non-String values, and take precedence; the defaults table itself is not carried over.- Parameters:
p- the properties to clone- Returns:
- a new Properties instance containing all entries from the source
-
cloneWithoutPassword
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
-