org.basex.core.proc
Class Open
java.lang.Object
org.basex.core.Progress
org.basex.core.Process
org.basex.core.proc.Open
public final class Open
- extends Process
Evaluates the 'open' command and opens 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 |
Open(java.lang.String name)
Default constructor. |
|
Method Summary |
static Data |
check(Context ctx,
java.lang.String path)
Opens the specified database; if it does not exist, create a new
database instance. |
static Data |
open(Context ctx,
java.lang.String db)
Opens the specified database. |
| Methods inherited from class org.basex.core.Process |
args, data, error, execute, execute, info, info, info, output, printing, result, toString, updating |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Open
public Open(java.lang.String name)
- Default constructor.
- Parameters:
name - name of database
open
public static Data open(Context ctx,
java.lang.String db)
throws java.io.IOException
- Opens the specified database.
- Parameters:
ctx - database contextdb - name of database
- Returns:
- data reference
- Throws:
java.io.IOException - I/O exception
check
public static Data check(Context ctx,
java.lang.String path)
throws java.io.IOException
- Opens the specified database; if it does not exist, create a new
database instance.
- Parameters:
ctx - database contextpath - document path
- Returns:
- data reference
- Throws:
java.io.IOException - I/O exception