Ejemplo n.º 1
0
 public ISimbolo create(String strDES_SIM) throws javax.ejb.CreateException {
   SimboloBean bean = new SimboloBean();
   try {
     Object primaryKey = bean.ejbCreate(strDES_SIM);
     bean.setEntityContext(new EntityContextWrapper(primaryKey));
     bean.ejbPostCreate(strDES_SIM);
     return bean;
   } catch (Exception ex) {
     throw new javax.ejb.CreateException(ex.getMessage());
   }
 }
Ejemplo n.º 2
0
 public ISimbolo findByPrimaryKey(Long primaryKey) throws javax.ejb.FinderException {
   SimboloBean bean = new SimboloBean();
   try {
     bean.setEntityContext(new EntityContextWrapper(primaryKey));
     bean.ejbActivate();
     bean.ejbLoad();
     return bean;
   } catch (Exception ex) {
     throw new javax.ejb.FinderException(ex.getMessage());
   }
 }
Ejemplo n.º 3
0
 @Override
 public void remove(Object primaryKey) {
   SimboloBean bean = new SimboloBean();
   try {
     Object obj = bean.ejbFindByPrimaryKey((Long) primaryKey);
     bean.setEntityContext(new EntityContextWrapper(obj));
     bean.ejbActivate();
     bean.ejbLoad();
     bean.ejbRemove();
   } catch (Exception ex) {
     throw new EJBException(ex.getMessage());
   }
 }