/** * Deletes the database files. * * @param dir the directory * @param db the database name (null for all databases) * @param quiet don't print progress information */ public static void execute(String dir, String db, boolean quiet) { new DeleteDbFiles().process(dir, db, quiet); }
/** * Options are case sensitive. Supported options are: * <table> * <tr><td>[-help] or [-?]</td> * <td>Print the list of options</td></tr> * <tr><td>[-dir <dir>]</td> * <td>The directory (default: .)</td></tr> * <tr><td>[-db <database>]</td> * <td>The database name</td></tr> * <tr><td>[-quiet]</td> * <td>Do not print progress information</td></tr> * </table> * @h2.resource * * @param args the command line arguments */ public static void main(String... args) throws SQLException { new DeleteDbFiles().runTool(args); }
tool = new Recover(); } else if ("DeleteDbFiles".equals(toolName)) { tool = new DeleteDbFiles(); } else if ("ChangeFileEncryption".equals(toolName)) { tool = new ChangeFileEncryption();
/** * Deletes the database files. * * @param dir the directory * @param db the database name (null for all databases) * @param quiet don't print progress information */ public static void execute(String dir, String db, boolean quiet) { new DeleteDbFiles().process(dir, db, quiet); }
/** * Deletes the database files. * * @param dir the directory * @param db the database name (null for all databases) * @param quiet don't print progress information * @throws SQLException */ public static void execute(String dir, String db, boolean quiet) throws SQLException { new DeleteDbFiles().process(dir, db, quiet); }
/** * Deletes the database files. * * @param dir the directory * @param db the database name (null for all databases) * @param quiet don't print progress information */ public static void execute(String dir, String db, boolean quiet) { new DeleteDbFiles().process(dir, db, quiet); }
/** * The command line interface for this tool. * The options must be split into strings like this: "-db", "test",... * Options are case sensitive. The following options are supported: * <ul> * <li>-help or -? (print the list of options) * </li><li>-dir database directory (the default is the current directory) * </li><li>-db database name (all databases if no name is specified) * </li><li>-quiet does not print progress information * </li></ul> * * @param args the command line arguments * @throws SQLException */ public static void main(String[] args) throws SQLException { new DeleteDbFiles().run(args); }
/** * Options are case sensitive. Supported options are: * <table> * <tr><td>[-help] or [-?]</td> * <td>Print the list of options</td></tr> * <tr><td>[-dir <dir>]</td> * <td>The directory (default: .)</td></tr> * <tr><td>[-db <database>]</td> * <td>The database name</td></tr> * <tr><td>[-quiet]</td> * <td>Do not print progress information</td></tr> * </table> * @h2.resource * * @param args the command line arguments */ public static void main(String... args) throws SQLException { new DeleteDbFiles().runTool(args); }
/** * Options are case sensitive. Supported options are: * <table> * <tr><td>[-help] or [-?]</td> * <td>Print the list of options</td></tr> * <tr><td>[-dir <dir>]</td> * <td>The directory (default: .)</td></tr> * <tr><td>[-db <database>]</td> * <td>The database name</td></tr> * <tr><td>[-quiet]</td> * <td>Do not print progress information</td></tr> * </table> * @h2.resource * * @param args the command line arguments */ public static void main(String... args) throws SQLException { new DeleteDbFiles().runTool(args); }
/** * Deletes the database files. * * @param dir the directory * @param db the database name (null for all databases) * @param quiet don't print progress information * @throws SQLException */ private void process(String dir, String db, boolean quiet) throws SQLException { DeleteDbFiles delete = new DeleteDbFiles(); ArrayList files = FileLister.getDatabaseFiles(dir, db, true); if (files.size() == 0 && !quiet) { printNoDatabaseFilesFound(dir, db); } for (int i = 0; i < files.size(); i++) { String fileName = (String) files.get(i); delete.process(fileName, quiet); if (!quiet) { out.println("Processed: " + fileName); } } }
tool = new Recover(); } else if ("DeleteDbFiles".equals(toolName)) { tool = new DeleteDbFiles(); } else if ("ChangeFileEncryption".equals(toolName)) { tool = new ChangeFileEncryption();
tool = new Recover(); } else if ("DeleteDbFiles".equals(toolName)) { tool = new DeleteDbFiles(); } else if ("ChangePassword".equals(toolName)) { tool = new ChangePassword();
tool = new Recover(); } else if ("DeleteDbFiles".equals(toolName)) { tool = new DeleteDbFiles(); } else if ("ChangeFileEncryption".equals(toolName)) { tool = new ChangeFileEncryption();