|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.ACreate
org.basex.core.cmd.DropDB
public final class DropDB
Evaluates the 'drop database' command and deletes a database.
Field Summary |
---|
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
DropDB(java.lang.String name)
Default constructor. |
Method Summary | |
---|---|
void |
build(CmdBuilder cb)
Builds a string representation from the command. |
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process. |
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. |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
Methods inherited from class org.basex.core.cmd.ACreate |
---|
create, drop, sourceToIO, stoppable, supportsProg |
Methods inherited from class org.basex.core.Command |
---|
close, databases, error, execute, execute, getOption, getOption, info, info, result, run, run, setInput, setInput, toString, updated, updating |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DropDB(java.lang.String name)
name
- name of databaseMethod Detail |
---|
protected boolean run()
Command
run
in class Command
public static boolean drop(java.lang.String db, Context ctx)
db
- name of the databasectx
- database context
public static boolean drop(IOFile path)
path
- database path
public static boolean drop(IOFile path, java.lang.String pat)
path
- database pathpat
- file pattern
public boolean newData(Context ctx)
Command
true
if this command will change
the Context.data
reference. This method is required by the progress dialog
in the frontend.
newData
in class ACreate
ctx
- database context
public void databases(LockResult lr)
Proc
databases
in class ACreate
lr
- Container for lock result to pass aroundpublic void build(CmdBuilder cb)
Command
build
in class Command
cb
- command builder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |