Package org.jboss.tm

Examples of org.jboss.tm.TransactionLocal


      }
      catch (Exception ex)
      {
         throw new RuntimeException(ex);
      }
      this.txState = new TransactionLocal();
   }
View Full Code Here


      }
      catch (Exception ex)
      {
         throw new RuntimeException(ex);
      }
      this.txState = new TransactionLocal();
      this.txVersion = new TransactionLocal();
      this.methodMap = mapMethodMap;
   }
View Full Code Here

      }
      catch (Exception ex)
      {
         throw new RuntimeException(ex);
      }
      this.txState = new TransactionLocal();
      this.txVersion = new TransactionLocal();
      this.methodMap = listMethodMap;
   }
View Full Code Here

      }
      catch (Exception ex)
      {
         throw new RuntimeException(ex);
      }
      this.txState = new TransactionLocal();
      this.txVersion = new TransactionLocal();
      this.methodMap = setMethodMap;
   }
View Full Code Here

    private static final Logger log = Logger.getLogger(TransactionEntityMap.class);
    private final InjectedValue<TransactionManager> transactionManager = new InjectedValue<TransactionManager>();
    private TransactionLocal txSynch;

    public synchronized void start(StartContext context) throws StartException {
        txSynch = new TransactionLocal(transactionManager.getValue()) {
            public Transaction getTransaction() {
                try {
                    return transactionManager.getTransaction();
                } catch (SystemException e) {
                    throw MESSAGES.errorGettingCurrentTransaction(e);
View Full Code Here

        public M2MRelationManager(final JDBCCMRFieldBridge leftField, final JDBCCMRFieldBridge rightField) {
            this.leftField = leftField;
            this.rightField = rightField;

            relationData = new TransactionLocal(leftField.manager.getComponent().getTransactionManager()) {
                protected Object initialValue() {
                    return new RelationData(leftField, rightField);
                }

                public Transaction getTransaction() {
View Full Code Here

                         Subject subject, ConnectionRequestInfo cri, PoolConfiguration pc)
   {
      subPool = new ManagedConnectionPool(mcf, clf, subject, cri, pc);
      if (tm != null)
      {
         trackByTx = new TransactionLocal(tm)
      }
   }
View Full Code Here

     
      //Sub-pool internal managed connection pool
      ManagedConnectionPool imcp = subPoolContext.getSubPool();

      // Are we doing track by transaction?
      TransactionLocal trackByTx = subPoolContext.getTrackByTx();
     
      if (trackByTransaction == null || trackByTx == null)
      {
         cl = getSimpleConnection(subject, cri, subPoolContext);
      } //end of if trackByTransaction  
View Full Code Here

/*     */   private TransactionLocal txDataMap;
/*     */   private TransactionLocal cascadeDeleteSet;
/*     */
/*     */   public JDBCStoreManager()
/*     */   {
/* 133 */     this.cascadeDeleteSet = new TransactionLocal()
/*     */     {
/*     */       protected Object initialValue()
/*     */       {
/* 137 */         return new JDBCStoreManager.CascadeDeleteRegistry(JDBCStoreManager.this, null);
/*     */       }
View Full Code Here

/* 330 */     synchronized (moduleData)
/*     */     {
/* 332 */       this.txDataMap = ((TransactionLocal)moduleData.get(TX_DATA_KEY));
/* 333 */       if (this.txDataMap == null)
/*     */       {
/* 335 */         this.txDataMap = new TransactionLocal();
/* 336 */         moduleData.put(TX_DATA_KEY, this.txDataMap);
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.tm.TransactionLocal

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.