public final class CreateDB extends ACreate
| Constructor and Description |
|---|
CreateDB(java.lang.String name)
Default constructor.
|
CreateDB(java.lang.String name,
java.lang.String input)
Constructor, specifying an initial database input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandBuilder cb)
Builds a string representation from the command.
|
static Data |
create(java.lang.String name,
Parser parser,
Context ctx)
Returns a database instance from the specified parser.
|
static MemData |
mainMem(IO source,
Context ctx)
Returns a main memory database instance for the specified input reference.
|
static MemData |
mainMem(Parser parser,
Context ctx)
Returns a main memory database instance from the specified parser.
|
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, newData, pinned, startUpdate, stoppable, stopUpdate, supportsProgclose, error, execute, execute, getOption, getOption, info, info, result, run, setInput, setInput, toString, updated, updatingpublic CreateDB(java.lang.String name)
name - name of databasepublic CreateDB(java.lang.String name,
java.lang.String input)
name - name of databaseinput - input reference (local/remote file or XML string)protected boolean run()
Commandpublic java.lang.String pinned(Context ctx)
Commandpublic static Data create(java.lang.String name, Parser parser, Context ctx) throws java.io.IOException
name - name of the databaseparser - input parserctx - database contextjava.io.IOException - I/O exceptionpublic static MemData mainMem(Parser parser, Context ctx) throws java.io.IOException
parser - input parserctx - database contextjava.io.IOException - I/O exceptionpublic static MemData mainMem(IO source, Context ctx) throws java.io.IOException
source - document sourcectx - database contextjava.io.IOException - I/O exceptionpublic void build(CommandBuilder cb)
Command