Class C3P0ConfigUtils

java.lang.Object
com.mchange.v2.c3p0.cfg.C3P0ConfigUtils

public final class C3P0ConfigUtils extends Object
  • Field Details

  • Method Details

    • extractHardcodedC3P0Defaults

      public static HashMap extractHardcodedC3P0Defaults(boolean stringify_coercibles)
      Parameters:
      stringify_coercibles - these properties may eventually be used to initialize bean properties reflectively. to avoid having to get types exactly right (e.g. is it a Double or a double or an int?), it can be convenient to just represent these values as Strings and coerce those to the appropriate type when needed using com.mchange.v2.lang.Coerce. If true, we convert all coercible values into Strings. Non-coercible values are always left alone.
    • extractHardcodedC3P0Defaults

      public static HashMap extractHardcodedC3P0Defaults()
    • extractHardcodedC3P0DefaultsStringCoercedOnly

      public static Properties extractHardcodedC3P0DefaultsStringCoercedOnly()
    • extractC3P0PropertiesResources

      @Deprecated public static HashMap extractC3P0PropertiesResources()
      Deprecated.
    • extractC3P0PropertiesResources

      public static HashMap extractC3P0PropertiesResources(com.mchange.v2.cfg.MultiPropertiesConfig mpcfg)
    • getPropsFileConfigProperty

      @Deprecated public static String getPropsFileConfigProperty(String prop)
      Deprecated.
      In general, try to use com.mchange.v2.cfg.SealedSystemPropertiesStringProperty with C3P0Config.getMultiPropertiesConfig() as its argument.
    • extractUserOverride

      public static Object extractUserOverride(String propName, String userName, Map userOverrides)
      Returns:
      null if no per-user override is found
    • extractBooleanUserOverride

      public static Boolean extractBooleanUserOverride(String propName, String userName, Map userOverrides)
    • extractIntUserOverride

      public static Integer extractIntUserOverride(String propName, String userName, Map userOverrides)