Class Postgres_StateDBCreator

  • All Implemented Interfaces:
    IISDStateDBCreator

    public class Postgres_StateDBCreator
    extends Object
    implements IISDStateDBCreator
    Author:
    Dustin Kempton, Surabhi Priya, Data Mining Lab, Georgia State University
    • Constructor Detail

      • Postgres_StateDBCreator

        public Postgres_StateDBCreator​(DataSource dsourc,
                                       org.slf4j.Logger logger)
        Parameters:
        dsourc - The datasource connection object used to connect to the database.
        logger - The SLF4J logging object used to log errors that occur in this object.
    • Method Detail

      • checkStateTableExists

        public boolean checkStateTableExists()
                                      throws SQLException
        Description copied from interface: IISDStateDBCreator
        Checks if the table used for storing processing state is in the database.
        Specified by:
        checkStateTableExists in interface IISDStateDBCreator
        Returns:
        True if the table used for storing processing state exists, False otherwise.
        Throws:
        SQLException - If there was an SQLException that occurred while attempting to execute.
      • createStateTable

        public boolean createStateTable()
                                 throws SQLException
        Description copied from interface: IISDStateDBCreator
        Builds the table used for storing processing state of the ISD processing pipeline.
        Specified by:
        createStateTable in interface IISDStateDBCreator
        Returns:
        True if successful, False otherwise.
        Throws:
        SQLException - If there was an SQLException that occurred while attempting to execute.