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 Link icon

    • isJodaTimeAvailable Link icon

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

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

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

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

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