Example #1
0
 // (Home Intrface) findByPrimaryKey()
 public IRuoliSicurezza findByPrimaryKey(Long primaryKey) throws RemoteException, FinderException {
   RuoliSicurezzaBean bean = new RuoliSicurezzaBean();
   try {
     bean.setEntityContext(new EntityContextWrapper(primaryKey));
     bean.ejbActivate();
     bean.ejbLoad();
     return bean;
   } catch (Exception ex) {
     throw new javax.ejb.FinderException(ex.getMessage());
   }
 }
Example #2
0
 // (Home Intrface) create()
 public IRuoliSicurezza create(String strNOM_RUO_SIC) throws RemoteException, CreateException {
   RuoliSicurezzaBean bean = new RuoliSicurezzaBean();
   try {
     Object primaryKey = bean.ejbCreate(strNOM_RUO_SIC);
     bean.setEntityContext(new EntityContextWrapper(primaryKey));
     bean.ejbPostCreate(strNOM_RUO_SIC);
     return bean;
   } catch (Exception ex) {
     throw new javax.ejb.CreateException(ex.getMessage());
   }
 }
Example #3
0
 // (Home Intrface) remove()
 @Override
 public void remove(Object primaryKey) {
   RuoliSicurezzaBean iRuoliSicurezzaBean = new RuoliSicurezzaBean();
   try {
     Object obj = iRuoliSicurezzaBean.ejbFindByPrimaryKey((Long) primaryKey);
     iRuoliSicurezzaBean.setEntityContext(new EntityContextWrapper(obj));
     iRuoliSicurezzaBean.ejbActivate();
     iRuoliSicurezzaBean.ejbLoad();
     iRuoliSicurezzaBean.ejbRemove();
   } catch (Exception ex) {
     throw new EJBException(ex);
   }
 }