2010-01-13から1日間の記事一覧

データをJDOに格納・更新・削除する場合について

Insertは Model model = new Model(); model.setXxx(...); ... tx.begin(); pm.makePersistent(model); tx.commit(); Updateは tx.begin(); Model model = pm.getObjectById(Model.class, id); model.setXxx(...); tx.commit(); Deleteは tx.begin(); Model …