|
||||||||||
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.Proc
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.Proc |
---|
DATAREF, flags, STANDARD |
Constructor Summary | |
---|---|
CreateDB(String input)
Constructor. |
|
CreateDB(String input,
String name)
Default constructor. |
Method Summary | |
---|---|
static Data |
empty(Context ctx,
String name)
Creates an empty database. |
String |
toString()
Returns a string representation of the process. |
static Data |
xml(Context ctx,
IO io,
String name)
Creates a database for the specified file. |
static Data |
xml(Context ctx,
Parser p,
String db)
Creates a database instance from the specified parser. |
static Data |
xml(IO io,
Prop pr)
Creates a main memory database from the specified input reference. |
static Data |
xml(Parser p)
Creates a main memory database for the specified parser. |
static Data |
xml(SAXSource s,
Prop pr)
Creates a main memory database from the specified SAX source. |
Methods inherited from class org.basex.core.Proc |
---|
exec, exec, execute, execute, info, result, updating |
Methods inherited from class org.basex.core.Progress |
---|
abort, 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(String input, String name)
input
- input XML file or XML stringname
- name of databasepublic CreateDB(String input)
input
- input file or XML stringMethod Detail |
---|
public static Data empty(Context ctx, String name) throws IOException
ctx
- database contextname
- name of the database
IOException
- I/O exceptionpublic static Data xml(Context ctx, IO io, String name) throws IOException
ctx
- database contextio
- file referencename
- name of the database
IOException
- I/O exceptionpublic static Data xml(Context ctx, Parser p, String db) throws IOException
ctx
- database contextp
- xml parserdb
- name of the database
IOException
- I/O exceptionpublic static Data xml(Parser p) throws IOException
p
- xml parser
IOException
- I/O exceptionpublic static Data xml(IO io, Prop pr) throws IOException
io
- file referencepr
- database properties
IOException
- I/O exceptionpublic static Data xml(SAXSource s, Prop pr) throws IOException
s
- sax sourcepr
- database properties
IOException
- I/O exceptionpublic String toString()
Proc
toString
in class Proc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |