sqlBatch
Perform SQL Batch operations 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

sqlBatch

Accessor to perform SQL Batch operations on RDBMS

Module

urn:org:ten60:netkernel:mod:db

Definition

Format

<instr>
  <type>sqlBatch</type>
  <operand>
    <batch>
      <sql>SELECT id:=id FROM table WHERE name='Hetty';</sql>
      <sql>UPDATE table SET name='Ethan' WHERE id=@id;</sql>
    </batch>
  </operand>
  <configuration>/myconfiguration/configRDBMS.xml</configuration>
  <target>var:result</target>
</instr>

Syntax

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

The sqlBatch accessor performs batched SQL operations on an RDBMS using a JDBC connection. The operations are provided in the operand as a canonical <batch> document containing one ore more <sql> elements (see example above). The result is a document providing the operation index and number of rows updated by the update.

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:port/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