| Package | Description |
|---|---|
| org.basex.core |
Database core classes.
|
| org.basex.core.cmd |
Database commands.
|
| org.basex.gui |
GUI Package.
|
| org.basex.gui.dialog |
GUI Dialog Windows.
|
| org.basex.gui.view.info |
GUI Info View
|
| org.basex.gui.view.text |
GUI Text View.
|
| org.basex.server |
Server implementation.
|
| Modifier and Type | Method and Description |
|---|---|
Command[] |
CommandParser.parse()
Parses the input and returns a command list.
|
Command[] |
CommandParser.parse(boolean s)
Parses the input and returns a command list.
|
Command |
CommandParser.parseSingle()
Parses the input as single command and returns the result.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Main.execute(Command cmd,
boolean info)
Executes the specified command and optionally prints some information.
|
| Constructor and Description |
|---|
CommandBuilder(Command c)
Constructor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ACreate
Abstract class for database creation commands.
|
class |
Add
Evaluates the 'add' command and adds a document to a collection.
Note that the constructors of this class have changed with Version 7.0: the target path and file name have been merged and are now specified as first argument. |
class |
AlterDB
Evaluates the 'alter database' command and renames a database.
|
class |
AlterUser
Evaluates the 'alter user' command and alters the password of a user.
|
class |
Check
Evaluates the 'checks' command, opens an existing database or
creates a new one.
|
class |
Close
Evaluates the 'close' command and closes the current database.
|
class |
Copy
Evaluates the 'copy' command and creates a copy of a database.
|
class |
Create
This class allows developers to define their own parser implementations.
|
class |
CreateBackup
Evaluates the 'backup' command and creates a backup of a database.
|
class |
CreateDB
Evaluates the 'create db' command and creates a new database.
|
class |
CreateEvent
Evaluates the 'create event' command and creates a new event.
|
class |
CreateIndex
Evaluates the 'create db' command and creates a new index.
|
class |
CreateUser
Evaluates the 'create user' command and creates a new user.
|
class |
Cs
Evaluates the 'cs' command and sets a new initial context set.
|
class |
Delete
Evaluates the 'delete' command and deletes resources from a database.
|
class |
DropBackup
Evaluates the 'drop backup' command and deletes backups of a database.
|
class |
DropDB
Evaluates the 'drop database' command and deletes a database.
|
class |
DropEvent
Evaluates the 'drop event' command and drops an existing event.
|
class |
DropIndex
Evaluates the 'drop index' command and deletes indexes in the currently
opened database.
|
class |
DropUser
Evaluates the 'drop user' command and drops a user.
|
class |
Exit
Evaluates the 'exit' command and quits the console.
|
class |
Export
Evaluates the 'export' command and saves the currently opened database
to disk.
|
class |
Find
Evaluates the 'find' command and processes a simplified request as XQuery.
|
class |
Flush
Evaluates the 'flush' command and flushes the database buffers.
|
class |
Get
Evaluates the 'get' command and return the value of a database property.
|
class |
Grant
Evaluates the 'grant' command and grants permissions to users.
|
class |
Help
Evaluates the 'help' command and returns help on the database commands.
|
class |
Info
Evaluates the 'info' command and returns general database information.
|
class |
InfoDB
Evaluates the 'info database' command and returns information on the
currently opened database.
|
class |
InfoIndex
Evaluates the 'info index' command and returns information on the indexes
of the currently opened database.
|
class |
InfoStorage
Evaluates the 'info storage' command and returns the table representation
of the currently opened database.
|
class |
Kill
Evaluates the 'kill' command and stops user sessions.
|
class |
List
Evaluates the 'list' command and shows all available databases.
|
class |
ListDB
Evaluates the 'list' command and shows all documents in a database.
|
class |
Open
Evaluates the 'open' command and opens a database.
|
class |
Optimize
Evaluates the 'optimize' command and optimizes the data structures of
the currently opened database.
|
class |
OptimizeAll
Evaluates the 'optimize all' command and rebuilds all data structures of
the currently opened database.
|
class |
Password
Evaluates the 'password' command and alters the user's password.
|
class |
Rename
Evaluates the 'rename' command and renames resources or directories
in a collection.
|
class |
Replace
Evaluates the 'replace' command and replaces documents in a collection.
|
class |
RepoDelete
Evaluates the 'repo delete' command.
|
class |
RepoInstall
Evaluates the 'repo install' command.
|
class |
RepoList
Evaluates the 'repo list' command.
|
class |
Restore
Evaluates the 'restore' command and restores a backup of a database.
|
class |
Retrieve
Evaluates the 'retrieve' command and retrieves binary content.
|
class |
Run
Evaluates the 'run' command and processes a query file as XQuery.
|
class |
Set
Evaluates the 'set' command and modifies database properties.
|
class |
ShowBackups
Evaluates the 'show backups' command and shows available backups.
|
class |
ShowDatabases
Evaluates the 'show databases' command and shows opened databases.
|
class |
ShowEvents
Evaluates the 'show events' command and lists all existing events.
|
class |
ShowSessions
Evaluates the 'show sessions' command and shows server sessions.
|
class |
ShowUsers
Evaluates the 'show users' command and shows existing users.
|
class |
Store
Evaluates the 'store' command and stores binary content into the database.
|
class |
XQuery
Evaluates the 'xquery' command and processes an XQuery request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GUI.execute(boolean edit,
Command... cmd)
Launches the specified commands in a separate thread.
|
void |
GUI.execute(Command cmd)
Launches the specified command in a separate thread.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
DialogProgress.execute(Dialog d,
java.lang.String t,
Command... cmds)
Runs the specified commands, decorated by a progress dialog, and
calls
Dialog.action(java.lang.Object) if the dialog is closed. |
static void |
DialogProgress.execute(Dialog d,
java.lang.String t,
java.lang.Runnable post,
Command... cmds)
Runs the specified commands, decorated by a progress dialog, and
calls
Dialog.action(java.lang.Object) if the dialog is closed. |
| Modifier and Type | Method and Description |
|---|---|
void |
InfoView.setInfo(java.lang.String info,
Command cmd,
java.lang.String time,
boolean ok)
Displays the specified information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TextView.setText(ArrayOutput out,
Command c)
Sets the output text.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
Session.execute(Command command)
Executes a
Command and returns the result as string or serializes
it to the specified output stream. |
protected void |
ClientSession.execute(Command cmd,
java.io.OutputStream os) |
protected abstract void |
Session.execute(Command cmd,
java.io.OutputStream os)
Executes a command and prints the result to the specified output stream.
|
protected void |
LocalSession.execute(Command cmd,
java.io.OutputStream os) |