public static List findAndLock(String sSqlWhere, boolean isAutoRelease) throws Exception { PtroleresBean bean = new PtroleresBean(); bean.setAutoRelease(isAutoRelease); return bean.findAndLockByWhere(sSqlWhere); }