Esempio n. 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";
 }
Esempio n. 2
0
 public static PtroleresBean findFirstAndLock(String sSqlWhere, boolean isAutoRelease)
     throws Exception {
   PtroleresBean bean = new PtroleresBean();
   bean.setAutoRelease(isAutoRelease);
   return (PtroleresBean) bean.findFirstAndLockByWhere(sSqlWhere);
 }
Esempio n. 3
0
 public static RecordSet findRecordSet(String sSqlWhere, boolean isAutoRelease) throws Exception {
   PtroleresBean bean = new PtroleresBean();
   bean.setAutoRelease(isAutoRelease);
   return bean.findRecordSetByWhere(sSqlWhere);
 }
Esempio n. 4
0
 public Object clone() throws CloneNotSupportedException {
   PtroleresBean obj = (PtroleresBean) super.clone();
   obj.setResid(obj.resid);
   obj.setRoleid(obj.roleid);
   return obj;
 }