|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jcs.xml.resultset.DoXml2Sql
A client command line shell to invoke
the ResultSetXml class.
This command line interpreter invokes the
toSqlScript method that translates a
ResultSetXml document to an SQL script
with a create statement and a list of
insert statements to re-create
the result set. That method can be invoked in either
a client or server environment. This class
DoXml2Sql invokes the method in a client
environment, using client files for the input and results.
| Method Summary | |
static void |
main(java.lang.String[] args)
Invokes the resultSet2Script method from a client
command line. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static void main(java.lang.String[] args)
resultSet2Script method from a client
command line.
Usage:
java jcsexec.DoXml2Sql -I inFile -O outFile
[-T resultTableName] [-X columnPrefix] [-G go]
For example, assume that emps.xml is a file containing
an XML result set, as produced by RX.query2Xml or
by ResultSetXml.
Example command line:
java jcs.resultset.DoXmlSql -I emps.xml -O emps.script \
-T emps_copy -X "column_" -G go
This call will translate the XML result set contained in
emps.xml into an SQL script containing a create table
statement for table name emps_copy and a series of
insert statements into that table name, which re-create the
result set data.
The parameters tags are as follows. For a detailed description
of the tableName, columnPrefix,
and go parameters,
see the jcs.resultset.ResultSetXml constructor,
which this command-line routine invokes.
resultTableName parameter
columnPrefix parameter
go parameter
args - a string array with the command line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||