[jboss-cvs] JBoss Messaging SVN: r1594 - branches/Branch_1_0_XARecovery/src/main/org/jboss/messaging/core/tx
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 20 06:54:51 EST 2006
Author: juha at jboss.org
Date: 2006-11-20 06:54:49 -0500 (Mon, 20 Nov 2006)
New Revision: 1594
Added:
branches/Branch_1_0_XARecovery/src/main/org/jboss/messaging/core/tx/PreparedTxInfo.java
Log:
Original patch (JBMessaging-407) with addition of a helper class to pair internal tx id and xid
Added: branches/Branch_1_0_XARecovery/src/main/org/jboss/messaging/core/tx/PreparedTxInfo.java
===================================================================
--- branches/Branch_1_0_XARecovery/src/main/org/jboss/messaging/core/tx/PreparedTxInfo.java 2006-11-20 11:52:39 UTC (rev 1593)
+++ branches/Branch_1_0_XARecovery/src/main/org/jboss/messaging/core/tx/PreparedTxInfo.java 2006-11-20 11:54:49 UTC (rev 1594)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005-2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.messaging.core.tx;
+
+import javax.transaction.xa.Xid;
+
+/**
+ * A value object for prepared transaction representation
+ *
+ * @author <a href="mailto:Konda.Madhu at uk.mizuho-sc.com">Madhu Konda</a>
+ */
+public class PreparedTxInfo
+{
+
+ // Attributes --------------------------------------------------------------
+
+ private long txId;
+
+ private Xid xid = null;
+
+
+ // Constructors ------------------------------------------------------------
+
+ public PreparedTxInfo(long txId, Xid xid) {
+ setTxId(txId);
+ setXid(xid);
+ }
+
+
+ // Public ------------------------------------------------------------------
+
+ public long getTxId() {
+ return txId;
+ }
+
+ public void setTxId(long txId) {
+ this.txId = txId;
+ }
+
+ public Xid getXid() {
+ return xid;
+ }
+
+ public void setXid(Xid xid) {
+ this.xid = xid;
+ }
+
+
+ // Object overrides --------------------------------------------------------
+
+ public String toString()
+ {
+ return "Tx Id: "+getTxId()+" Xid: "+getXid();
+ }
+}
\ No newline at end of file
Property changes on: branches/Branch_1_0_XARecovery/src/main/org/jboss/messaging/core/tx/PreparedTxInfo.java
___________________________________________________________________
Name: svn:executable
+ *
More information about the jboss-cvs-commits
mailing list