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()); } }
@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()); } }