public class LocalDatabase
extends java.lang.Object
| Constructor and Description |
|---|
LocalDatabase(java.lang.String driverClassName,
java.lang.String urlPattern,
java.lang.String user,
java.lang.String password,
java.lang.String jarfile,
ExecutionContext executionContext)
Creates a local database.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
determineTempFileFolder(ExecutionContext executionContext)
Determines the folder to be used for local db's temp files.
|
Session |
getSession()
Gets the
Session for the local database. |
void |
shutDown()
Shut local database down.
|
public LocalDatabase(java.lang.String driverClassName,
java.lang.String urlPattern,
java.lang.String user,
java.lang.String password,
java.lang.String jarfile,
ExecutionContext executionContext)
throws java.lang.ClassNotFoundException,
java.io.FileNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundExceptionjava.io.FileNotFoundExceptionjava.sql.SQLExceptionpublic static java.lang.String determineTempFileFolder(ExecutionContext executionContext)
executionContext - the ExecutionContextpublic void shutDown()
throws java.sql.SQLException
java.sql.SQLException