コード例 #1
0
 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());
   }
 }
コード例 #2
0
 // (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());
   }
 }
コード例 #3
0
 @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);
   }
 }