|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.ddtek.jxtr.JXTRBase
|
+--com.ddtek.jxtr.JXTRUpdateBase
|
+--com.ddtek.jxtr.JXTRSingleTableUpdate
JXTRSingleTableUpdate implements the methods required to execute any row count generating statement (Insert, Update, Delete, and so on) supported by the database and return the count of rows in the database that were updated (update count).
| Field Summary |
| Fields inherited from class com.ddtek.jxtr.JXTRBase |
BINARY_AS_BASE64, BINARY_AS_HEX, TIMESTAMP_AS_ISO8601, TIMESTAMP_AS_ODBC |
| Constructor Summary | |
JXTRSingleTableUpdate(java.sql.Connection con,
java.lang.String sql)
Creates a new JXTRSingleTableUpdate statement. |
|
| Method Summary | |
void |
close()
Closes database prepared statement(s). |
int[] |
executeUpdate()
Executes the jXTransformer write statement. |
void |
setXMLDocument(org.w3c.dom.Document doc)
Sets the XML input document to the specified DOM document object. |
void |
setXMLDocument(org.xml.sax.InputSource input)
Sets the XML input document to the specified SAX input source. |
void |
setXMLDocument(org.w3c.dom.Node node)
Sets the XML input document to the specified DOM element node. |
void |
setXMLDocument(java.io.Reader reader,
boolean ignoreWhitespace)
Sets the XML input document to the specified Reader object. |
void |
setXMLDocument(java.lang.String url,
boolean ignoreWhitespace)
Sets the XML input document to the specified URL. |
void |
setXMLNamespaces(java.util.Map namespaceMap)
Sets the namespaces that are used in the XPath expressions. |
void |
setXMLRowPattern(java.lang.String exprString)
Sets the XML row pattern. |
void |
setXMLXPath(int paramIx,
java.lang.String exprString)
Sets the parameter with the specified index to the value returned from the XPath expression. |
void |
setXMLXPath(int paramIx,
java.lang.String exprString,
int targetSqlType)
Sets the parameter with the specified index to the value returned from the XPath expression. |
void |
setXMLXPath(int paramIx,
java.lang.String exprString,
int targetSqlType,
int scale)
Sets the parameter with the specified index to the value returned from the XPath expression. |
void |
setXMLXPath(int paramIx,
java.lang.String exprString,
int targetSqlType,
int scale,
int mixedContentIx)
Sets the parameter with the specified index to the value returned from the XPath expression. |
| Methods inherited from class com.ddtek.jxtr.JXTRBase |
clearWarnings, getPreparedStatementCloseBehaviour, getWarnings, setPreparedStatementCloseBehaviour, unlock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JXTRSingleTableUpdate(java.sql.Connection con,
java.lang.String sql)
throws JXTRException
con - The JDBC connection.sql - The row count generating statement supported by the
database.
java.lang.IllegalArgumentException - if con
or sql are null.
JXTRException - Refer to the JXTRException
class for more information about possible error conditions.| Method Detail |
public void close()
throws JXTRException
JXTRBase
close in class JXTRBaseJXTRException - if an error occured during closing of
resources or database statement(s).public void setXMLDocument(org.w3c.dom.Document doc)
doc - The DOM document node that contains the XML input.
java.lang.IllegalArgumentException - if node
is null.public void setXMLDocument(org.w3c.dom.Node node)
node - The DOM node that contains the XML input.
java.lang.IllegalArgumentException - if node
is null.public void setXMLDocument(org.xml.sax.InputSource input)
input - The SAX input source that contains the XML input.
java.lang.IllegalArgumentException - if input
is null.
public void setXMLDocument(java.lang.String url,
boolean ignoreWhitespace)
url - The URL that refers to the XML input.ignoreWhitespace - If true, whitespace nodes
will be stripped.
java.lang.IllegalArgumentException - if url
is null.
public void setXMLDocument(java.io.Reader reader,
boolean ignoreWhitespace)
reader - Reader object that contains the XML input.ignoreWhitespace - If true, whitespace nodes
will be stripped.
java.lang.IllegalArgumentException - if
reader is null.public void setXMLRowPattern(java.lang.String exprString)
exprString - The XPath expression that will be used to
extract the node set from the XML input document.
java.lang.IllegalArgumentException - if
exprString is null.
public void setXMLXPath(int paramIx,
java.lang.String exprString)
paramIx - Query parameter index (1 based).exprString - The XPath expression that will be used to
extract the node set from the XML input document.
java.lang.IllegalArgumentException - if
exprString is null.
public void setXMLXPath(int paramIx,
java.lang.String exprString,
int targetSqlType)
paramIx - Query parameter index (1 based).exprString - The XPath expression that will be used to
extract the node set from the XML input document.targetSqlType - The SQL type (as defined in java.sql.Types)
to be sent to the database.
java.lang.IllegalArgumentException - if
exprString is null.
public void setXMLXPath(int paramIx,
java.lang.String exprString,
int targetSqlType,
int scale)
paramIx - Query parameter index (1 based).exprString - The XPath expression that will be used to
extract the node set from the XML input document.targetSqlType - The SQL type (as defined in java.sql.Types)
to be sent to the database.scale - The scale for java.sql.Types.DECIMAL or
java.sql.Types.NUMERIC types. This is the number of digits
after the decimal point. For all other data types, this value
will be ignored.
java.lang.IllegalArgumentException - if
exprString is null.
public void setXMLXPath(int paramIx,
java.lang.String exprString,
int targetSqlType,
int scale,
int mixedContentIx)
paramIx - Query parameter index (1 based).exprString - The XPath expression that will be used to
extract the node set from the XML input document.targetSqlType - The SQL type (as defined in java.sql.Types)
to be sent to the database.scale - The scale for java.sql.Types.DECIMAL or
java.sql.Types.NUMERIC types. This is the number of digits
after the decimal point. For all other data types, this value
will be ignored.mixedContentIx - When the XPath expression returns a
node set of content nodes for a mixed content element,
this 1 based index indicates the content node to use as the
value. If 0 is specified, all content nodes are used and
concatenated.
java.lang.IllegalArgumentException - if
exprString is null or
mixedContentIx < 0.public void setXMLNamespaces(java.util.Map namespaceMap)
namespaceMap - HashMap that maps the namespace prefixes
used in the XPath expressions as key and
value pairs for each namespace URI.
Use null as a key to specify the default
namespace URI.
public int[] executeUpdate()
throws JXTRException,
JXTRSingleTableUpdateException
int elements in the array equal the
int elements returned by
java.sql.Statement#executeBatch().
JXTRException - Refer to the JXTRException
class for more information about possible error conditions.
JXTRSingleTableUpdateException - Refer to the
JXTRSingleTableUpdateException class for more
information about possible error conditions and retrieving
update counts.java.sql.Statement#executeBatch().
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||