Sorry, I didn’t know certain extensions are not permitted in this mailing list. 

 

I have attached two files:

 

1. dbControl contains classes that make up the Database Control.

 

2. dbControlTest contains the test cases for the control.  They demonstrate how the Database control is used.  (See org/apache/beehive/controls/test/controls/database/test/TestDBControl.jcx)

 

Hoi

 


From: Hoi Lam
Sent: Monday, October 04, 2004 2:34 PM
To: [email protected]
Subject: Database Control

 

Hello,

 

I have started to develop a Database control for Beehive, and it is at a state where it has a few basic features to offer now:

 

1. It has simple SQL support with parameter substitution by positions. 

 

2. It supports the following return types: object, Iterator and arrays of a user specified type, ResultSet, and HashMap.

 

3. It allows user to specify a maximum number of rows returned from the database.

 

The Database control is currently hard coded to use the Apache Derby Embedded Database Driver. (http://incubator.apache.org/derby/index.html). It actually expects a database URL from the jndiName member of the ConnectionDataSource attribute at the moment. This will be corrected very soon.

 

Attached are the classes that make up the Database Control.  I will send out a separate email with the test cases for this control.

 

Feedbacks and comments will be much appreciated.

 

Hoi

 

Attachment: dbControl.tar.gz
Description: dbControl.tar.gz

Attachment: dbControlTest.tar.gz
Description: dbControlTest.tar.gz

Reply via email to