Class LocalDatabase
java.lang.Object
net.sf.jailer.database.LocalDatabase
-
Constructor Summary
ConstructorsConstructorDescriptionLocalDatabase(String driverClassName, String urlPattern, String user, String password, String jarfile, ExecutionContext executionContext) Creates a local database. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdetermineTempFileFolder(ExecutionContext executionContext) Determines the folder to be used for local db's temp files.Gets theSessionfor the local database.voidshutDown()Shut local database down.
-
Constructor Details
-
LocalDatabase
public LocalDatabase(String driverClassName, String urlPattern, String user, String password, String jarfile, ExecutionContext executionContext) throws ClassNotFoundException, FileNotFoundException, SQLException Creates a local database.- Parameters:
driverClassName- name of the JDBC driver classurlPattern- JDBC URL pattern where%sis replaced with the database file pathuser- the database userpassword- the database passwordjarfile- path to the JDBC driver jar fileexecutionContext- the execution context- Throws:
ClassNotFoundExceptionFileNotFoundExceptionSQLException
-
-
Method Details
-
determineTempFileFolder
Determines the folder to be used for local db's temp files.- Parameters:
executionContext- theExecutionContext- Returns:
- the folder to be used for local db's temp files
-
shutDown
Shut local database down. Remove all database files.- Throws:
SQLException
-
getSession
-