Persist 介绍
Persist 是一个轻量级的易用而且高性能的 Java ORM 和 DAO 框架。
示例代码:
// inserts a new customer (the class Customer is mapped to the table customer
automatically)
persist.insert(customer);
// reads a customer by its primary key
Customer c = persist.readByPrimaryKey(Customer.class, 42);
// retrieves customers using a custom query (note the usage of varargs)
List list = persist.readList(Customer.class, “select * from customer where id
?”, 10);
// fetch all customers and assign the ResultSet to an Iterator
Iterator allCustomersIterator = persist.readIterator(Customer.class, “select *
from customer”);
Persist 官网
http://code.google.com/p/persist/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。