Sonntag, 9. September 2007

db4o-netbeans project launched

I've just started a new project to build a netbeans plugin for the db4o object database. Keep a bookmark to Soon, I will add artifacts there that you can download and use.

As a preview, here are some of the first screen shots and some information about the initial version:

db4o database are accessed by simply creating a custom file type choosing New File on the File menu and adding it to an opened java project.

After entering a name, a file of type db4o is added to the java project.

Using the context menu item Open Db4o Editor opens the editor to visualize the db4o database content. The editor may be used to navigate the database content, add or remove objects to or from the database or change values of stored objects.

Values are edited and changed in the regular properties window provided by net beans.

A first simple approach to add support for db4o database is by constructing soda based queries. The elements of a query will be added as sub nodes to the db4o database node in the projects navigation view.

However, this approach has some limitations but is easy to implement.
Executing the query opens another editor window for the query results.

The count of objects affected by the query is additionally displayed in the title.

Well, the project has just been started and there is quite a lot to do to make it smooth.
Especially, improving the query approach to the latest db4o features and editing capabilities are quite challenging.
Moreover, currently db4o 6.1 is used. I need to make sure that the plugin is independent on a certain db4o version. And last but not least, support for net beans 6.0 is on the list as well.

If you are interested in the project and would like to know more about it, please post a comment here. Contributions are welcome.