Package org.jboss.ejb.plugins.cmp.jdbc.bridge

Examples of org.jboss.ejb.plugins.cmp.jdbc.bridge.CMRInvocation


         invocation.setType(InvocationType.LOCAL);
         */

         SecurityActions actions = SecurityActions.UTIL.getSecurityActions();

         CMRInvocation invocation = new CMRInvocation();
         invocation.setCmrMessage(CMRMessage.REMOVE_RELATION);
         invocation.setEntrancy(Entrancy.NON_ENTRANT);
         invocation.setId(instanceCache.createCacheKey(myId));
         invocation.setArguments(new Object[]{this, relatedId});
         invocation.setTransaction(tx);
         invocation.setPrincipal(actions.getPrincipal());
         invocation.setCredential(actions.getCredential());
         invocation.setType(InvocationType.LOCAL);

         manager.getContainer().invoke(invocation);
      }
      catch(EJBException e)
      {
View Full Code Here


         invocation.setCredential(SecurityAssociation.getCredential());
         invocation.setType(InvocationType.LOCAL);
         */
         SecurityActions actions = SecurityActions.UTIL.getSecurityActions();

         CMRInvocation invocation = new CMRInvocation();
         invocation.setCmrMessage(CMRMessage.ADD_RELATION);
         invocation.setEntrancy(Entrancy.NON_ENTRANT);
         invocation.setId(instanceCache.createCacheKey(myId));
         invocation.setArguments(new Object[]{this, relatedId});
         invocation.setTransaction(tx);
         invocation.setPrincipal(actions.getPrincipal());
         invocation.setCredential(actions.getCredential());
         invocation.setType(InvocationType.LOCAL);

         manager.getContainer().invoke(invocation);
      }
      catch(EJBException e)
      {
View Full Code Here

/*  554 */       Transaction tx = getTransaction();
/*  555 */       EntityCache instanceCache = (EntityCache)this.manager.getContainer().getInstanceCache();
/*      */
/*  568 */       SecurityActions actions = JDBCCMRFieldBridge2.SecurityActions.UTIL.getSecurityActions();
/*      */
/*  570 */       CMRInvocation invocation = new CMRInvocation();
/*  571 */       invocation.setCmrMessage(CMRMessage.REMOVE_RELATION);
/*  572 */       invocation.setEntrancy(Entrancy.NON_ENTRANT);
/*  573 */       invocation.setId(instanceCache.createCacheKey(myId));
/*  574 */       invocation.setArguments(new Object[] { this, relatedId });
/*  575 */       invocation.setTransaction(tx);
/*  576 */       invocation.setPrincipal(actions.getPrincipal());
/*  577 */       invocation.setCredential(actions.getCredential());
/*  578 */       invocation.setType(InvocationType.LOCAL);
/*      */
/*  580 */       this.manager.getContainer().invoke(invocation);
/*      */     }
/*      */     catch (EJBException e)
/*      */     {
View Full Code Here

/*  596 */       Transaction tx = getTransaction();
/*  597 */       EntityCache instanceCache = (EntityCache)this.manager.getContainer().getInstanceCache();
/*      */
/*  608 */       SecurityActions actions = JDBCCMRFieldBridge2.SecurityActions.UTIL.getSecurityActions();
/*      */
/*  610 */       CMRInvocation invocation = new CMRInvocation();
/*  611 */       invocation.setCmrMessage(CMRMessage.ADD_RELATION);
/*  612 */       invocation.setEntrancy(Entrancy.NON_ENTRANT);
/*  613 */       invocation.setId(instanceCache.createCacheKey(myId));
/*  614 */       invocation.setArguments(new Object[] { this, relatedId });
/*  615 */       invocation.setTransaction(tx);
/*  616 */       invocation.setPrincipal(actions.getPrincipal());
/*  617 */       invocation.setCredential(actions.getCredential());
/*  618 */       invocation.setType(InvocationType.LOCAL);
/*      */
/*  620 */       this.manager.getContainer().invoke(invocation);
/*      */     }
/*      */     catch (EJBException e)
/*      */     {
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.jdbc.bridge.CMRInvocation

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.