public class DefaultPropertySet extends java.lang.Object implements PropertySet, java.io.Serializable
| Constructor and Description |
|---|
DefaultPropertySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(RuntimeProperty<?> prop) |
java.util.Properties |
exposeAsProperties() |
RuntimeProperty<java.lang.Boolean> |
getBooleanProperty(PropertyKey key) |
RuntimeProperty<java.lang.Boolean> |
getBooleanProperty(java.lang.String name) |
<T extends java.lang.Enum<T>> |
getEnumProperty(PropertyKey key) |
<T extends java.lang.Enum<T>> |
getEnumProperty(java.lang.String name) |
RuntimeProperty<java.lang.Integer> |
getIntegerProperty(PropertyKey key) |
RuntimeProperty<java.lang.Integer> |
getIntegerProperty(java.lang.String name) |
RuntimeProperty<java.lang.Long> |
getLongProperty(PropertyKey key) |
RuntimeProperty<java.lang.Long> |
getLongProperty(java.lang.String name) |
RuntimeProperty<java.lang.Integer> |
getMemorySizeProperty(PropertyKey key) |
RuntimeProperty<java.lang.Integer> |
getMemorySizeProperty(java.lang.String name) |
<T> RuntimeProperty<T> |
getProperty(PropertyKey key) |
<T> RuntimeProperty<T> |
getProperty(java.lang.String name) |
RuntimeProperty<java.lang.String> |
getStringProperty(PropertyKey key) |
RuntimeProperty<java.lang.String> |
getStringProperty(java.lang.String name) |
void |
initializeProperties(java.util.Properties props)
Initializes the property set with driver properties that come from URL or passed to
the driver manager.
|
void |
postInitialization() |
void |
removeProperty(PropertyKey key) |
void |
removeProperty(java.lang.String name) |
void |
reset()
Reset all properties to their initial values.
|
public void addProperty(RuntimeProperty<?> prop)
addProperty in interface PropertySetpublic void removeProperty(java.lang.String name)
removeProperty in interface PropertySetpublic void removeProperty(PropertyKey key)
removeProperty in interface PropertySetpublic <T> RuntimeProperty<T> getProperty(java.lang.String name)
getProperty in interface PropertySetpublic <T> RuntimeProperty<T> getProperty(PropertyKey key)
getProperty in interface PropertySetpublic RuntimeProperty<java.lang.Boolean> getBooleanProperty(java.lang.String name)
getBooleanProperty in interface PropertySetpublic RuntimeProperty<java.lang.Boolean> getBooleanProperty(PropertyKey key)
getBooleanProperty in interface PropertySetpublic RuntimeProperty<java.lang.Integer> getIntegerProperty(java.lang.String name)
getIntegerProperty in interface PropertySetpublic RuntimeProperty<java.lang.Integer> getIntegerProperty(PropertyKey key)
getIntegerProperty in interface PropertySetpublic RuntimeProperty<java.lang.Long> getLongProperty(java.lang.String name)
getLongProperty in interface PropertySetpublic RuntimeProperty<java.lang.Long> getLongProperty(PropertyKey key)
getLongProperty in interface PropertySetpublic RuntimeProperty<java.lang.Integer> getMemorySizeProperty(java.lang.String name)
getMemorySizeProperty in interface PropertySetpublic RuntimeProperty<java.lang.Integer> getMemorySizeProperty(PropertyKey key)
getMemorySizeProperty in interface PropertySetpublic RuntimeProperty<java.lang.String> getStringProperty(java.lang.String name)
getStringProperty in interface PropertySetpublic RuntimeProperty<java.lang.String> getStringProperty(PropertyKey key)
getStringProperty in interface PropertySetpublic <T extends java.lang.Enum<T>> RuntimeProperty<T> getEnumProperty(java.lang.String name)
getEnumProperty in interface PropertySetpublic <T extends java.lang.Enum<T>> RuntimeProperty<T> getEnumProperty(PropertyKey key)
getEnumProperty in interface PropertySetpublic void initializeProperties(java.util.Properties props)
PropertySetinitializeProperties in interface PropertySetprops - propertiespublic void postInitialization()
postInitialization in interface PropertySetpublic java.util.Properties exposeAsProperties()
exposeAsProperties in interface PropertySetpublic void reset()
PropertySetreset in interface PropertySet