Package edu.gsu.cs.dmlab.databases
Class Postgres_StateDBCreator
- java.lang.Object
-
- edu.gsu.cs.dmlab.databases.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Postgres_StateDBCreator.TABLE_NAMES
-
Constructor Summary
Constructors Constructor Description Postgres_StateDBCreator(DataSource dsourc, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkStateTableExists()
Checks if the table used for storing processing state is in the database.boolean
createStateTable()
Builds the table used for storing processing state of the ISD processing pipeline.
-
-
-
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 interfaceIISDStateDBCreator
- 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 interfaceIISDStateDBCreator
- Returns:
- True if successful, False otherwise.
- Throws:
SQLException
- If there was an SQLException that occurred while attempting to execute.
-
-