Package com.invirgance.convirgance.jdbc
Class StoredConnection.DataSourceConfig
java.lang.Object
com.invirgance.convirgance.jdbc.StoredConnection.DataSourceConfig
- Enclosing class:
StoredConnection
Represents the data source configuration for a driver.
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the property names available to the data source.getProperty
(String property) Gets the current value of a property.void
setProperty
(String property, Object value) Updates the configuration, updating the property's value.void
setProperty
(String property, String value) Updates the configuration, updating the property's value.toString()
-
Method Details
-
getProperties
Returns the property names available to the data source.- Returns:
- A string array of the property names.
-
getProperty
Gets the current value of a property. If the property is missing from the current configuration the value of the default is returned. The default value returned will most likely be null, this is the same if the property doesn't exist at all.- Parameters:
property
- Property name.- Returns:
- The current value.
-
setProperty
Updates the configuration, updating the property's value.- Parameters:
property
- Property name.value
- Value.
-
setProperty
Updates the configuration, updating the property's value. This preserves the values type, but JSONObject must be able to serialize the object.- Parameters:
property
- Property name.value
- Value.
-
toString
-