Uses of Class
org.basex.core.Command

Packages that use Command
Package
Description
Client sessions.
Database core classes.
Database commands.
 
Database structures.
GUI Package.
GUI Dialog Windows.
GUI Info View.
GUI Text View.
  • Uses of Command in org.basex.api.client

    Methods in org.basex.api.client with parameters of type Command
    Modifier and Type
    Method
    Description
    protected void
    ClientSession.execute(Command command, OutputStream output)
     
    protected void
    LocalSession.execute(Command command, OutputStream output)
     
    final String
    Session.execute(Command command)
    Executes a Command and returns the result as string or serializes it to the specified output stream.
    protected abstract void
    Session.execute(Command command, OutputStream output)
    Executes a command and prints the result to the specified output stream.
  • Uses of Command in org.basex.core

    Methods in org.basex.core that return Command
    Modifier and Type
    Method
    Description
    Command.baseURI(String base)
    Sets a base URI.
    Methods in org.basex.core with parameters of type Command
    Modifier and Type
    Method
    Description
    protected final void
    CLI.execute(Command cmd, boolean info)
    Executes the specified command and optionally prints some information.
    protected static String
    Sandbox.execute(Command cmd)
    Executes a command and returns exceptions into assertion errors.
    Constructors in org.basex.core with parameters of type Command
    Modifier
    Constructor
    Description
     
    Client constructor.
  • Uses of Command in org.basex.core.cmd

    Subclasses of Command in org.basex.core.cmd
    Modifier and Type
    Class
    Description
    class 
    Abstract class for database updates.
    final class 
    Evaluates the 'add' command and adds a document to a collection.
    final class 
    Evaluates the 'restore' command and restores a backup of a database.
    final class 
    Evaluates the 'alter database' command and renames a database.
    final class 
    Evaluates the 'alter password' command and alters the password of a user.
    final class 
    Evaluates the 'alter user' command and alters the name of a user.
    class 
    Abstract class for database queries.
    final class 
    Evaluates the 'check' command: opens an existing database or creates a new one.
    final class 
    Evaluates the 'close' command and closes the current database.
    final class 
    Evaluates the 'copy' command and creates a copy of a database.
    final class 
    Evaluates the 'backup' command and creates a backup of a database.
    final class 
    Evaluates the 'create db' command and creates a new database.
    final class 
    Evaluates the 'create db' command and creates a new index.
    final class 
    Evaluates the 'create user' command and creates a new user.
    final class 
    Evaluates the 'delete' command and deletes resources from a database.
    final class 
    Evaluates the 'drop backup' command and deletes backups of a database.
    final class 
    Evaluates the 'drop database' command and deletes a database.
    final class 
    Evaluates the 'drop index' command and deletes indexes in the currently opened database.
    final class 
    Evaluates the 'drop user' command and drops a user.
    class 
    Evaluates the 'execute' command and runs a command script.
    final class 
    Evaluates the 'exit' command and quits the console.
    final class 
    Evaluates the 'export' command and saves the currently opened database to disk.
    final class 
    Evaluates the 'find' command and processes a simplified request as XQuery.
    final class 
    Evaluates the 'flush' command and flushes the database buffers.
    final class 
    Evaluates the 'get' command and return the value of a database option.
    final class 
    Evaluates the 'grant' command and grants permissions to users.
    final class 
    Evaluates the 'help' command and returns help on the database commands.
    final class 
    Evaluates the 'info' command and returns general database information.
    final class 
    Evaluates the 'info database' command and returns information on the currently opened database.
    final class 
    Evaluates the 'info index' command and returns information on the indexes of the currently opened database.
    final class 
    Evaluates the 'info storage' command and returns the table representation of the currently opened database.
    final class 
    Evaluates the 'inspect' command: checks if the currently opened database has inconsistent data structures.
    final class 
    Evaluates the 'jobs list' command.
    final class 
    Evaluates the 'jobs stop' command.
    final class 
    Evaluates the 'jobs stop' command.
    final class 
    Evaluates the 'kill' command and stops user sessions.
    final class 
    Evaluates the 'list' command and shows all available databases.
    final class 
    Evaluates the 'open' command and opens a database.
    final class 
    Evaluates the 'optimize' command and optimizes the data structures of the currently opened database.
    final class 
    Evaluates the 'optimize all' command and rebuilds all data structures of the currently opened database.
    final class 
    Evaluates the 'password' command and alters the user's password.
    final class 
    Evaluates the 'rename' command and renames resources or directories in a collection.
    final class 
    Evaluates the 'replace' command and replaces documents in a collection.
    final class 
    Evaluates the 'repo delete' command.
    final class 
    Evaluates the 'repo install' command.
    final class 
    Evaluates the 'repo list' command.
    final class 
    Evaluates the 'restore' command and restores a backup of a database.
    final class 
    Evaluates the 'retrieve' command and retrieves binary content.
    final class 
    Evaluates the 'run' command and processes an input file.
    final class 
    Evaluates the 'set' command and modifies database options.
    final class 
    Evaluates the 'show backups' command and shows available backups.
    final class 
    Evaluates the 'show sessions' command and shows server sessions.
    final class 
    Evaluates the 'show users' command and shows existing users.
    final class 
    Evaluates the 'store' command and stores binary content into the database.
    final class 
    Evaluates the 'test' command and processes an input file.
    final class 
    Evaluates the 'xquery' command and processes an XQuery request.
    Constructors in org.basex.core.cmd with parameters of type Command
    Modifier
    Constructor
    Description
     
    Execute(Command... commands)
    Constructor for command input.
  • Uses of Command in org.basex.core.parse

    Methods in org.basex.core.parse that return Command
    Modifier and Type
    Method
    Description
    final Command[]
    CommandParser.parse()
    Parses the input and returns a command list.
    final Command
    CommandParser.parseSingle()
    Restricts parsing to a single command.
    Method parameters in org.basex.core.parse with type arguments of type Command
    Modifier and Type
    Method
    Description
    protected abstract void
    CommandParser.parse(ArrayList<Command> cmds)
    Parses the input and fills the command list.
    Constructors in org.basex.core.parse with parameters of type Command
    Modifier
    Constructor
    Description
     
    CmdBuilder(Command cmd, boolean conf)
    Constructor.
  • Uses of Command in org.basex.data

    Methods in org.basex.data with parameters of type Command
    Modifier and Type
    Method
    Description
    abstract void
    Data.createIndex(IndexType type, Command cmd)
    Drops the specified index.
    void
    DiskData.createIndex(IndexType type, Command cmd)
     
    void
    MemData.createIndex(IndexType type, Command cmd)
     
  • Uses of Command in org.basex.gui

    Methods in org.basex.gui with parameters of type Command
    Modifier and Type
    Method
    Description
    void
    GUI.execute(boolean edit, Command... cmds)
    Launches the specified commands in a separate thread.
    void
    GUI.execute(Command... cmd)
    Launches the specified commands in a separate thread.
  • Uses of Command in org.basex.gui.dialog

    Methods in org.basex.gui.dialog with parameters of type Command
    Modifier and Type
    Method
    Description
    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
    Modifier and Type
    Method
    Description
    void
    InfoView.setInfo(String info, Command cmd, boolean ok, boolean reset)
    Displays the specified info string.
    InfoView.setInfo(String info, Command cmd, 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
    Modifier and Type
    Method
    Description
    void
    TextView.cache(ArrayOutput out, Command command, Value result)
    Caches the output, or indicates that the query must be executed again in order to retrieve the full result.