public final class DropDB extends ACreate
| Constructor and Description |
|---|
DropDB(java.lang.String name)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandBuilder cb)
Builds a string representation from the command.
|
static boolean |
drop(IOFile path)
Drops a database directory.
|
static boolean |
drop(IOFile path,
java.lang.String pat)
Recursively drops files in database directory with the specified pattern.
|
static boolean |
drop(java.lang.String db,
Context ctx)
Deletes the specified database.
|
boolean |
newData(Context ctx)
Closes an open data reference and returns
true if this command will change
the Context.data reference. |
java.lang.String |
pinned(Context ctx)
Checks if the database to be updated is opened (pinned) by a process in another JVM.
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
build, cache, create, drop, pinned, startUpdate, stoppable, stopUpdate, supportsProgclose, error, execute, execute, getOption, getOption, info, info, result, run, setInput, setInput, toString, updated, updatingpublic DropDB(java.lang.String name)
name - name of databaseprotected boolean run()
Commandpublic java.lang.String pinned(Context ctx)
Commandpublic static boolean drop(java.lang.String db,
Context ctx)
db - name of the databasectx - database contextpublic static boolean drop(IOFile path)
path - database pathpublic static boolean drop(IOFile path, java.lang.String pat)
path - database pathpat - file patternpublic boolean newData(Context ctx)
Commandtrue if this command will change
the Context.data reference. This method is required by the progress dialog
in the frontend.public void build(CommandBuilder cb)
Command