org.basex.core.proc
Class Drop

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.core.AbstractProcess
          extended by org.basex.core.proc.Proc
              extended by org.basex.core.proc.Drop

public final class Drop
extends Proc

Evaluates the 'drop' command. Deletes a database or index structure.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Field Summary
static java.lang.String DB
          Create option.
static java.lang.String INDEX
          Create option.
 
Fields inherited from class org.basex.core.AbstractProcess
cmd
 
Constructor Summary
Drop()
           
 
Method Summary
static boolean drop(java.lang.String db)
          Delete a database.
 
Methods inherited from class org.basex.core.proc.Proc
det, execute, execute, get, head, info, info, output, output, prog, result, toString
 
Methods inherited from class org.basex.core.Progress
detail, header, progress, progress, stop, stopped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DB

public static final java.lang.String DB
Create option.

See Also:
Constant Field Values

INDEX

public static final java.lang.String INDEX
Create option.

See Also:
Constant Field Values
Constructor Detail

Drop

public Drop()
Method Detail

drop

public static boolean drop(java.lang.String db)
Delete a database.

Parameters:
db - database name
Returns:
success of operation