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