Package org.basex.core.cmd
Class ACreate
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.ACreate
- Direct Known Subclasses:
Add,AlterDB,CreateDB,CreateIndex,Delete,DropDB,DropIndex,Optimize,OptimizeAll,Rename,Replace,Retrieve,Store
Abstract class for database updates.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocks()Adds the strings (databases, special identifiers) for which locks need to be acquired.booleanCloses an open data reference and returnstrueif this command will change theContext.data()reference.booleanReturns true if this command can be stopped.final booleanReturns true if this command returns a progress value.Methods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, build, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, result, run, run, run, setInput, setInput, toString, toString, updated, updating
-
Field Details
-
lock
protected boolean lockIndicates if database should be locked.
-
-
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 void addLocks()Description copied from class:JobAdds the strings (databases, special identifiers) for which locks need to be acquired. -
supportsProg
public final boolean supportsProg()Description copied from class:CommandReturns true if this command returns a progress value. This method is only required by the GUI.- Overrides:
supportsProgin classCommand- Returns:
- result of check
-
stoppable
public boolean stoppable()Description copied from class:CommandReturns true if this command can be stopped. This method is only required by the GUI.
-