|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.dtx.DTXEngine
public class DTXEngine
An OQL query engine for hitting JDO data sources and generating SAX events. It skips the intermediate Java class step used by e.g. Castor JDO. The engine uses the SQL and XML descriptions in an XML Schema file and a Castor JDO mapping file to determine how to map results of the query into SAX events.
Constructor Summary | |
---|---|
DTXEngine()
Default constructor. |
|
DTXEngine(java.lang.String databaseURL,
java.lang.String schemaURL)
Construct a DTXEngine for the given JDO mapping file and XML schema. |
Method Summary | |
---|---|
DTXQuery |
prepareQuery(java.lang.String oql)
Prepare a new DTXQuery object, given an OQL string. |
void |
setDatabase(java.lang.String databaseURL)
Sets the database options from a JDO database mapping file. |
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets the default SAX document handler for this DTX engine. |
void |
setSchema(java.lang.String schemaURL)
Sets the XML Schema to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DTXEngine()
public DTXEngine(java.lang.String databaseURL, java.lang.String schemaURL) throws DTXException
databaseURL
- URL string for JDO mapping file.schemaURL
- URL string for XML Schema file.
DTXException
Method Detail |
---|
public void setSchema(java.lang.String schemaURL) throws DTXException
schemaURL
- URL string for XML Schema file.
DTXException
public void setDatabase(java.lang.String databaseURL) throws DTXException
databaseURL
- URL string for JDO database mapping file.
DTXException
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
handler
- A DocumentHandler to receive query results as
SAX events.public DTXQuery prepareQuery(java.lang.String oql) throws DTXException
oql
- OQL string for the query.
DTXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |