public class Restore extends Tool
| 构造器和说明 |
|---|
Restore() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
execute(String zipFileName,
String directory,
String db)
Restores database files.
|
static void |
main(String... args)
Options are case sensitive.
|
void |
runTool(String... args)
Run the tool with the given output stream and arguments.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOptionpublic static void main(String... args) throws SQLException
| [-help] or [-?] | Print the list of options |
| [-file <filename>] | The source file name (default: backup.zip) |
| [-dir <dir>] | The target directory (default: .) |
| [-db <database>] | The target database name (as stored if not set) |
| [-quiet] | Do not print progress information |
args - the command line argumentsSQLExceptionpublic void runTool(String... args) throws SQLException
ToolrunTool 在类中 Toolargs - the argument listSQLExceptionpublic static void execute(String zipFileName, String directory, String db)
zipFileName - the name of the backup filedirectory - the directory namedb - the database name (null for all databases)DbException - if there is an IOExceptionCopyright © 2017. All rights reserved.