org.exolab.castor.dtx
public class DTXEngine extends Object
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:05 $
| Field Summary | |
|---|---|
| protected HashMap | _classMappings |
| protected Connection | _conn |
| protected Database | _database |
| protected String | _databaseURL |
| protected PersistenceFactory | _factory |
| protected DocumentHandler | _handler |
| protected PrintWriter | _logWriter |
| protected Schema | _schema |
| protected String | _schemaURL |
| Constructor Summary | |
|---|---|
| DTXEngine()
Default constructor. | |
| DTXEngine(String databaseURL, String schemaURL)
Construct a DTXEngine for the given JDO mapping file and
XML schema.
| |
| Method Summary | |
|---|---|
| ClassMapping | getClassMapping(String className) |
| Connection | getConnection() |
| Database | getDatabase() |
| PersistenceFactory | getFactory() |
| Schema | getSchema() |
| DTXQuery | prepareQuery(String oql)
Prepare a new DTXQuery object, given an OQL string. |
| void | setDatabase(String databaseURL)
Sets the database options from a JDO database mapping file.
|
| void | setDocumentHandler(DocumentHandler handler)
Sets the default SAX document handler for this DTX
engine. |
| void | setLogWriter(PrintWriter logWriter)
Sets the log writer for this DTX engine. |
| void | setSchema(String schemaURL)
Sets the XML Schema to use. |
Parameters: databaseURL URL string for JDO mapping file. schemaURL URL string for XML Schema file.
Parameters: oql OQL string for the query.
Parameters: databaseURL URL string for JDO database mapping file.
Parameters: handler A DocumentHandler to receive query results as SAX events.
Parameters: logWriter A PrintWriter to use for logging.
Parameters: schemaURL URL string for XML Schema file.