|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.core.Progress
org.basex.core.Process
org.basex.core.proc.CreateDB
public final class CreateDB
Evaluates the 'create db' command and creates a new database.
| Field Summary |
|---|
| Fields inherited from class org.basex.core.Process |
|---|
args |
| Constructor Summary | |
|---|---|
CreateDB(java.lang.String input)
Constructor. |
|
CreateDB(java.lang.String input,
java.lang.String name)
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Returns a string representation of the object. |
static Data |
xml(Context ctx,
IO io,
java.lang.String name)
Creates and returns a database for the specified XML document. |
static Data |
xml(Context ctx,
Parser p,
java.lang.String db)
Creates and returns a database instance from the specified parser. |
static Data |
xml(IO io,
Prop pr)
Creates and returns a main memory database from the specified input reference. |
static Data |
xml(Parser p)
Creates and returns a main memory database for the specified parser. |
static Data |
xml(javax.xml.transform.sax.SAXSource s,
Prop pr)
Creates and returns a main memory database from the specified SAX source. |
| Methods inherited from class org.basex.core.Process |
|---|
args, data, error, execute, execute, info, info, info, output, printing, result, updating |
| Methods inherited from class org.basex.core.Progress |
|---|
checkStop, det, detail, prog, progress, progress, stop, tit, title |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CreateDB(java.lang.String input,
java.lang.String name)
input - input XML file or XML stringname - name of database
(special characters are stripped before the name is applied)public CreateDB(java.lang.String input)
input - input file or XML string| Method Detail |
|---|
public static Data xml(Context ctx,
IO io,
java.lang.String name)
throws java.io.IOException
ctx - database contextio - file referencename - name of the database to be created
java.io.IOException - I/O exception
public static Data xml(Context ctx,
Parser p,
java.lang.String db)
throws java.io.IOException
ctx - database contextp - xml parserdb - name of the database to be created; if db is null,
a main memory instance is created
java.io.IOException - I/O exception
public static Data xml(Parser p)
throws java.io.IOException
p - xml parser
java.io.IOException - I/O exception
public static Data xml(IO io,
Prop pr)
throws java.io.IOException
io - file referencepr - database properties
java.io.IOException - I/O exception
public static Data xml(javax.xml.transform.sax.SAXSource s,
Prop pr)
throws java.io.IOException
s - sax sourcepr - database properties
java.io.IOException - I/O exceptionpublic java.lang.String toString()
Process
toString in class Process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||