Class Main


  • public class Main
    extends Object
    Utility to patch an old schema for use-cases which fall outside the standard automatic schema migration process
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • createConnection

        protected Connection createConnection()
        Returns:
        a created connection to the selected database
      • patchSchema

        protected void patchSchema()
        Create the schemas
      • parseArgs

        protected void parseArgs​(String[] args)
        Parse the command-line arguments, building up the environment and establishing the run-list
        Parameters:
        args -
      • loadPropertyFile

        public void loadPropertyFile​(String filename)
        Read the properties from the given file
        Parameters:
        filename -
      • addProperty

        public void addProperty​(String pair)
        Parse the given key=value string and add to the properties being collected
        Parameters:
        pair -
      • process

        protected void process()
        Process the requested operation
      • getExitStatus

        protected int getExitStatus()
        Get the program exit status from the environment
        Returns:
      • logStatusMessage

        protected void logStatusMessage​(int status)
        Write a final status message - useful for QA to review when checking the output
      • main

        public static void main​(String[] args)
        Main entry point
        Parameters:
        args -