XQJ, the XQuery API for Java, is based on XQuery, a query language promulgated by the W3C that can operate both on physical XML documents, and also on virtual XML documents that have been derived from data sources such as relational or object databases. XQJ is a powerful new API standard developed for invoking XQuery expressions against virtually any XML or relational database and processing query results. XQJ makes the full power of the XQuery language available to Java applications. You can programmatically process the results in your Java code in a JDBC-like manner. XQJ is to XQuery what JDBC is to SQL.
The XQJ standard specifies a number of Java interfaces. The CentraSite XQJ interface implements the functionality defined by these interfaces, and thus makes XQJ available to the application; in addition, the CentraSite XQJ interface implements extensions that support CentraSite-specific features.
Note:
With effect from version 8.2, CentraSite supports the final release
of the XQJ specification (in contrast, earlier versions of CentraSite
supported a preliminary release of the XQJ specification). Note that the XQJ
interface that is implemented by current versions of CentraSite is not
compatible with the interface that was implemented by versions of CentraSite
prior to version 8.2. Documentation of the prior XQJ interface is available to
Software AG customers who have a current maintenance contract in Empower,
Software AG's global extranet (http://empower.softwareag.com/).
The CentraSite XQJ interface supports:
Prepared XQueries
The submission of queries to the CentraSite registry/repository
XQuery updates
Transaction control (commit, rollback)
User authentication prior to connecting to the database
Variable binding to parameterize queries
Handling registry/repository errors and warnings
The creation and execution of materialized sequences and items
Different models for accessing data in the CentraSite registry/repository (DOM, SAX, and StAX-compatible streams)