Java数据库持久层框架:QuickDB ORM
jopen
12年前
QuickDB 只在开发一个持久层映射框架简化开发者编写数据库操作代码,使用 QuickDB 几乎无需再编写 SQL 语句。
//Create instance of AdminBase //Parameters: DBMS, HOST, PORT, DB, USER, PASSWORD AdminBase admin = new AdminBase(AdminBase.DATABASE.MYSQL, "localhost", "3306", "exampleQuickDB", "root", ""); //Create Address Object Address a = new Address(); a.setNumber(123); a.setStreet("unnamed street"); //Create Collection of Phones Phone p1 = new Phone(); p1.setAreaCode("351"); p1.setNumber("123456"); Phone p2 = new Phone(); p2.setAreaCode("351"); p2.setNumber("4567890"); ArrayList<Phone> phones = new ArrayList<Phone>(); phones.add(p1); phones.add(p2); //Create Employe Object Employee e = new Employee(); e.setCode(555); e.setRolDescription("play ping pong"); e.setName("Diego Sarmentero"); e.setBirth(new java.sql.Date(100, 4, 20)); e.setAddress(a); e.setPhone(phones);
主要功能图谱: