public static RecordSet findRecordSet(String sSqlWhere, boolean isAutoRelease) throws Exception {
   PtroleresBean bean = new PtroleresBean();
   bean.setAutoRelease(isAutoRelease);
   return bean.findRecordSetByWhere(sSqlWhere);
 }
 public static PtroleresBean findFirstAndLock(String sSqlWhere, boolean isAutoRelease)
     throws Exception {
   PtroleresBean bean = new PtroleresBean();
   bean.setAutoRelease(isAutoRelease);
   return (PtroleresBean) bean.findFirstAndLockByWhere(sSqlWhere);
 }