Example #1
0
 // @ requires id != null;
 // @ ensures \result != null;
 // @ signals (Exception) false;
 public ie.ucd.srg.koa.controller.beans.Koa_state create(java.lang.Integer id)
     throws javax.ejb.CreateException, java.rmi.RemoteException {
   BeanO beanO = null;
   ie.ucd.srg.koa.controller.beans.Koa_state _EJS_result = null;
   boolean createFailed = false;
   try {
     beanO = super.createBeanO();
     ie.ucd.srg.koa.controller.beans.Koa_stateBean bean =
         (ie.ucd.srg.koa.controller.beans.Koa_stateBean) beanO.getEnterpriseBean();
     bean.ejbCreate(id);
     _EJS_result =
         (ie.ucd.srg.koa.controller.beans.Koa_state) super.postCreate(beanO, keyFromBean(bean));
     bean.ejbPostCreate(id);
   } catch (javax.ejb.CreateException ex) {
     createFailed = true;
     throw ex;
   } catch (java.rmi.RemoteException ex) {
     createFailed = true;
     throw ex;
   } catch (Throwable ex) {
     createFailed = true;
     throw new CreateFailureException(ex);
   } finally {
     if (createFailed) {
       super.createFailure(beanO);
     }
   }
   return _EJS_result;
 }
 /** create_Local */
 public com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaLocal create_Local(
     java.lang.String cod_empresa) throws javax.ejb.CreateException, java.rmi.RemoteException {
   BeanO beanO = null;
   com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaLocal result = null;
   boolean createFailed = false;
   boolean preCreateFlag = false;
   try {
     beanO = super.createBeanO();
     com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaBean bean =
         (com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaBean) beanO.getEnterpriseBean();
     preCreateFlag = super.preEjbCreate(beanO);
     bean.ejbCreate(cod_empresa);
     Object ejsKey = keyFromBean(bean);
     result =
         (com.grupobbva.bc.per.tel.iilc.entity.Tiilc_empresaLocal)
             super.postCreate_Local(beanO, ejsKey, true);
     bean.ejbPostCreate(cod_empresa);
     super.afterPostCreate(beanO, ejsKey);
   } catch (javax.ejb.CreateException ex) {
     createFailed = true;
     throw ex;
   } catch (java.rmi.RemoteException ex) {
     createFailed = true;
     throw ex;
   } catch (Throwable ex) {
     createFailed = true;
     throw new CreateFailureException(ex);
   } finally {
     if (preCreateFlag && !createFailed) super.afterPostCreateCompletion(beanO);
     if (createFailed) {
       super.createFailure(beanO);
     }
   }
   return result;
 }
 /** create_Local */
 public entities.Tiido_equivalenciasLocal create_Local(java.lang.String cod_car)
     throws javax.ejb.CreateException, java.rmi.RemoteException {
   BeanO beanO = null;
   entities.Tiido_equivalenciasLocal result = null;
   boolean createFailed = false;
   boolean preCreateFlag = false;
   try {
     beanO = super.createBeanO();
     entities.Tiido_equivalenciasBean bean =
         (entities.Tiido_equivalenciasBean) beanO.getEnterpriseBean();
     preCreateFlag = super.preEjbCreate(beanO);
     bean.ejbCreate(cod_car);
     Object ejsKey = keyFromBean(bean);
     result = (entities.Tiido_equivalenciasLocal) super.postCreate_Local(beanO, ejsKey, true);
     bean.ejbPostCreate(cod_car);
     super.afterPostCreate(beanO, ejsKey);
   } catch (javax.ejb.CreateException ex) {
     createFailed = true;
     throw ex;
   } catch (java.rmi.RemoteException ex) {
     createFailed = true;
     throw ex;
   } catch (Throwable ex) {
     createFailed = true;
     throw new CreateFailureException(ex);
   } finally {
     if (preCreateFlag && !createFailed) super.afterPostCreateCompletion(beanO);
     if (createFailed) {
       super.createFailure(beanO);
     }
   }
   return result;
 }
 /** create */
 public com.ardais.bigr.iltds.beans.Projectsample create(
     java.lang.String argSamplebarcodeid,
     com.ardais.bigr.iltds.beans.LineitemKey argLineitem,
     com.ardais.bigr.iltds.beans.ProjectKey argProject)
     throws javax.ejb.CreateException, java.rmi.RemoteException {
   BeanO beanO = null;
   com.ardais.bigr.iltds.beans.Projectsample _EJS_result = null;
   boolean createFailed = false;
   try {
     beanO = super.createBeanO();
     com.ardais.bigr.iltds.beans.ProjectsampleBean bean =
         (com.ardais.bigr.iltds.beans.ProjectsampleBean) beanO.getEnterpriseBean();
     bean.ejbCreate(argSamplebarcodeid, argLineitem, argProject);
     Object _primaryKey = keyFromBean(bean);
     _EJS_result = postCreateWrapper(beanO, _primaryKey);
     bean.ejbPostCreate(argSamplebarcodeid, argLineitem, argProject);
     afterPostCreateWrapper(beanO, _primaryKey);
   } catch (javax.ejb.CreateException ex) {
     createFailed = true;
     throw ex;
   } catch (java.rmi.RemoteException ex) {
     createFailed = true;
     throw ex;
   } catch (Throwable ex) {
     createFailed = true;
     throw new CreateFailureException(ex);
   } finally {
     if (createFailed) {
       super.createFailure(beanO);
     }
   }
   return _EJS_result;
 }