A C D E F G I J L M N O P Q R S T V W X

A

allString(int, String, String) - Method in class jcs.xml.resultset.ResultSetVector
Returns the universal quantification of a given comparison to a given column of the ResultSetVector.
allString(int, String, String) - Method in class jcs.xml.resultset.ResultSetXml
Returns the universal quantification of a given comparison to a given column of the ResultSetVector.
appendChild(Document, Node, String) - Static method in class jcs.xml.DomTree
Append a node with a given name as a child of a given parent node.
appendChild(Document, Node, String, String, boolean) - Static method in class jcs.xml.DomTree
Append a node with a given name and text as a child of a given parent node.
appendItem(String, String, String, String) - Method in class jcs.xml.order.OrderXml
Appends a new <Item> to the OrderXml.

C

checker(Document, String) - Static method in class jcs.xml.DomTree
Checks that the name of the root node of an XML document is a given name.
checkSquare(Vector) - Static method in class jcs.xml.resultset.ResultSetVector
Checks that the arg vector has the shape of an SQL result set.
columnArray(int) - Method in class jcs.xml.resultset.ResultSetVector
Returns the j-th column as a String array.
columnCount() - Method in class jcs.xml.resultset.ResultSetVector
Returns the number of columns.
columnVector(int) - Method in class jcs.xml.resultset.ResultSetVector
Returns the j-th column as a Vector.
connectTo(String) - Static method in class jcs.util.ExecSql
Connects to the given SQL server.
content() - Method in class jcs.xml.resultset.ResultSetVector
Returns the content field.
createOrderTable(String, String) - Static method in class jcs.xml.order.OrderXml
Creates an SQL table suitable for "Orders" data.

D

deEntityize(String) - Static method in class jcs.util.StringUtil
Translates a String containing the five special XML entities (&gt;, &lt;, &amp;, &apos; and &quot;).
deleteItem(int) - Method in class jcs.xml.order.OrderXml
Deletes a specified <Iitem> from the OrderXml.
Do2Vector - class jcs.xml.resultset.Do2Vector.
A client command line shell to demonstrate uses of the ResultSetVector class.
doc2String(Document) - Static method in class jcs.xml.DomTree
Return a String XML document from a Document.
doCommandArgs(String[], String[], String[]) - Static method in class jcs.util.StringUtil
Checks the command line arguments and merges them with default values for any omitted arguments.
DomTree - class jcs.xml.DomTree.
A uninstantiable class with miscellaneous utility methods to access a DOM tree from parsed XML.
DoOrder - class jcs.xml.order.DoOrder.
A client command line interpreter to demonstrate and test the OrderXml class (a subclass of the JXml class.
DoSql2Xml - class jcs.xml.resultset.DoSql2Xml.
A client command line interpreter to invoke the ResultSetXml class.
DoVectorOps - class jcs.xml.resultset.DoVectorOps.
A client command line interpreter to invoke element access and update methods of the ResultSetXml class.
DoXml2Sql - class jcs.xml.resultset.DoXml2Sql.
A client command line shell to invoke the ResultSetXml class.
DTD - Static variable in class jcs.xml.resultset.ResultSetXml
The static final text of the DTD for SQL ResultSet documents.
DTD_NAME - Static variable in class jcs.xml.resultset.ResultSetXml
The static final name of the ResultSet DTD.

E

emptyOrder(String, String, String) - Static method in class jcs.xml.order.OrderXml
Returns a string with an empty XML Order for a given customer and date.
entityize(String) - Static method in class jcs.util.StringUtil
Translates a String containing XML markup characters, (>, <, &, ', and ") to a String with the corresponding entities (&gt;, &lt;, &amp;, &apos;, and &quot;).
error(SAXParseException) - Method in class jcs.xml.ErrorHandler
Treats validation errors as fatal.
ErrorHandler - class jcs.xml.ErrorHandler.
A class to catch errors from the XML parser.
ErrorHandler() - Constructor for class jcs.xml.ErrorHandler
 
ExecSql - class jcs.util.ExecSql.
A class with miscellaneous static methods to execute SQL statements and scripts.

F

file2String(String) - Static method in class jcs.util.FileUtil
Copies a client operating system file to a Java String in a Client variable.
FileUtil - class jcs.util.FileUtil.
A class with miscellaneous methods for a client environment: main: a client-side command-line interpreter to invoke the other methods putString: copies a file to a Java String in the SQL server getString: copies a string from the SQL server to a file putStream: streams a file to a Java String or TEXT column in the SQL server getStream: streams a string or TEXT column from the SQL server to a file file2String: copies a client file to a String variable string2File: copies a String variable to a client file These are convenience methods that illustrate file I/O techniques.
findNode(Node, String) - Static method in class jcs.xml.DomTree
A convenience shorthand for findNode(N, NN, 0)
findNode(Node, String, int) - Static method in class jcs.xml.DomTree
Returns a subnode of a given XML node, given the sub-node name.

G

genString(int, String) - Static method in class jcs.util.StringUtil
Generates a string of given length (mainly for test generation).
genString(String, int) - Static method in class jcs.util.StringUtil
Generates a string of given length (mainly for test generation).
getAttribute(Node, String) - Static method in class jcs.xml.DomTree
Returns the value of an attribute for a given XML node and attributeName.
getColumn(int, int) - Method in class jcs.xml.resultset.ResultSetVector
Returns the value of row i column j as a String
getColumn(int, int) - Method in class jcs.xml.resultset.ResultSetXml
Returns the String value of row 'rowNumber' column 'columnNumber'.
getColumn(int, String) - Method in class jcs.xml.resultset.ResultSetXml
Return the String value of row 'rowNumber' column 'columnName'.
getItemAttribute(int, String, String) - Method in class jcs.xml.order.OrderXml
Returns a specified item attribute from the OrderXml, or an empty string if the attribute doesn't exist.
getItemElement(int, String) - Method in class jcs.xml.order.OrderXml
Returns a specified item element from the OrderXml, or an empty string if the item element doesn't exist.
getOrderElement(String) - Method in class jcs.xml.order.OrderXml
Returns a specified header element from the OrderXml, or an empty string if the element doesn't exist.
getStream(String, String, String) - Static method in class jcs.util.FileUtil
Streams a TEXT or String column in the SQL server to a client operating system file .
getString(String, String, String) - Static method in class jcs.util.FileUtil
Copies a Java String from the SQL server to a client operating system file.
getText(Node) - Static method in class jcs.xml.DomTree
Returns the text of a given XML node.
getTextNode(Node) - Static method in class jcs.xml.DomTree
Returns the child node containing text, for a given XML node.

I

isNothing(String) - Static method in class jcs.util.StringUtil
Tests whether the argument is null, empty, or all whitespace.
isQuotedType(String) - Static method in class jcs.xml.resultset.XR
Tests for a datatype that requires quotes around the value.

J

jcs.util - package jcs.util
The package jcs.util contains various convenience classes for executing SQL, transfering data to and from client files, and working with Java Strings in SQL.
jcs.xml - package jcs.xml
The jcs.xml package contains classes that simplify using the XML parser and accessing DOM trees.
jcs.xml.order - package jcs.xml.order
The package jcs.xml.demo contains classes for XML "Order" documents.
jcs.xml.resultset - package jcs.xml.resultset
The package jcs.resultsets contains classes that: Translate SQL result sets to XML documents.
JXml - class jcs.xml.JXml.
A class for XML documents.
JXml(String) - Constructor for class jcs.xml.JXml
Constructs a JXml instance from the argument text.

L

lookUpTypeCode(String) - Static method in class jcs.xml.resultset.XR
Returns the datatype keyword for a datatype code.

M

main(String[]) - Static method in class jcs.util.FileUtil
Invokes the putString, getString, putStream, and getStream methods from a client command line.
main(String[]) - Static method in class jcs.xml.order.DoOrder
Interprets the "action" (-A) parameter to perform various calls of the OrderXml class.
main(String[]) - Static method in class jcs.xml.resultset.DoVectorOps
Invokes the getColumn(...) and setColumn(...) methods of the ResultSetXml class from a client command line.
main(String[]) - Static method in class jcs.xml.resultset.Do2Vector
Invokes the constructors and methods of the resultSetVector class from a client command line.
main(String[]) - Static method in class jcs.xml.resultset.DoXml2Sql
Invokes the resultSet2Script method from a client command line.
main(String[]) - Static method in class jcs.xml.resultset.DoSql2Xml
Invokes the query2Xml method from a client command line.
multiply(int, String) - Static method in class jcs.util.StringUtil
Repeats a given string a given number of times (mainly for test generation).
multiply(String, int) - Static method in class jcs.util.StringUtil
Repeats a given string a given number of times (mainly for test generation).

N

newDocument(boolean) - Static method in class jcs.xml.DomTree
Return a new empty Document object.
nextGivenChild(NodeList, int, String) - Static method in class jcs.xml.DomTree
Returns the index (if any) of the next Node in Nodelist nl at or after the from index, whose node name is in the given string.
nextNonWhiteSpace(NodeList, int) - Static method in class jcs.xml.DomTree
Returns the index (if any) of the next Node in Nodelist nl, at or after the from index, that is not whitespace.

O

order2Sql(String, String) - Method in class jcs.xml.order.OrderXml
Stores the data from an XML Order into a specified SQL table.
OrderXml - class jcs.xml.order.OrderXml.
A subclass of the JXml class, for the "Order" DTD.
OrderXml(String) - Constructor for class jcs.xml.order.OrderXml
A constructor whose parameter is a String containing a valid XML "Order" document.
OrderXml(String, String, String) - Constructor for class jcs.xml.order.OrderXml
Constructs an Order for a given customer and date with Order data from specified SQL tables.

P

parse() - Method in class jcs.xml.JXml
Parses the XML document and returns the resulting Document object.
parse(boolean) - Method in class jcs.xml.JXml
Parses the XML document and returns the resulting Document object.
putStream(String, String, String) - Static method in class jcs.util.FileUtil
Streams a client operating system file to a TEXT or String column in the SQL server.
putString(String, String, String) - Static method in class jcs.util.FileUtil
Copies a client operating system file to a Java String in the SQL server.

Q

query(String, String) - Static method in class jcs.util.ExecSql
Connects to the given server, and executes the given SQL query.
querySingleInt(String, String) - Static method in class jcs.util.ExecSql
Connects to the given server, executes the given single-valued SQL query, and returns that single (int) value.
querySingleString(String, String) - Static method in class jcs.util.ExecSql
Connects to the given server, executes the given single-valued SQL query, and returns that single (String) value.

R

resolveEntity(String, String) - Method in class jcs.xml.ServerEntityResolver
Returns the value for a given external ID.
resolveExternal(String, String) - Method in class jcs.xml.JXml
A dummy resolveExternal method.
resolveExternal(String, String) - Method in class jcs.xml.order.OrderXml
Returns the DTD for "Order" XML documents.
resolveExternal(String, String) - Method in class jcs.xml.resultset.ResultSetXml
Returns the ResultSet DTD.
ResultSetVector - class jcs.xml.resultset.ResultSetVector.
A class to contain a Java Vector with the values of an SQL result set.
ResultSetVector(String, String) - Constructor for class jcs.xml.resultset.ResultSetVector
Constructs a ResultSetVector from the SQL result set returned by the argument query.
ResultSetVector(Vector) - Constructor for class jcs.xml.resultset.ResultSetVector
Constructs a ResultSetVector from a plain Vector.
ResultSetXml - class jcs.xml.resultset.ResultSetXml.
A class to contain an XML document that represents an SQL result set.
ResultSetXml(String) - Constructor for class jcs.xml.resultset.ResultSetXml
Constructs a ResultSetXml instance from an existing XML document.
ResultSetXml(String, String, String, String) - Constructor for class jcs.xml.resultset.ResultSetXml
Constructs a ResultSetXml instance from the SQL result set returned by the argument query.
rowArray(int) - Method in class jcs.xml.resultset.ResultSetVector
Returns the i-th row as a String array.
rowCount() - Method in class jcs.xml.resultset.ResultSetVector
Returns the number of rows.
rowVector(int) - Method in class jcs.xml.resultset.ResultSetVector
Returns the i-th row as a Vector.
RX - class jcs.xml.resultset.RX.
A class whose static method sql2Xml converts the SQL result set yielded by a given SQL query into an XML <ResultSet> document.

S

ServerEntityResolver - class jcs.xml.ServerEntityResolver.
A class to resolve external entity references for the XML parser.
ServerEntityResolver(JXml) - Constructor for class jcs.xml.ServerEntityResolver
 
setAttribute(Element, String, String) - Static method in class jcs.xml.DomTree
Sets the value of an attribute for a given XML node and attributeName.
setColumn(int, int, String) - Method in class jcs.xml.resultset.ResultSetXml
Update the value of row number i column number j and return the updated ResultSetXml document.
setColumn(int, String, String) - Method in class jcs.xml.resultset.ResultSetXml
Updates the value of row number i column columnName, and returns the updated ResultSetXml document.
setItemAttribute(int, String, String, String) - Method in class jcs.xml.order.OrderXml
Sets a specified attribute of an item element from the OrderXml.
setItemElement(int, String, String) - Method in class jcs.xml.order.OrderXml
Sets a specified item element from the OrderXml.
setOrderElement(String, String) - Method in class jcs.xml.order.OrderXml
Sets a specified header element from the Order, and returns the updated OrderXml.
setText(Document, Node, String) - Static method in class jcs.xml.DomTree
Sets the text of a given XML node.
someString(int, String, String) - Method in class jcs.xml.resultset.ResultSetVector
Returns the existential quantification of a given comparison to a given column of the ResultSetVector.
someString(int, String, String) - Method in class jcs.xml.resultset.ResultSetXml
Returns the existential quantification of a given comparison to a given column of the ResultSetXml.
sql2Order(String, String, String) - Static method in class jcs.xml.order.OrderXml
Returns an XML "Order" with the data for a given customer_id and order_date.
sql2Xml(String, String, String, String) - Static method in class jcs.xml.resultset.RX
Returns an XML representation of the SQL result set returned by the argument query.
sqlSubstring(String, int, int) - Static method in class jcs.util.StringUtil
Returns a substring of the given string.
stackTrace2String(Exception) - Static method in class jcs.util.StringUtil
Returns a String with the stack trace of the given Exception.
This is an alternative to using e.printStackTrace(), for cases where you want to save the exception info rather than print it.
statement(String, String) - Static method in class jcs.util.ExecSql
Connects to the given server, and executes the given SQL statement.
stream2String(InputStream) - Static method in class jcs.util.StringUtil
Returns the contents of the argument InputStream as a String.
string2File(String, String) - Static method in class jcs.util.FileUtil
Copies a Java String in a Client variable to a client operating system file.
string2Stream(String) - Static method in class jcs.util.StringUtil
Returns the stream on the argument string.
StringUtil - class jcs.util.StringUtil.
A class with miscellaneous methods: doCommandArgs: Validates an array of command-line arguments and tags, and merges the arguments into an array of defaults.

T

topNode(Document, String) - Static method in class jcs.xml.DomTree
Checks that the root node of an XML document has a given name, and returns that root node.
toResultSetVector() - Method in class jcs.xml.resultset.ResultSetXml
Constructs a ResultSetVector from a ResultSetXml document.
toSqlScript(Document, String, String, String) - Static method in class jcs.xml.resultset.XR
Returns an SQL script with a create statement and a list of insert statements that re-create the SQL data contained in the XML document.
toSqlScript(String, String, String) - Method in class jcs.xml.resultset.ResultSetXml
Generates an SQL script from the ResultSetXml document.
toString() - Method in class jcs.xml.JXml
Return the content of the JXml instance.
toString() - Method in class jcs.xml.resultset.ResultSetVector
Overrides the Object.toString method.
toStringColumn(int, String) - Method in class jcs.xml.resultset.ResultSetVector
Returns a string representation of a given column of the result set.
toStringRow(int, String) - Method in class jcs.xml.resultset.ResultSetVector
Returns a string representation of a given row of the result set.
toStringTable(String, String) - Method in class jcs.xml.resultset.ResultSetVector
A 'toString' method for the entire result set.

V

validateArg(String, String, String) - Static method in class jcs.util.StringUtil
Verifies that the arg is in the permissible values.

W

warning(SAXParseException) - Method in class jcs.xml.ErrorHandler
Dumps warnings too.

X

xmlText - Variable in class jcs.xml.JXml
The character text of the XML document contained in the JXml object.
XR - class jcs.xml.resultset.XR.
A class whose static method converts an XML document that contains an SQL result set into an SQL script that has a create statement and a series of insert statements that re-create the SQL result set in an SQL table.

A C D E F G I J L M N O P Q R S T V W X