sqlUpdate
Make SQL Updates on a RDBMS
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

sqlUpdate

Accessor to perform SQL Updates on RDBMS

Module

urn:org:ten60:netkernel:mod:db

Definition

Format

<instr>
  <type>sqlUpdate</type>
  <operand>
    <sql>INSERT INTO table VALUES (1,'Hetty');</sql>
  </operand>
  <configuration>/myconfiguration/configRDBMS.xml</configuration>
  <target>var:result</target>
</instr>

Syntax

ElementRulesDescription
typeMandatory sqlUpdate
operandMandatory the <sql> query document
configurationOptional optional configuration document
targetMandatory Fragment OKa result document

The sqlUpdate accessor performs an SQL update on an RDBMS using a JDBC connection. The query is provided in the operand as a canonical <sql> document (see example above). The result is a document providing the number of rows updated by the update.

sqlUpdate is used for INSERT and UPDATE SQL operations.

Configuration

By default the configuration will be read from ffpcl:/etc/ConfigRDBMS.xml. The document provides a driver and connection URI (see example below). Alternatively,the configuration can be provided in an optional <configuration> argument - this may be either a URI to a config document or a literal configuration document.

<config>
  <rdbms>
    <jdbcDriver>com.mysql.jdbc.Driver</jdbcDriver>
    <jdbcConnection> jdbc:mysql://localhost/mydatabase?user=myusername&amp;password=mypassword </jdbcConnection>
  </rdbms>
</config>

1060® NetKernelTM Documentation
(C) 2003-2004 1060 Research Limited

Send Feedback

© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited