Class CommonUtil


  • public final class CommonUtil
    extends Object
    • Constructor Detail

      • CommonUtil

        public CommonUtil()
    • Method Detail

      • printUsage

        public static void printUsage()
        prints a brief menu to the standard out showing the usage.
      • configureLogger

        public static void configureLogger()
        Set up the logger using the log.dir system property
      • logClasspath

        public static void logClasspath​(Logger logger)
        Print the classpath so we can see what on earth is going on with connecting to DB2 using an api key.
      • configureLogger

        public static void configureLogger​(String logDir)
        Configure the logger to use the given directory.
        Parameters:
        logDir -
      • getRandomKey

        public static String getRandomKey()
        Generate a random 32 byte value encoded as a Base64 string (44 characters).
        Returns:
      • loadDriver

        public static void loadDriver​(IDatabaseTranslator translator)
        Load the driver class