NetBeans Platform CRUD

One thing I'm meant to be working on is writing a tutorial for creating a CRUD application on the NetBeans Platform. The related issue and interesting documentation relating to this point can be found in the issue:

http://www.netbeans.org/issues/show_bug.cgi?id=146402

And here's where things are right now:

It is a prototype that uses the Database Explorer API to display information in a NetBeans Explorer View via the Nodes API. It also prints column names to the Output window when a node is double-clicked. Now the column names need to end up in the columns in the Details view. One way in which this might be done is to add the column names to the global Lookup whenever a table name is selected. The global Lookup would then be available to the Details view, which would then display them as the columns of the table. Seems like a NetBeans-centric approach to me. Any advice from anyone out there on this point?

Comments:

Of course there are multiple ways to solve any problem, but the way I'd approach it would be to create a business object (i.e. a simple JavaBean named Customer) for each record in the table. The fields of that object would correspond to the columns in the table. I'd then create a Node instance for each of these objects and make each field a Node.Property of that node. Using a BeanNode is probably the simplest approach if you don't require much customization. Your table could then be an explorer view of some sort.

I'd also place an instance of the business object in the Lookup of that node. That will allow other code to listen to the global selection and be able to access the current customer object and react to selection changes easily.

Posted by Tom Wheeler on December 09, 2008 at 04:58 AM PST #

I am waiting... anxious!!

[]'s

Posted by Gilberto on December 14, 2008 at 09:28 PM PST #

Also waiting patiently. Serious benefit will accrue from a clear HOW-TO documentation set for building CRUD Application on top of Netbeans Platform

Posted by jerry on December 15, 2008 at 11:21 PM PST #

Please update your sample documentation as soon as possible.

I'm waiting for an example for quite long time...

Thanks!

Posted by Eduardo Catarino on December 16, 2008 at 06:03 PM PST #

Eduardo, what do you mean? What needs to be updated? Everything has been updated already so it's not clear what you're talking about.

Posted by Geertjan on December 16, 2008 at 08:52 PM PST #

I'm talking about the tutorial for creating a CRUD application. I'm developing a RCP application and I would like to use the Netbeans CRUD functionalities. However I did not manage to do it and I was waiting for a sample application to se what I'm doing wrong.....

Posted by Eduardo Catarino on December 18, 2008 at 08:39 PM PST #

It would be nice.
But what about JPA support in Netbeans (with hibernate for example). I've tried to add hibernate to platform but I'd failed :/

Posted by darek on January 11, 2009 at 05:33 AM PST #

I'm waiting for an example for quite long time...Thanks

Posted by sinema izle on March 10, 2009 at 07:14 AM PDT #

How about an JPA example that uses a more complex example, Netbeans has one with a two table DB but one with 5+ tables would be more useful, with examples of the various relationships...

Posted by Randin on May 08, 2009 at 10:15 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« March 2015
SunMonTueWedThuFriSat
4
14
15
16
22
27
28
29
30
31
    
       
Today