Class Main


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

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProperty​(java.lang.String pair)
      Parse the given key=value string and add to the properties being collected
      protected java.sql.Connection createConnection()  
      protected int getExitStatus()
      Get the program exit status from the environment
      void loadPropertyFile​(java.lang.String filename)
      Read the properties from the given file
      protected void logStatusMessage​(int status)
      Write a final status message - useful for QA to review when checking the output
      static void main​(java.lang.String[] args)
      Main entry point
      protected void parseArgs​(java.lang.String[] args)
      Parse the command-line arguments, building up the environment and establishing the run-list
      protected void patchSchema()
      Create the schemas
      protected void process()
      Process the requested operation
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • createConnection

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

        protected void patchSchema()
        Create the schemas
      • parseArgs

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

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

        public void addProperty​(java.lang.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​(java.lang.String[] args)
        Main entry point
        Parameters:
        args -