DID YOU KNOW? - ABOUT DATAPROVIDER COMPONENTS IN THE PALETTE?

Hi All,

DID YOU KNOW?

Practically all applications entail accessing data of some sort, often data stored in a relational database table or some sort of list, such as a vector or an array. Usually you need to read in data from the data source, but many times you have to update that data, too. The Sun Java Studio Creator integrated development environment, as another enhancement to its application model, provides data provider components that simplify accessing data sources, regardless of whether the data source is a relational database table, flat file, web service, vector, array, or some other type of data store.

A data provider component is a nonvisual abstraction for wrapping sources of data, and it represents a more generic and flexible data binding mechanism. A glance at the Palette indicates that there are many different kinds of data providers available to you. These include data providers for cached RowSets, ResultSets, lists, arrays, maps, table rows, and method results.

These data providers constitute a layer between a web application's components and its persistence tier, such as a database table, Array object, or Enterprise JavaBean object. This layer enables you to access data in a consistent way, even though data may come from different sources.

Lets briefly discuss the CachedRowSetDataProvider

The CachedRowSetDataProvider Component

A CachedRowSetDataProvider is a wrapper to data held in a CachedRowSet. The primary purpose of a CachedRowSetDataProvider is to facilitate binding to components in the IDE. A CachedRowSet stores the data retrieved from a database. In fact, the only information held by the CachedRowSetDataProvider is a cursor position into the CachedRowSet. Multiple CachedRowSetDataProvider instances can reference the same CachedRowSet, and each instance will have its own cursor position into the CachedRowSet.

Learn more :-

Working With Data Providers

http://developers.sun.com/jscreator/learning/tutorials/2/dataproviders.html

Data Provider Components in Java Studio Creator

http://developers.sun.com/jscreator/reference/fi/2/data-providers.html

Using CachedRowSet and CachedRowSetDataProvider in the Sun Java Studio Creator IDE

http://developers.sun.com/jscreator/reference/techart/2/insert_row_in_table.htm l

We would like to know the following from you :-

1) Which of the DataProviders are you using in applications you are building? Also How and Where?

2) Did you face any challenges while using them?

3) Did you find any special usages/scenarios for using these components?

4) Do you have any feedback/comments/improvements which you would like to see with using Dataproviders?

Thank you for all your inputs and for joining in the discussion.

K

[2870 byte] By [kish@suna] at [2007-11-27 1:40:46]
# 1
.
kish@suna at 2007-7-12 0:55:23 > top of Java-index,Development Tools,Java Tools...