org.basex.core.proc
Class DropDB
java.lang.Object
org.basex.core.Progress
org.basex.core.Proc
org.basex.core.proc.DropDB
public final class DropDB
- extends Proc
Evaluates the 'drop database' command and deletes a database.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
Constructor Summary |
DropDB(String name)
Default constructor. |
DropDB
public DropDB(String name)
- Default constructor.
- Parameters:
name
- name of database
drop
public static boolean drop(String db,
Prop pr)
- Deletes the specified database.
- Parameters:
db
- database namepr
- database properties
- Returns:
- success flag
delete
public static boolean delete(String db,
String pat,
Prop pr)
- Recursively deletes a database directory.
- Parameters:
db
- database to deletepat
- file patternpr
- database properties
- Returns:
- success of operation
toString
public String toString()
- Description copied from class:
Proc
- Returns a string representation of the process. In the client/server
architecture, this string is sent to and reparsed by the server.
- Overrides:
toString
in class Proc
- Returns:
- string representation