|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcs.xml.resultset.DoVectorOps
A client command line interpreter to invoke
element access and update methods
of the ResultSetXml
class.
This command line interpreter invokes the
getColumn(...)
and setColumn(...)
methods, which reference and modify the columns of the result set.
Those methods can be invoked in either client or server environments.
This class DoSetGet
invokes the
getColumn(...)
and setColumn(...)
methods in a client environment, using client files for the
input and results.
Method Summary | |
static void |
main(java.lang.String[] args)
Invokes the getColumn(...) and setColumn(...)
methods of the ResultSetXml class 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)
getColumn(...)
and setColumn(...)
methods of the ResultSetXml
class from a client command line.
Usage:
java jcsexec.DoVectorOps -I input-file-name -O output-file-name -R row-number {-C column-number | -N column-name} -U update-value
For example assume that emps.xml
is a file containint
an XML result set, as produced by RX.query2Xml
or
by ResultSetXml
.
Example command line:
java jcsexec.DoVectorOps -I emps.xml -O emps-updated.xml -R 3 -N salary -U "123.45"
This call will print the current value of the salary
column of row number 3 of the result set in emps.xml
,
and store the updated XML document in the file emps-updated.xml
.
The parameters tags are as follows. If the column name (-N) parameter is supplied, it is used instead of the column number (-C) 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 |