Package org.basex.core.cmd
Class Execute
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.Execute
- Direct Known Subclasses:
Run
Evaluates the 'execute' command and runs a command script.
This command can be used to run multiple commands as a single transaction.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddLocks()Adds the strings (databases, special identifiers) for which locks need to be acquired.voidbuild(CmdBuilder cb) Builds a string representation from the command.final booleanCloses an open data reference and returnstrueif this command will change theContext.data()reference.protected booleanrun()Executes the command and serializes the result (internal call).final booleanChecks if the command performs updates/write operations.Methods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, result, run, run, setInput, setInput, stoppable, supportsProg, toString, toString, updated
-
Constructor Details
-
Execute
Constructor for string input.- Parameters:
input- user input
-
Execute
Constructor for command input.- Parameters:
commands- commands to execute
-
-
Method Details
-
newData
Description copied from class:CommandCloses an open data reference and returnstrueif this command will change theContext.data()reference. This method is only required by the GUI. -
addLocks
public final void addLocks()Description copied from class:JobAdds the strings (databases, special identifiers) for which locks need to be acquired. -
run
protected boolean run()Description copied from class:CommandExecutes the command and serializes the result (internal call). -
updating
Description copied from class:CommandChecks if the command performs updates/write operations. -
build
Description copied from class:CommandBuilds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
-