Uses of Class
org.basex.core.Command

Packages that use Command
org.basex.core Database core classes. 
org.basex.core.cmd Database commands. 
org.basex.core.parse   
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. 
 

Uses of Command in org.basex.core
 

Methods in org.basex.core with parameters of type Command
protected  void Main.execute(Command cmd, boolean info)
          Executes the specified command and optionally prints some information.
 

Uses of Command in org.basex.core.cmd
 

Subclasses of Command in org.basex.core.cmd
 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 AQuery
          Abstract class for database queries.
 class Check
          Evaluates the 'check' 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 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 Execute
          Evaluates the 'execute' command and runs a command script.
 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 Inspect
          Evaluates the 'inspect' command: checks if the currently opened database has inconsistent data structures.
 class Kill
          Evaluates the 'kill' command and stops user sessions.
 class List
          Evaluates the 'list' command and shows all available databases.
 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 an input file.
 class Set
          Evaluates the 'set' command and modifies database properties.
 class ShowBackups
          Evaluates the 'show backups' command and shows available backups.
 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.
 

Fields in org.basex.core.cmd with type parameters of type Command
protected  java.util.ArrayList<Command> Execute.list
          Commands to execute.
 

Uses of Command in org.basex.core.parse
 

Methods in org.basex.core.parse that return Command
 Command[] CommandParser.parse()
          Parses the input and returns a command list.
 Command CommandParser.parseSingle()
          Parses the input as single command and returns the resulting command.
 Command[] CommandParser.suggest()
          Parses the input and creates command completions on the way.
 

Constructors in org.basex.core.parse with parameters of type Command
CmdBuilder(Command c)
          Constructor.
 

Uses of Command in org.basex.gui
 

Methods in org.basex.gui with parameters of type Command
 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.
 

Uses of Command in org.basex.gui.dialog
 

Methods in org.basex.gui.dialog with parameters of type Command
static void DialogProgress.execute(BaseXDialog dialog, Command... cmds)
          Runs the specified commands, decorated by a progress dialog, and calls BaseXDialog.action(java.lang.Object) if the dialog is closed.
static void DialogProgress.execute(BaseXDialog dialog, java.lang.Runnable post, Command... cmds)
          Runs the specified commands, decorated by a progress dialog, and calls BaseXDialog.action(java.lang.Object) if the dialog is closed.
static void DialogProgress.execute(GUI gui, BaseXDialog dialog, java.lang.Runnable post, Command... cmds)
          Runs the specified commands, decorated by a progress dialog, and calls BaseXDialog.action(java.lang.Object) if the dialog is closed.
static void DialogProgress.execute(GUI gui, Command... cmds)
          Runs the specified commands, decorated by a progress dialog, and calls BaseXDialog.action(java.lang.Object) if the dialog is closed.
 

Uses of Command in org.basex.gui.view.info
 

Methods in org.basex.gui.view.info with parameters of type Command
 void InfoView.setInfo(java.lang.String info, Command cmd, boolean ok, boolean reset)
          Displays the specified info string.
 void InfoView.setInfo(java.lang.String info, Command cmd, java.lang.String time, boolean ok, boolean reset)
          Displays the specified info string.
 

Uses of Command in org.basex.gui.view.text
 

Methods in org.basex.gui.view.text with parameters of type Command
 void TextView.cacheText(ArrayOutput out, Command c, Result r)
          Caches the output.
 

Uses of Command in org.basex.server
 

Methods in org.basex.server with parameters of type Command
 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 LocalSession.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 ClientSession.execute(Command cmd, java.io.OutputStream os)