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 booleanstatic booleanstatic booleanstatic booleanstatic voidsetCacheUnderscoreToCamelcaseEnabled(boolean cacheUnderscoreToCamelcaseEnabled) Turn caching of underscore to camelcase on or off.
-
Method Details
-
isJodaTimeAvailable
public static boolean isJodaTimeAvailable()- Returns:
trueif Joda-Time is available,falseotherwise.
-
isSlf4jAvailable
public static boolean isSlf4jAvailable()- Returns:
trueif Slf4j is available,falseotherwise.
-
isOracleAvailable
public static boolean isOracleAvailable()- Returns:
trueif oracle.sql is available,falseotherwise.
-
isCacheUnderscoreToCamelcaseEnabled
public static boolean isCacheUnderscoreToCamelcaseEnabled()- Returns:
trueif caching of underscore to camelcase is enabled.
-
setCacheUnderscoreToCamelcaseEnabled
public static void setCacheUnderscoreToCamelcaseEnabled(boolean cacheUnderscoreToCamelcaseEnabled) Turn caching of underscore to camelcase on or off.
-