Class FeatureDetector

java.lang.Object
org.sql2o.tools.FeatureDetector

public final class FeatureDetector extends Object
Detects whether optional sql2o features are available.
Author:
Alden Quimby
  • Method Details

    • isJodaTimeAvailable

      public static boolean isJodaTimeAvailable()
      Returns:
      true if Joda-Time is available, false otherwise.
    • isSlf4jAvailable

      public static boolean isSlf4jAvailable()
      Returns:
      true if Slf4j is available, false otherwise.
    • isOracleAvailable

      public static boolean isOracleAvailable()
      Returns:
      true if oracle.sql is available, false otherwise.
    • isCacheUnderscoreToCamelcaseEnabled

      public static boolean isCacheUnderscoreToCamelcaseEnabled()
      Returns:
      true if caching of underscore to camelcase is enabled.
    • setCacheUnderscoreToCamelcaseEnabled

      public static void setCacheUnderscoreToCamelcaseEnabled(boolean cacheUnderscoreToCamelcaseEnabled)
      Turn caching of underscore to camelcase on or off.