C H A P T E R  44

JDBC ResultSet Adapter Model

The JDBC ResultSet Model will adapt to the ResultSet thats being passed to it. It allows the user to set the Field Names and Types during the design time. The Application Developer can map DisplayFields directly to this Model Fields that has been created. Model will work as a adapter to the underlying ResultSet and will support only retrievel and display of data encapsulated in ResultSet. Also this model will not support Insert & Update actions.

Like the bean adapter model, this model could be used programmatically by calling setResultSet() before value binding or like the bean adapter model it may have config properties defined in the component info which look for the ResultSet automatically in as a scoped object.


Property Name

Description

Notes

ResultSet Attribute Scope

It takes Request, Application and Session as values. If "Any" is specified, the attribute is

 

ResultSet Attribute Name

The name of the attribute into which the ResultSet is store.

Required when above is set.


JDBC ResultSet Adapter Model Design Actions


Property Name

Description

Notes

Field Name

Name of the column in the table you are trying to connect.

Optional

Name

The logical name of the model field.

Required


All the remaining fields on this model is not required to be filled in.