/** keyFromBean */ public Object keyFromBean(javax.ejb.EntityBean generalEJB) { com.grupobbva.bc.per.tel.iilc.entity.ConcreteTiilc_empresa_d572bb0f tmpEJB = (com.grupobbva.bc.per.tel.iilc.entity.ConcreteTiilc_empresa_d572bb0f) generalEJB; com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaKey keyClass = new com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaKey(); keyClass.cod_empresa = tmpEJB.getCod_empresa(); return keyClass; }
/** findAllEmpresa_Local */ public java.util.Collection findAllEmpresa_Local() throws javax.ejb.FinderException, java.rmi.RemoteException { java.util.Collection result = null; EntityBeanO beanO = null; try { beanO = super.getFinderEntityBeanO(); com.grupobbva.bc.per.tel.iilc.entity.ConcreteTiilc_empresa_d572bb0f bean = (com.grupobbva.bc.per.tel.iilc.entity.ConcreteTiilc_empresa_d572bb0f) beanO.getEnterpriseBean(); java.util.Collection pKeys = bean.ejbFindAllEmpresa_Local(); result = super.getCMP20Collection_Local(pKeys); super.releaseFinderEntityBeanO(beanO); beanO = null; } catch (javax.ejb.FinderException finderEx) { super.releaseFinderEntityBeanO(beanO); beanO = null; throw finderEx; } finally { if (beanO != null) super.discardFinderEntityBeanO(beanO); } return result; }
/** findEmpresaxCodigo_Local */ public com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaLocal findEmpresaxCodigo_Local( java.lang.String cod_empresa) throws javax.ejb.FinderException, java.rmi.RemoteException { com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaLocal result = null; EntityBeanO beanO = null; com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaKey pKey = null; try { beanO = super.getFinderEntityBeanO(); com.grupobbva.bc.per.tel.iilc.entity.ConcreteTiilc_empresa_d572bb0f bean = (com.grupobbva.bc.per.tel.iilc.entity.ConcreteTiilc_empresa_d572bb0f) beanO.getEnterpriseBean(); pKey = bean.ejbFindEmpresaxCodigo_Local(cod_empresa); result = (com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaLocal) activateBean_Local(pKey); super.releaseFinderEntityBeanO(beanO); beanO = null; } catch (javax.ejb.FinderException finderEx) { super.releaseFinderEntityBeanO(beanO); beanO = null; throw finderEx; } finally { if (beanO != null) super.discardFinderEntityBeanO(beanO); } return result; }