org.basex.core.proc
Class Open

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

public final class Open
extends Proc

Evaluates the 'open' command and opens 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
Open(String name)
          Default constructor.
 
Method Summary
static Data open(Context ctx, String db)
          Opens the specified database.
 
Methods inherited from class org.basex.core.Proc
exec, exec, execute, execute, info, result, toString, 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

Open

public Open(String name)
Default constructor.

Parameters:
name - name of database
Method Detail

open

public static Data open(Context ctx,
                        String db)
                 throws IOException
Opens the specified database.

Parameters:
ctx - database context
db - name of database
Returns:
data reference
Throws:
IOException - I/O exception