org.basex.core.proc
Class DropDB
java.lang.Object
org.basex.core.Progress
org.basex.core.Process
org.basex.core.proc.DropDB
public final class DropDB
- extends Process
Evaluates the 'drop database' command and deletes a database.
- Author:
- Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen
| Fields inherited from class org.basex.core.Process |
args |
|
Constructor Summary |
DropDB(java.lang.String name)
Default constructor. |
|
Method Summary |
static boolean |
drop(java.lang.String db,
Prop pr)
Deletes the specified database. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class org.basex.core.Process |
args, data, error, execute, execute, info, info, info, output, printing, result, updating |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DropDB
public DropDB(java.lang.String name)
- Default constructor.
- Parameters:
name - name of database
drop
public static boolean drop(java.lang.String db,
Prop pr)
- Deletes the specified database.
- Parameters:
db - database namepr - database properties
- Returns:
- success flag
toString
public java.lang.String toString()
- Description copied from class:
Process
- Returns a string representation of the object. In the client/server
architecture, the command string is sent to and reparsed by the server.
- Overrides:
toString in class Process
- Returns:
- string representation