Package org.jboss.messaging.core.impl.tx

Examples of org.jboss.messaging.core.impl.tx.PreparedTxInfo


       */

      Connection conn = null;
      PreparedStatement st = null;
      ResultSet rs = null;
      PreparedTxInfo txInfo = null;
      TransactionWrapper wrap = new TransactionWrapper();

      try
      {
         List<PreparedTxInfo> transactions = new ArrayList<PreparedTxInfo>();

         conn = ds.getConnection();

         st = conn
               .prepareStatement(getSQLStatement("SELECT_PREPARED_TRANSACTIONS"));

         st.setInt(1, nodeID);

         rs = st.executeQuery();

         while (rs.next())
         {
            // get the existing tx id --MK START
            long txId = rs.getLong(1);

            byte[] branchQual = getVarBinaryColumn(rs, 2);

            int formatId = rs.getInt(3);

            byte[] globalTxId = getVarBinaryColumn(rs, 4);

            Xid xid = new MessagingXid(branchQual, formatId, globalTxId);

            // create a tx info object with the result set detailsdetails
            txInfo = new PreparedTxInfo(txId, xid);

            transactions.add(txInfo);
         }

         return transactions;
View Full Code Here


/*      */     }
/*      */
/*  260 */     Connection conn = null;
/*  261 */     PreparedStatement st = null;
/*  262 */     ResultSet rs = null;
/*  263 */     PreparedTxInfo txInfo = null;
/*  264 */     JDBCSupport.TransactionWrapper wrap = new JDBCSupport.TransactionWrapper(this);
/*      */     try
/*      */     {
/*  268 */       List transactions = new ArrayList();
/*      */
/*  270 */       conn = this.ds.getConnection();
/*      */
/*  272 */       st = conn.prepareStatement(getSQLStatement("SELECT_PREPARED_TRANSACTIONS"));
/*      */
/*  274 */       st.setInt(1, this.nodeID);
/*      */
/*  276 */       rs = st.executeQuery();
/*      */
/*  278 */       while (rs.next())
/*      */       {
/*  281 */         txId = rs.getLong(1);
/*      */
/*  283 */         byte[] branchQual = getVarBinaryColumn(rs, 2);
/*      */
/*  285 */         int formatId = rs.getInt(3);
/*      */
/*  287 */         byte[] globalTxId = getVarBinaryColumn(rs, 4);
/*      */
/*  289 */         Xid xid = new MessagingXid(branchQual, formatId, globalTxId);
/*      */
/*  292 */         txInfo = new PreparedTxInfo(txId, xid);
/*      */
/*  294 */         transactions.add(txInfo);
/*      */       }
/*      */
/*  297 */       long txId = transactions;
View Full Code Here

       * instead of direct Xids [JPL] */
     
      Connection conn = null;
      PreparedStatement st = null;
      ResultSet rs = null;
      PreparedTxInfo txInfo = null;
      TransactionWrapper wrap = new TransactionWrapper();
     
      try
      {
         List<PreparedTxInfo> transactions = new ArrayList<PreparedTxInfo> ();
        
         conn = ds.getConnection();
        
         st = conn.prepareStatement(getSQLStatement("SELECT_PREPARED_TRANSACTIONS"));
        
         st.setInt(1, nodeID);
        
         rs = st.executeQuery();
        
         while (rs.next())
         {
            //get the existing tx id --MK START
            long txId = rs.getLong(1);
           
            byte[] branchQual = getVarBinaryColumn(rs, 2);
           
            int formatId = rs.getInt(3);
           
            byte[] globalTxId = getVarBinaryColumn(rs, 4);
           
            Xid xid = new MessagingXid(branchQual, formatId, globalTxId);
           
            // create a tx info object with the result set detailsdetails
            txInfo = new PreparedTxInfo(txId, xid);
           
            transactions.add(txInfo);
         }
        
         return transactions;
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.impl.tx.PreparedTxInfo

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.