예제 #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;
 }