This is awesome, both as an showcase for the controls authoring model
and as a component for application development using Beehive.  I'll get
it submitted..

  _____  

From: Hoi Lam 
Sent: Monday, October 04, 2004 3:52 PM
To: Beehive Developers
Subject: RE: Database Control



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.jc
x)

 

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

 

Reply via email to