Persist是一个轻量级的易用而且高性能的Java ORM和DAO框架。
示例代码:
//isertsaewcustomer(theclassCustomerismappedtothetablecustomerautomatically)persist.isert(customer);//readsacustomerbyitsprimarykeyCustomerc=persist.readByPrimaryKey(Customer.class,42);//retrievescustomersusigacustomquery(otetheusageofvarargs)Listlist=persist.readList(Customer.class,"select*fromcustomerwhereid>?",10);//fetchallcustomersadassigtheResultSettoaIteratorIteratorallCustomersIterator=persist.readIterator(Customer.class,"select*fromcustomer");







评论