Reputation: 3319
I want to build a jdbc client tool. it will display data that returned by select query in Swing table, and may allow user to edit the data on the table. my question is what's the best way to generate standard sql string(insert delete update) for saving modification back to database ?
Upvotes: 1
Views: 142
Reputation: 1586
1) You can use Apache Cayenne
2) It supports common databases (such as mysql, oracle, db2, sysbase, informix)
http://cayenne.apache.org/docs/3.0/database-support.html
3) You can use arbitary SQL queries by using SQLTemplate class. It allows to customizing SQL dialects.
http://cayenne.apache.org/docs/3.0/sqltemplate-basics.html
Upvotes: 1
Reputation: 48
Look into Hibernate (Java)
or
Java DB OBjects
http://dbobjects.sourceforge.net/
Upvotes: 0