Package org.sql2o.tools
Class FeatureDetector
java.lang.Object
org.sql2o.tools.FeatureDetector
Detects whether optional sql2o features are available.
- Author:
- Alden Quimby
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static boolean
static boolean
static void
setCacheUnderscoreToCamelcaseEnabled
(boolean cacheUnderscoreToCamelcaseEnabled) Turn caching of underscore to camelcase on or off.
-
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.
-