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