This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 103822 - Have NB generate boiler-plate code for databinding DataSet based on existing class
Summary: Have NB generate boiler-plate code for databinding DataSet based on existing ...
Status: NEW
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-11 22:27 UTC by ieising
Modified: 2007-08-28 11:24 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ieising 2007-05-11 22:27:13 UTC
Hi,

It would be great if NB would be able to introspect a class and generate from
that class boilerplate code for a DataSet that allows the class to be used in
DataBinding. The class itself would typically implement its persistency to
whatever resource.

Iwan
Comment 1 Michal Skvor 2007-08-16 13:34:35 UTC
I didn't get it. Could you describe it more in detail?
Comment 2 ieising 2007-08-16 19:33:25 UTC
What I am thinking about here is that you define a class and click some menu-option that says "Generate Databinding",
which will then introspect the class and for all attributes (primitives, String, Long, etc) it generates the code
required to bind the class to a Dataset.
Since I assume that that kind of code always looks the same for a particular type, I assume that NB could generate
boilerplate code and lets me adjust the code if needed, e.g. to ensure that the value of some int is always between 0
and 9, or for example that a String is actually always an email address.

Iwan
Comment 3 Michal Skvor 2007-08-28 11:24:21 UTC
There is automatic code generation of DataBinding for JSR-172 client in nightly builds. You could try to play with it.
We plan to add this functionality to the Web To Mobile Client.