public final class Open extends Command
Constructor and Description |
---|
Open(String name)
Default constructor.
|
Open(String name,
String path)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process.
|
static String |
dbnf(String name)
Returns an error message for an unknown database.
|
boolean |
newData(Context ctx)
Closes an open data reference and returns
true if this command will change the
Context.data() reference. |
static Data |
open(String name,
Context context,
MainOptions options)
Opens the specified database.
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
build, close, databases, error, execute, execute, finish, finishUpdate, getOption, getOption, info, info, init, run, run, setInput, setInput, startUpdate, stoppable, supportsProg, toString, toString, updated, updating
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
public Open(String name)
name
- name of databaseprotected boolean run()
Command
public void databases(LockResult lr)
Proc
public boolean newData(Context ctx)
Command
true
if this command will change the
Context.data()
reference. This method is required by the progress dialog in the
frontend.public static Data open(String name, Context context, MainOptions options) throws IOException
name
- name of databasecontext
- database contextoptions
- main optionsIOException
- I/O exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.