コード例 #1
0
 @SuppressWarnings("unchecked")
 public void addObject(List list, RecordSet rs) {
   PtroleresBean abb = new PtroleresBean();
   abb.resid = rs.getString("resid");
   abb.setKeyValue("RESID", "" + abb.getResid());
   abb.roleid = rs.getString("roleid");
   abb.setKeyValue("ROLEID", "" + abb.getRoleid());
   list.add(abb);
   abb.operate_mode = "edit";
 }
コード例 #2
0
 public static PtroleresBean findFirstAndLock(String sSqlWhere, boolean isAutoRelease)
     throws Exception {
   PtroleresBean bean = new PtroleresBean();
   bean.setAutoRelease(isAutoRelease);
   return (PtroleresBean) bean.findFirstAndLockByWhere(sSqlWhere);
 }
コード例 #3
0
 public static RecordSet findRecordSet(String sSqlWhere, boolean isAutoRelease) throws Exception {
   PtroleresBean bean = new PtroleresBean();
   bean.setAutoRelease(isAutoRelease);
   return bean.findRecordSetByWhere(sSqlWhere);
 }
コード例 #4
0
 public Object clone() throws CloneNotSupportedException {
   PtroleresBean obj = (PtroleresBean) super.clone();
   obj.setResid(obj.resid);
   obj.setRoleid(obj.roleid);
   return obj;
 }