|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.ACreate
public abstract class ACreate
Abstract class for database creation commands.
Field Summary |
---|
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
protected |
ACreate(Perm p,
boolean d,
java.lang.String... arg)
Protected constructor, specifying command flags and arguments. |
protected |
ACreate(java.lang.String... arg)
Protected constructor, specifying command arguments. |
Method Summary | |
---|---|
protected static void |
create(IndexType index,
Data data,
ACreate cmd)
Builds the specified index. |
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process. |
protected static boolean |
drop(IndexType index,
Data data)
Drops the specified index. |
boolean |
newData(Context ctx)
Closes an open data reference and returns true if this command will change
the Context.data reference. |
protected IO |
sourceToIO(java.lang.String name)
Converts the input (second argument of Command.args , or Command.in reference)
to an IO reference. |
boolean |
stoppable()
Returns true if this command can be stopped. |
boolean |
supportsProg()
Returns true if this command returns a progress value. |
Methods inherited from class org.basex.core.Command |
---|
build, close, databases, error, execute, execute, getOption, getOption, info, info, result, run, run, run, setInput, setInput, toString, updated, updating |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ACreate(java.lang.String... arg)
arg
- argumentsprotected ACreate(Perm p, boolean d, java.lang.String... arg)
p
- required permissiond
- requires opened databasearg
- argumentsMethod Detail |
---|
protected IO sourceToIO(java.lang.String name) throws java.io.IOException
Command.args
, or Command.in
reference)
to an IO
reference.
name
- name of source
java.io.IOException
- I/O exceptionprotected static void create(IndexType index, Data data, ACreate cmd) throws java.io.IOException
index
- index to be builtdata
- data referencecmd
- calling command
java.io.IOException
- I/O exceptionprotected static boolean drop(IndexType index, Data data)
index
- index typedata
- data reference
public 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.
newData
in class Command
ctx
- database context
public void databases(LockResult lr)
Proc
databases
in class Proc
lr
- Container for lock result to pass aroundpublic final boolean supportsProg()
Command
supportsProg
in class Command
public boolean stoppable()
Command
stoppable
in class Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |