All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.xmldbms.datahandlers.GenericHandler

java.lang.Object
   |
   +----org.xmlmiddleware.xmldbms.datahandlers.DataHandlerBase
           |
           +----org.xmlmiddleware.xmldbms.datahandlers.GenericHandler

public class GenericHandler
extends DataHandlerBase

DataHandler implementation for databases not directly supported. This includes the JDBC-ODBC bridge.

The key values of inserted rows are retrieved by using all other (non key) values in the table in the WHERE clause of a SELECT statement. This is touchy and may not always work. Caution is called for when using this DataHandler with keys generated from the database.

Version:
2.0
Author:
Sean Walter

Constructor Index

 o GenericHandler()
Creates a GenericHandler.

Method Index

 o insert(Table, Row)
Inserts a row into the table.

Constructors

 o GenericHandler
 public GenericHandler()
Creates a GenericHandler.

Methods

 o insert
 public void insert(Table table,
                    Row row) throws SQLException
Inserts a row into the table. Refreshes any key columns needed. Does this by selecting all other values against the table.

Parameters:
table - Table to insert into.
row - Row to insert.
Throws: SQLException
A database error occurred while inserting data.
Overrides:
insert in class DataHandlerBase

All Packages  Class Hierarchy  This Package  Previous  Next  Index