public final class AlterDB extends ACreate
| Constructor and Description |
|---|
AlterDB(java.lang.String db,
java.lang.String name)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
alter(java.lang.String source,
java.lang.String target,
Context ctx)
Renames the specified database.
|
void |
build(CommandBuilder cb)
Builds a string representation from the command.
|
boolean |
newData(Context ctx)
Closes an open data reference and returns
true if this command will change
the Context.data reference. |
java.lang.String |
pinned(Context ctx)
Checks if the database to be updated is opened (pinned) by a process in another JVM.
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
build, cache, create, drop, pinned, startUpdate, stoppable, stopUpdate, supportsProgclose, error, execute, execute, getOption, getOption, info, info, result, run, setInput, setInput, toString, updated, updatingpublic AlterDB(java.lang.String db,
java.lang.String name)
db - databasename - new nameprotected boolean run()
Commandpublic java.lang.String pinned(Context ctx)
Commandpublic static boolean alter(java.lang.String source,
java.lang.String target,
Context ctx)
source - name of the existing databasetarget - new database namectx - database contextpublic boolean newData(Context ctx)
Commandtrue if this command will change
the Context.data reference. This method is required by the progress dialog
in the frontend.public void build(CommandBuilder cb)
Command