Package adams.db

Class AbstractTableCleanUp

    • Constructor Detail

      • AbstractTableCleanUp

        public AbstractTableCleanUp()
    • Method Detail

      • check

        protected String check()
        Performs checks before cleaning up the table.

        Default implementation only checks if connected to database
        Returns:
        null if checks successful, otherwise error message
      • doCleanUpTable

        protected abstract String doCleanUpTable()
        Performs the actual clean up.
        Returns:
        null if successfully cleaned up, otherwise error message
      • cleanUpTable

        public String cleanUpTable()
        Cleans up the table.
        Returns:
        null if successfully cleaned up, otherwise error message