public final class AlterDB extends ACreate
Constructor and Description |
---|
AlterDB(String db,
String name)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
alter(String source,
String target,
StaticOptions sopts)
Renames the specified database.
|
void |
build(CmdBuilder cb)
Builds a string representation from the command.
|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process.
|
boolean |
newData(Context ctx)
Closes an open data reference and returns
true if this command will change the
Context.data() reference. |
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
stoppable, supportsProg
close, databases, error, execute, execute, finish, finishUpdate, getOption, getOption, info, info, init, run, run, setInput, setInput, startUpdate, toString, toString, updated, updating
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
protected boolean run()
Command
public void databases(LockResult lr)
Proc
public static boolean alter(String source, String target, StaticOptions sopts)
source
- name of the existing databasetarget
- new database namesopts
- static optionspublic boolean newData(Context ctx)
Command
true
if this command will change the
Context.data()
reference. This method is required by the progress dialog in the
frontend.public void build(CmdBuilder cb)
Command
Copyright © 2005–2015 BaseX Team. All rights reserved.