Class DatabaseUtils


  • public class DatabaseUtils
    extends java.lang.Object
    Utilities class for the database abstraction layer
    Author:
    Xavier Witdouck
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger log  
      private static java.util.Map<java.lang.String,​java.lang.String> sqlMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      DatabaseUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String loadSql​(java.lang.String resource)
      Returns the SQL loaded from a classpath resource if arg starts with "/"
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • sqlMap

        private static final java.util.Map<java.lang.String,​java.lang.String> sqlMap
    • Constructor Detail

      • DatabaseUtils

        public DatabaseUtils()
    • Method Detail

      • loadSql

        public static java.lang.String loadSql​(java.lang.String resource)
        Returns the SQL loaded from a classpath resource if arg starts with "/"
        Parameters:
        resource - the classpath resource to load SQL from
        Returns:
        the SQL expression