Package javax.ejb

Examples of javax.ejb.EJBLocalObject


/*     */   public EJBLocalObject getEJBLocalObject() throws IllegalStateException
/*     */   {
/*     */     try
/*     */     {
/*  61 */       Object id = ((SessionBeanContext)this.beanContext).getId();
/*  62 */       EJBLocalObject proxy = null;
/*     */       try
/*     */       {
/*  65 */         proxy = (EJBLocalObject)((SessionContainer)this.container).createLocalProxy(id);
/*     */       }
/*     */       catch (ClassCastException cce)
View Full Code Here


/*     */
/* 276 */     List argIds = new ArrayList();
/* 277 */     Iterator iterator = c.iterator();
/* 278 */     while (iterator.hasNext())
/*     */     {
/* 280 */       EJBLocalObject localObject = (EJBLocalObject)iterator.next();
/* 281 */       Object relatedId = getPrimaryKey(localObject);
/* 282 */       argIds.add(relatedId);
/*     */     }
/*     */
/* 285 */     boolean isModified = false;
View Full Code Here

/*     */
/* 324 */     List argIds = new ArrayList();
/* 325 */     Iterator iterator = c.iterator();
/* 326 */     while (iterator.hasNext())
/*     */     {
/* 328 */       EJBLocalObject localObject = (EJBLocalObject)iterator.next();
/* 329 */       Object relatedId = getPrimaryKey(localObject);
/* 330 */       argIds.add(relatedId);
/*     */     }
/*     */
/* 333 */     return idList.containsAll(argIds);
View Full Code Here

                    // boolean isIdentical(EJBLocalObject)
   
                    // Convert the param into an EJBLocalObjectImpl.  Can't
                    // assume it's an EJBLocalObject for an ejb that was deployed
                    // using dynamic proxies.
                    EJBLocalObject other = (EJBLocalObject) args[0];
                    EJBLocalObjectImpl otherImpl =
                        EJBLocalObjectImpl.toEJBLocalObjectImpl(other);
                       
                    methodIndex = container.EJBLocalObject_isIdentical;
                    container.onEjbMethodStart(methodIndex);
View Full Code Here

     * @param container a helper instance for the request.
     * @param context an EJBContext of the calling bean.
     * @return a corresponding EJBLocalObject instance to be used by the client.
     */
    public EJBLocalObject getEJBLocalObject(Object pk, Object container, EJBContext context) {
        EJBLocalObject rc = null;
        try {
            rc = ((Container)container).getEJBLocalObjectForPrimaryKey(pk, context);
        } catch (Exception ex) {
            processContainerException(ex);
        }
View Full Code Here

                    // boolean isIdentical(EJBLocalObject)
   
                    // Convert the param into an EJBLocalObjectImpl.  Can't
                    // assume it's an EJBLocalObject for an ejb that was deployed
                    // using dynamic proxies.
                    EJBLocalObject other = (EJBLocalObject) args[0];
                    EJBLocalObjectImpl otherImpl =
                        EJBLocalObjectImpl.toEJBLocalObjectImpl(other);
                       
                    methodIndex = container.EJBLocalObject_isIdentical;
                    container.onEjbMethodStart(methodIndex);
View Full Code Here

            new EJBLocalObjectInvocationHandler(proxyInvocationInfoMap,
                                                localIntf);
        localObjImpl = handler;
       
        try {
            EJBLocalObject localObjectProxy = (EJBLocalObject) ejbLocalObjectProxyCtor.newInstance(new Object[]{handler});
            handler.setProxy(localObjectProxy);
        } catch (ClassCastException e) {
            String msg = localStrings.getLocalString("ejb.basecontainer_invalid_local_interface",
                    "Local component interface [{0}] is invalid since it does not extend javax.ejb.EJBLocalObject.", localIntf);
            throw new IllegalArgumentException(msg, e);
View Full Code Here

        return;
      }
    } catch (RemoteException e) {
    }

    EJBLocalObject local = null;
    try {
      local = getEJBLocalObject();
    } catch (Exception e) {
    }

    if (local != null) {
      local.remove();
      return;
    }
  }
View Full Code Here

            new EJBLocalObjectInvocationHandler(proxyInvocationInfoMap,
                                                localIntf);
        localObjImpl = handler;
       
        try {
            EJBLocalObject localObjectProxy = (EJBLocalObject) ejbLocalObjectProxyCtor.newInstance(new Object[]{handler});
            handler.setProxy(localObjectProxy);
        } catch (ClassCastException e) {
            String msg = localStrings.getLocalString("ejb.basecontainer_invalid_local_interface",
                    "Local component interface [{0}] is invalid since it does not extend javax.ejb.EJBLocalObject.", localIntf);
            throw new IllegalArgumentException(msg, e);
View Full Code Here

     *
     * @param fk - foreign key value.
     * @return related local object instance.
     */
    public EJBLocalObject getRelatedEntityByFK(Object fk) {
        EJBLocalObject relatedLocalObject = null;
        final CmpEntityBeanComponent relatedContainer = getRelatedComponent();

        if (hasFKFieldsMappedToCMPFields && relatedManager.getReadAheadCache().getPreloadDataMap(fk, false) == null) {  // not in preload cache
            try {
                relatedLocalObject = relatedContainer.getEJBLocalObject(fk);
View Full Code Here

TOP

Related Classes of javax.ejb.EJBLocalObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.