org.basex.core.proc
Class DropDB

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.core.Proc
          extended by 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

Field Summary
 
Fields inherited from class org.basex.core.Proc
DATAREF, flags, STANDARD
 
Constructor Summary
DropDB(String name)
          Default constructor.
 
Method Summary
static boolean delete(String db, String pat, Prop pr)
          Recursively deletes a database directory.
static boolean drop(String db, Prop pr)
          Deletes the specified database.
 String toString()
          Returns a string representation of the process.
 
Methods inherited from class org.basex.core.Proc
exec, exec, execute, execute, info, result, updating
 
Methods inherited from class org.basex.core.Progress
abort, checkStop, det, detail, prog, progress, progress, stop, tit, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DropDB

public DropDB(String name)
Default constructor.

Parameters:
name - name of database
Method Detail

drop

public static boolean drop(String db,
                           Prop pr)
Deletes the specified database.

Parameters:
db - database name
pr - 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 delete
pat - file pattern
pr - 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