public ITipologiaContratti findByPrimaryKey(Long primaryKey) throws FinderException { TipologiaContrattiBean bean = new TipologiaContrattiBean(); try { bean.setEntityContext(new EntityContextWrapper(primaryKey)); bean.ejbActivate(); bean.ejbLoad(); return bean; } catch (Exception ex) { throw new javax.ejb.FinderException(ex.getMessage()); } }
// (Home Interface) create() public ITipologiaContratti create(String strNOM_TPL_CON) throws CreateException { TipologiaContrattiBean bean = new TipologiaContrattiBean(); try { Object primaryKey = bean.ejbCreate(strNOM_TPL_CON); bean.setEntityContext(new EntityContextWrapper(primaryKey)); bean.ejbPostCreate(strNOM_TPL_CON); return bean; } catch (Exception ex) { throw new javax.ejb.CreateException(ex.getMessage()); } }
@Override public void remove(Object primaryKey) { TipologiaContrattiBean iTipologiaContrattiBean = new TipologiaContrattiBean(); try { Object obj = iTipologiaContrattiBean.ejbFindByPrimaryKey((Long) primaryKey); iTipologiaContrattiBean.setEntityContext(new EntityContextWrapper(obj)); iTipologiaContrattiBean.ejbActivate(); iTipologiaContrattiBean.ejbLoad(); iTipologiaContrattiBean.ejbRemove(); } catch (Exception ex) { throw new EJBException(ex); } }