Class StoredConnection.DataSourceConfig

java.lang.Object
com.invirgance.convirgance.jdbc.StoredConnection.DataSourceConfig
Enclosing class:
StoredConnection

public class StoredConnection.DataSourceConfig extends Object
Represents the data source configuration for a driver.
  • Method Details

    • getProperties

      public String[] getProperties()
      Returns the property names available to the data source.
      Returns:
      A string array of the property names.
    • getProperty

      public Object getProperty(String property)
      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

      public void setProperty(String property, String value)
      Updates the configuration, updating the property's value.
      Parameters:
      property - Property name.
      value - Value.
    • setProperty

      public void setProperty(String property, Object value)
      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

      public String toString()
      Overrides:
      toString in class Object