| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| private static String | Returns: the database name or nullthe file name (without directory) fileName)Extract the name of the database from a given file name. |
| private static String | |
| public static void | |
| public void | runTool(String...
the argument list args)Implements abstract org. Run the tool with the given output stream and arguments. |
| Restore | back to summary |
|---|---|
| public Restore() | |
| execute | back to summary |
|---|---|
| public static void execute(String zipFileName, String directory, String db) Restores database files.
| |
| getDatabaseNameFromFileName | back to summary |
|---|---|
| private static String getDatabaseNameFromFileName(String fileName) Extract the name of the database from a given file name. Only files ending with .h2.db are considered, all others return null. | |
| getOriginalDbName | back to summary |
|---|---|
| private static String getOriginalDbName(String fileName, String db) throws IOException | |
| main | back to summary | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static void main(String... args) throws SQLException Options are case sensitive. Supported options
| |||||||||||
| runTool | back to summary |
|---|---|
| public void runTool(String... args) throws SQLException Implements abstract org. Doc from org. Run the tool with the given output stream and arguments.
| |