コード例 #1
0
 public static Version loadVersion(Integer id) {
   return (Version) DatabaseRecord.loadRecord(id, Version.class, true);
 }
コード例 #2
0
 public static Version loadVersion(ResultSet rset) {
   return (Version) DatabaseRecord.loadRecord(rset, Version.class);
 }
コード例 #3
0
 public AbstractList generateCollection(HttpSession session) {
   Product prod = (Product) session.getAttribute("record");
   String query = "select * from tbl_version where product = " + prod.getId();
   return DatabaseRecord.loadRecords(query, Version.class);
 }