Tool for creating DBManager classes in Java?
Is there a tool for creating DBManager class for simple databases in SQL? I want to use it along with netbeans. I am working on a simple homework datamining project. But I am fed up of writing DBManagers on my own开发者_如何学JAVA. I am very well aware of Hibernate, but I am not using it here. So I was just curious about whether there are such tools or plugins or anything. I am using netbeans and MySQL.
thanks a lot.
If you need the typical operations related with typical POJOs that are already a link between the database and your business logic, what are you asking about is really near to an ORM. I understand that you have Java objects that matches records in your MySQL database and that is one of the key concepts of an ORM like Hibernate is.
Anyway if you are looking for a simple (and limited) library that provides some kind of tools like save, update or delete records from a database, you will find deprecated and abandoned projects like these:
- DB Objects for Java
- JStorm - Simple Tool for Object Relational Mapping
By other hand if you prefer to test an easy and simple ORM, you can try ActiveObjects who has a simple and functional approach.
It's hard to say without knowing what your DBManager
class actually does!
Why don't you just write your DBManager
in such a way that you can reuse it in other projects. That way you won't have to keep rewriting it...
精彩评论