jMighty - Java数据库操作框架

jopen 11年前

jMighty是一个简单并且强大的数据库操作框架和连接池管理类库。易于使用,拥有较高的性能,能够快速成操作数据库。

// create connection pool              JFunDBPool pool = new JFunDBPool();              pool.open("jdbc:mysql://localhost/mytestdb","root","",5,10,100);
            // insert two rows with transaction              try              {                  db.beginTransaction();                                    HashMap fieldValues = new HashMap();                  fieldValues.put("A",1);                  fieldValues.put("B","stam123");                  fieldValues.put("C",new Date());                  db.insert("tests",fieldValues);                    fieldValues.put("A","2");                  db.insert("tests",fieldValues);                    db.commitTransaction();              }              catch(Exception e)              {                  db.rollbackTransaction();              }

项目主页:http://www.open-open.com/lib/view/home/1350377367086