Class LocalDatabase

java.lang.Object
net.sf.jailer.database.LocalDatabase

public class LocalDatabase extends Object
Provides a local database (H2).
Author:
Ralf Wisser
  • Constructor Details

  • Method Details

    • determineTempFileFolder

      public static String determineTempFileFolder(ExecutionContext executionContext)
      Determines the folder to be used for local db's temp files.
      Parameters:
      executionContext - the ExecutionContext
      Returns:
      the folder to be used for local db's temp files
    • shutDown

      public void shutDown() throws SQLException
      Shut local database down. Remove all database files.
      Throws:
      SQLException
    • getSession

      public Session getSession()
      Gets the Session for the local database.
      Returns:
      the session for the local database