org.basex.core.cmd
Class InfoDB
java.lang.Object
org.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.InfoDB
public final class InfoDB
- extends Command
Evaluates the 'info database' command and returns information on the
currently opened database.
- Author:
- BaseX Team 2005-12, BSD License, Christian Gruen
Constructor Summary |
InfoDB()
Default constructor. |
Method Summary |
void |
build(CmdBuilder cb)
Builds a string representation from the command. |
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process. |
static java.lang.String |
db(MetaData meta,
boolean bold,
boolean index,
boolean create)
Creates a database information string. |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
Methods inherited from class org.basex.core.Command |
close, databases, error, execute, execute, getOption, getOption, info, info, newData, result, run, run, setInput, setInput, stoppable, supportsProg, toString, updated, updating |
Methods inherited from class org.basex.core.Proc |
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InfoDB
public InfoDB()
- Default constructor.
run
protected boolean run()
throws java.io.IOException
- Description copied from class:
Command
- Executes the command and serializes the result (internal call).
- Specified by:
run
in class Command
- Returns:
- success of operation
- Throws:
java.io.IOException
- I/O exception
databases
public void databases(LockResult lr)
- Description copied from class:
Proc
- Adds the names of the databases that may be touched by the process.
- Overrides:
databases
in class Proc
- Parameters:
lr
- Container for lock result to pass around
db
public static java.lang.String db(MetaData meta,
boolean bold,
boolean index,
boolean create)
- Creates a database information string.
- Parameters:
meta
- meta databold
- header bold header flagindex
- add index informationcreate
- create permissions
- Returns:
- info string
build
public void build(CmdBuilder cb)
- Description copied from class:
Command
- Builds a string representation from the command. This string must be
correctly built, as commands are sent to the server as strings.
- Overrides:
build
in class Command
- Parameters:
cb
- command builder