Class ImportManager

java.lang.Object
com.jk.data.backup.ImportManager

public class ImportManager extends Object
This class is responsible for managing the import of SQL data into a database.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • ImportManager

      public ImportManager(String sqlFilePath) throws JKValidationException
      This method constructs a new ImportManager with the path to the SQL file for import.
      Parameters:
      sqlFilePath - Specifies the path to the SQL file to be imported.
      Throws:
      JKValidationException - if the provided SQL file path is empty or null.
  • Method Details

    • doImport

      public boolean doImport() throws Exception
      This method initiates the import process for the SQL data into the database.
      Returns:
      true, if the import is successful, false otherwise.
      Throws:
      Exception - if an error occurs during the import process.