Package org.basex.core.cmd
Class AQuery
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.AQuery
Abstract class for database queries.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionExternal variable bindings. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocks()Adds the strings (databases, special identifiers) for which locks need to be acquired.voidbuild(CmdBuilder cb) Builds a string representation from the command.final Stringparameters(Context ctx) Returns the serialization parameters.final Valueresult()Returns a cached result set generated byAQuery.booleanReturns true if this command can be stopped.final booleanChecks if the command has updated any data.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, newData, run, run, run, setInput, setInput, supportsProg, toString, toString
-
Field Details
-
vars
External variable bindings.
-
-
Method Details
-
parameters
Returns the serialization parameters.- Parameters:
ctx- context- Returns:
- serialization parameters
-
updating
Description copied from class:CommandChecks if the command performs updates/write operations. -
updated
Description copied from class:CommandChecks if the command has updated any data. -
addLocks
public void addLocks()Description copied from class:JobAdds the strings (databases, special identifiers) for which locks need to be acquired. -
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. -
stoppable
public boolean stoppable()Description copied from class:CommandReturns true if this command can be stopped. This method is only required by the GUI. -
result
Description copied from class:CommandReturns a cached result set generated byAQuery. Can only be called once.
-