OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | gotm-commits List | July 2005 Index

<--  Date Index  --> <--  Thread Index  -->

CVS update of ow-transaction/src/java/org/objectweb/transaction (19 files)


    Date: Monday, July 18, 2005 @ 09:30:08
  Author: rouvoy
    Path: /cvsroot/gotm/ow-transaction/src/java/org/objectweb/transaction

   Added: lib/event/EventAbstract.java
          lib/transaction/TransactionStatusTransactionInactive.java
Modified: api/event/Event.java lib/resource/ResourceEventCommit.java
          lib/resource/ResourceEventRollback.java
          lib/resource/ResourceEventVote.java
          lib/synchronization/SynchronizationEventAfterCompletion.java
          lib/synchronization/SynchronizationEventBeforeCompletion.java
          lib/transaction/TransactionStatusCommitted.java
          lib/transaction/TransactionStatusCommitting.java
          lib/transaction/TransactionStatusMarkedRollback.java
          lib/transaction/TransactionStatusNoTransaction.java
          lib/transaction/TransactionStatusPrepared.java
          lib/transaction/TransactionStatusPreparing.java
          lib/transaction/TransactionStatusRolledBack.java
          lib/transaction/TransactionStatusRollingBack.java
          lib/transaction/TransactionStatusTransactionActive.java
          lib/transaction/TransactionStatusUnknown.java
 Removed: lib/event/AbstractEvent.java

* Adding support for JTS compatibility,
* Introducing Local JTS JUnit tests as an example.


---------------------------------------------------------------+
 api/event/Event.java                                          |   17 +
 lib/event/AbstractEvent.java                                  |   80 -------
 lib/event/EventAbstract.java                                  |  109 
++++++++++
 lib/resource/ResourceEventCommit.java                         |   29 +-
 lib/resource/ResourceEventRollback.java                       |    8 
 lib/resource/ResourceEventVote.java                           |    8 
 lib/synchronization/SynchronizationEventAfterCompletion.java  |    8 
 lib/synchronization/SynchronizationEventBeforeCompletion.java |    8 
 lib/transaction/TransactionStatusCommitted.java               |   28 ++
 lib/transaction/TransactionStatusCommitting.java              |   26 +-
 lib/transaction/TransactionStatusMarkedRollback.java          |   26 +-
 lib/transaction/TransactionStatusNoTransaction.java           |   26 +-
 lib/transaction/TransactionStatusPrepared.java                |   26 +-
 lib/transaction/TransactionStatusPreparing.java               |   26 +-
 lib/transaction/TransactionStatusRolledBack.java              |   26 +-
 lib/transaction/TransactionStatusRollingBack.java             |   26 +-
 lib/transaction/TransactionStatusTransactionActive.java       |   26 +-
 lib/transaction/TransactionStatusTransactionInactive.java     |   75 ++++++
 lib/transaction/TransactionStatusUnknown.java                 |   26 +-
 19 files changed, 443 insertions(+), 161 deletions(-)


Index: ow-transaction/src/java/org/objectweb/transaction/api/event/Event.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/api/event/Event.java:1.6 
ow-transaction/src/java/org/objectweb/transaction/api/event/Event.java:1.7
--- 
ow-transaction/src/java/org/objectweb/transaction/api/event/Event.java:1.6  
Mon May 23 13:20:58 2005
+++ ow-transaction/src/java/org/objectweb/transaction/api/event/Event.java    
  Mon Jul 18 09:30:07 2005
@@ -23,7 +23,7 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: Event.java,v 1.6 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: Event.java,v 1.7 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.api.event;
 
@@ -33,8 +33,8 @@
  * Description of an Event.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
  * @created 5 janv. 2005
- * @modified $Date: 2005/05/23 11:20:58 $
- * @version $Revision: 1.6 $
+ * @modified $Date: 2005/07/18 07:30:07 $
+ * @version $Revision: 1.7 $
  * @fractal.itf name="event"
  */
 public interface Event 
@@ -56,7 +56,18 @@
     public Event getEvent();
     
     /**
+     * Provides the instance of the underlying event.
+     * @return the event instance.
+     */
+    public Event getLeavingEvent();
+
+    /**
      * @return the label of the event.
      */
     public String getLabel();
+    
+    /**
+     * @return true is the event is a leaving state.
+     */
+    public boolean isLeaving();
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/event/AbstractEvent.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/event/AbstractEvent.java:1.7
 
ow-transaction/src/java/org/objectweb/transaction/lib/event/AbstractEvent.java:removed
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/event/AbstractEvent.java:1.7
  Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/event/AbstractEvent.java
      Mon Jul 18 09:30:08 2005
@@ -1,80 +0,0 @@
-/*====================================================================
- 
- ObjectWeb Transaction Working Group API
- Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
- Contact: http://www.objectweb.org
- 
- This library 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 any later version.
- 
- This library 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 library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
- USA
- 
- Initial developer(s): Romain Rouvoy.
- Contributor(s): ______________________________________.
- 
- ---------------------------------------------------------------------
- $Id: AbstractEvent.java,v 1.7 2005/05/23 11:20:58 rouvoy Exp $
- ====================================================================*/
-
-package org.objectweb.transaction.lib.event;
-
-import java.io.InvalidObjectException;
-import java.io.ObjectStreamException;
-
-import org.objectweb.transaction.api.event.Event;
-
-/**
- * Base class for event manipulation.
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.7 $
- */
-public abstract class AbstractEvent 
-implements Event 
-{
-    private final int value = toString().hashCode();
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.transaction.api.event.Event#getValue()
-     */
-    public Integer getValue() { return new Integer(this.value) ; } 
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.transaction.api.event.Event#getEvent()
-     */
-    public abstract Event getEvent() ;
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.transaction.api.event.Event#getLabel()
-     */
-    public String getLabel() {
-        return toString();
-    }
-    
-    /* (non-Javadoc)
-     * @see java.lang.Object#hashCode()
-     */
-    public int hashCode() {
-        return this.value;
-    }
-    
-    /**
-     * Serialize the event.
-     * @return the event deserialized.
-     * @throws ObjectStreamException is thrown if getEvent() == null.
-     */
-    Object readResolve() throws ObjectStreamException {
-        Object obj = getEvent();
-        if (obj == null) throw new InvalidObjectException("Event is 
undefined");
-        return obj;
-    }
-}
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/event/EventAbstract.java
diff -u /dev/null 
ow-transaction/src/java/org/objectweb/transaction/lib/event/EventAbstract.java:1.1
--- /dev/null   Mon Jul 18 09:30:08 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/event/EventAbstract.java
      Mon Jul 18 09:30:07 2005
@@ -0,0 +1,109 @@
+/*====================================================================
+ 
+ ObjectWeb Transaction Working Group API
+ Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
+ Contact: http://www.objectweb.org
+ 
+ This library 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 any later version.
+ 
+ This library 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 library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
+ USA
+ 
+ Initial developer(s): Romain Rouvoy.
+ Contributor(s): ______________________________________.
+ 
+ ---------------------------------------------------------------------
+ $Id: EventAbstract.java,v 1.1 2005/07/18 07:30:07 rouvoy Exp $
+ ====================================================================*/
+
+package org.objectweb.transaction.lib.event;
+
+import java.io.InvalidObjectException;
+import java.io.ObjectStreamException;
+
+import org.objectweb.transaction.api.event.Event;
+
+/**
+ * Base class for event manipulation.
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class EventAbstract 
+implements Event 
+{
+    private final int value = toString().hashCode();
+    private final boolean isLeaving ;
+    
+    /**
+     * @param leaving
+     */
+    protected EventAbstract(boolean leaving) {
+        isLeaving = leaving;
+    }
+
+    /**
+     * 
+     */
+    protected EventAbstract() {
+        this(false);
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getValue()
+     */
+    public Integer getValue() { return new Integer(this.value) ; } 
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getEvent()
+     */
+    public abstract Event getEvent() ;
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLabel()
+     */
+    public String getLabel() {
+        return toString();
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#isLeaving()
+     */
+    public boolean isLeaving() {
+        return isLeaving;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return getEvent() ;
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.Object#hashCode()
+     */
+    public int hashCode() {
+        return this.value;
+    }
+    
+    /**
+     * Serialize the event.
+     * @return the event deserialized.
+     * @throws ObjectStreamException is thrown if getEvent() == null.
+     */
+    Object readResolve() throws ObjectStreamException {
+        Object obj = getEvent();
+        if (obj == null) throw new InvalidObjectException("Event is 
undefined");
+        return obj;
+    }
+}
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java:1.6
 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java:1.7
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java:1.6
 Mon Jul 11 10:27:01 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventCommit.java
     Mon Jul 18 09:30:07 2005
@@ -23,38 +23,45 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: ResourceEventCommit.java,v 1.6 2005/07/11 08:27:01 rouvoy Exp $
+ $Id: ResourceEventCommit.java,v 1.7 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.resource;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.resource.ResourceEvent;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 
 /**
  * ResourceEvent for the commit operation.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
  */
 public class ResourceEventCommit
-extends AbstractEvent
+extends EventAbstract
 implements ResourceEvent 
 {
     /** Object value of the event <i>Commit</i>. */
-    public final static ResourceEvent event = new ResourceEventCommit();
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.transaction.api.event.Event#getEvent()
+    public final static ResourceEvent event = new ResourceEventCommit(false);
+
+    /**
+     * @param b
      */
-    public Event getEvent() {
-        return event;
+    public ResourceEventCommit(boolean b) {
+        super(b);
     }
-    
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
     public String toString() {
         return "Commit Decision" ;
     }    
+
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getEvent()
+     */
+    public Event getEvent() {
+        return event;
+    }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java:1.6
 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java:1.7
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java:1.6
       Mon Jul 11 10:27:01 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventRollback.java
   Mon Jul 18 09:30:07 2005
@@ -23,21 +23,21 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: ResourceEventRollback.java,v 1.6 2005/07/11 08:27:01 rouvoy Exp $
+ $Id: ResourceEventRollback.java,v 1.7 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.resource;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.resource.ResourceEvent;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * ResourceEvent representing the rollback operation.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
  */
 public class ResourceEventRollback 
-extends AbstractEvent
+extends EventAbstract
 implements ResourceEvent 
 {
     /** Object value of the event <i>Rollback</i>. */
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java:1.6
 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java:1.7
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java:1.6
   Mon Jul 11 10:27:01 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/resource/ResourceEventVote.java
       Mon Jul 18 09:30:07 2005
@@ -23,22 +23,22 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: ResourceEventVote.java,v 1.6 2005/07/11 08:27:01 rouvoy Exp $
+ $Id: ResourceEventVote.java,v 1.7 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.resource;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.resource.ResourceEvent;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 
 /**
  * ResourceEvent for the prepare operation.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
  */
 public class ResourceEventVote
-extends AbstractEvent
+extends EventAbstract
 implements ResourceEvent 
 {
     /** Object value of the event <i>ResourceVote</i>. */
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventAfterCompletion.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventAfterCompletion.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventAfterCompletion.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventAfterCompletion.java:1.5
  Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventAfterCompletion.java
      Mon Jul 18 09:30:07 2005
@@ -23,21 +23,21 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: SynchronizationEventAfterCompletion.java,v 1.5 2005/05/23 11:20:58 
rouvoy Exp $
+ $Id: SynchronizationEventAfterCompletion.java,v 1.6 2005/07/18 07:30:07 
rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.synchronization;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.synchronization.SynchronizationEvent;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * SynchronizationEvent raised after the completion.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class SynchronizationEventAfterCompletion
-extends AbstractEvent
+extends EventAbstract
 implements SynchronizationEvent 
 {
     /** Object value of the event <i>After Completion</i>. */
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventBeforeCompletion.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventBeforeCompletion.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventBeforeCompletion.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventBeforeCompletion.java:1.5
 Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/synchronization/SynchronizationEventBeforeCompletion.java
     Mon Jul 18 09:30:07 2005
@@ -23,21 +23,21 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: SynchronizationEventBeforeCompletion.java,v 1.5 2005/05/23 11:20:58 
rouvoy Exp $
+ $Id: SynchronizationEventBeforeCompletion.java,v 1.6 2005/07/18 07:30:07 
rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.synchronization;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.synchronization.SynchronizationEvent;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * SynchronizationEvent raised before the completion.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class SynchronizationEventBeforeCompletion
-extends AbstractEvent
+extends EventAbstract
 implements SynchronizationEvent 
 {
     /** Object value of the event <i>Before Completion</i>. */
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitted.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitted.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitted.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitted.java:1.5
       Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitted.java
   Mon Jul 18 09:30:07 2005
@@ -23,27 +23,36 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusCommitted.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: TransactionStatusCommitted.java,v 1.6 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 
 /**
  * TransactionStatus after the completion of the transaction.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusCommitted 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus
 {
     /** Object value for the status <i>Committed</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusCommitted();
-    
+    public final static TransactionStatus status = new 
TransactionStatusCommitted(false);
+    /** Object value for the status <i>Committed</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusCommitted(true);
+
+    /**
+     * @param b
+     */
+    public TransactionStatusCommitted(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -56,5 +65,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitting.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitting.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitting.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitting.java:1.5
      Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusCommitting.java
  Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusCommitting.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: TransactionStatusCommitting.java,v 1.6 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus during the completion of the transaction.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusCommitting 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value for the status <i>Committing</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusCommitting();
+    public final static TransactionStatus status = new 
TransactionStatusCommitting(false);
+    /** Object value for the status <i>Committing</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusCommitting(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusCommitting(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusMarkedRollback.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusMarkedRollback.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusMarkedRollback.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusMarkedRollback.java:1.5
  Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusMarkedRollback.java
      Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusMarkedRollback.java,v 1.5 2005/05/23 11:20:58 rouvoy 
Exp $
+ $Id: TransactionStatusMarkedRollback.java,v 1.6 2005/07/18 07:30:07 rouvoy 
Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus when transaction is marked for rollback.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusMarkedRollback 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value for the status <i>Marked Rollack</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusMarkedRollback();
+    public final static TransactionStatus status = new 
TransactionStatusMarkedRollback(false);
+    /** Object value for the status <i>Marked Rollack</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusMarkedRollback(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusMarkedRollback(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusNoTransaction.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusNoTransaction.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusNoTransaction.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusNoTransaction.java:1.5
   Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusNoTransaction.java
       Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusNoTransaction.java,v 1.5 2005/05/23 11:20:58 rouvoy 
Exp $
+ $Id: TransactionStatusNoTransaction.java,v 1.6 2005/07/18 07:30:07 rouvoy 
Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus when no transaction is active.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusNoTransaction 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus
 {
     /** Object value of the status <i>No Transaction</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusNoTransaction();
+    public final static TransactionStatus status = new 
TransactionStatusNoTransaction(false);
+    /** Object value of the status <i>No Transaction</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusNoTransaction(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusNoTransaction(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPrepared.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPrepared.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPrepared.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPrepared.java:1.5
        Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPrepared.java
    Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusPrepared.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: TransactionStatusPrepared.java,v 1.6 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus after the first step of the validation process.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusPrepared 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value of the status <i>Prepared</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusPrepared();
+    public final static TransactionStatus status = new 
TransactionStatusPrepared(false);
+    /** Object value of the status <i>Prepared</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusPrepared(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusPrepared(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPreparing.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPreparing.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPreparing.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPreparing.java:1.5
       Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusPreparing.java
   Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusPreparing.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: TransactionStatusPreparing.java,v 1.6 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus during the first step of the validation process.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusPreparing 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value  for the status <i>Preparing</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusPreparing();
+    public final static TransactionStatus status = new 
TransactionStatusPreparing(false);
+    /** Object value  for the status <i>Preparing</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusPreparing(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusPreparing(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRolledBack.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRolledBack.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRolledBack.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRolledBack.java:1.5
      Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRolledBack.java
  Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusRolledBack.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: TransactionStatusRolledBack.java,v 1.6 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus after the completion of the transaction.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusRolledBack 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value for the status <i>Rolled Back</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusRolledBack();
+    public final static TransactionStatus status = new 
TransactionStatusRolledBack(false);
+    /** Object value for the status <i>Rolled Back</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusRolledBack(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusRolledBack(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -56,4 +65,11 @@
     public Event getEvent() {
         return status;
     }   
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
+    }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRollingBack.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRollingBack.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRollingBack.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRollingBack.java:1.5
     Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusRollingBack.java
 Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusRollingBack.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp 
$
+ $Id: TransactionStatusRollingBack.java,v 1.6 2005/07/18 07:30:07 rouvoy Exp 
$
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus during the completion of the transaction.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusRollingBack 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value for the status <i>Rolling Back</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusRollingBack();
+    public final static TransactionStatus status = new 
TransactionStatusRollingBack(false);
+    /** Object value for the status <i>Rolling Back</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusRollingBack(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusRollingBack(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionActive.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionActive.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionActive.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionActive.java:1.5
       Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionActive.java
   Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusTransactionActive.java,v 1.5 2005/05/23 11:20:58 
rouvoy Exp $
+ $Id: TransactionStatusTransactionActive.java,v 1.6 2005/07/18 07:30:07 
rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus during the activity of the transaction.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusTransactionActive 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value for the status <i>Transaction Active</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusTransactionActive();
+    public final static TransactionStatus status = new 
TransactionStatusTransactionActive(false);
+    /** Object value for the status <i>Transaction Active</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusTransactionActive(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusTransactionActive(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionInactive.java
diff -u /dev/null 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionInactive.java:1.1
--- /dev/null   Mon Jul 18 09:30:08 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusTransactionInactive.java
 Mon Jul 18 09:30:07 2005
@@ -0,0 +1,75 @@
+/*====================================================================
+ 
+ ObjectWeb Transaction Working Group API
+ Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
+ Contact: http://www.objectweb.org
+ 
+ This library 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 any later version.
+ 
+ This library 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 library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
+ USA
+ 
+ Initial developer(s): Romain Rouvoy.
+ Contributor(s): ______________________________________.
+ 
+ ---------------------------------------------------------------------
+ $Id: TransactionStatusTransactionInactive.java,v 1.1 2005/07/18 07:30:07 
rouvoy Exp $
+ ====================================================================*/
+package org.objectweb.transaction.lib.transaction;
+
+import org.objectweb.transaction.api.event.Event;
+import org.objectweb.transaction.api.transaction.TransactionStatus;
+import org.objectweb.transaction.lib.event.EventAbstract;
+
+/**
+ * TransactionStatus during the inactivity of the transaction.
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
+ * @version $Revision: 1.1 $
+ */
+public class TransactionStatusTransactionInactive 
+extends EventAbstract
+implements TransactionStatus 
+{
+    /** Object value for the status <i>Transaction Active</i>. */
+    public final static TransactionStatus status = new 
TransactionStatusTransactionInactive(false);
+    /** Object value for the status <i>Transaction Active</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusTransactionInactive(true);
+    
+    /**
+     * @param b
+     */
+    public TransactionStatusTransactionInactive(boolean b) {
+        super(b);
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.Object#toString()
+     */
+    public String toString(){
+        return "Transaction Inactive" ;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getEvent()
+     */
+    public Event getEvent() {
+        return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
+    }
+}
Index: 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusUnknown.java
diff -u 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusUnknown.java:1.5
 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusUnknown.java:1.6
--- 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusUnknown.java:1.5
 Mon May 23 13:20:58 2005
+++ 
ow-transaction/src/java/org/objectweb/transaction/lib/transaction/TransactionStatusUnknown.java
     Mon Jul 18 09:30:07 2005
@@ -23,26 +23,35 @@
  Contributor(s): ______________________________________.
  
  ---------------------------------------------------------------------
- $Id: TransactionStatusUnknown.java,v 1.5 2005/05/23 11:20:58 rouvoy Exp $
+ $Id: TransactionStatusUnknown.java,v 1.6 2005/07/18 07:30:07 rouvoy Exp $
  ====================================================================*/
 package org.objectweb.transaction.lib.transaction;
 
 import org.objectweb.transaction.api.event.Event;
 import org.objectweb.transaction.api.transaction.TransactionStatus;
-import org.objectweb.transaction.lib.event.AbstractEvent;
+import org.objectweb.transaction.lib.event.EventAbstract;
 
 /**
  * TransactionStatus when the transaction is in an unknown state.
  * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class TransactionStatusUnknown 
-extends AbstractEvent
+extends EventAbstract
 implements TransactionStatus 
 {
     /** Object value for the status <i>Unknown</i>. */
-    public final static TransactionStatus status = new 
TransactionStatusUnknown();
+    public final static TransactionStatus status = new 
TransactionStatusUnknown(false);
+    /** Object value for the status <i>Unknown</i>. */
+    public final static TransactionStatus leaves = new 
TransactionStatusUnknown(true);
     
+    /**
+     * @param b
+     */
+    public TransactionStatusUnknown(boolean b) {
+        super(b);
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#toString()
      */
@@ -55,5 +64,12 @@
      */
     public Event getEvent() {
         return status;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.transaction.api.event.Event#getLeavingEvent()
+     */
+    public Event getLeavingEvent() {
+        return leaves;
     }
 }



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.