openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r826951 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/
Date Tue, 20 Oct 2009 04:49:14 GMT
Author: ppoddar
Date: Tue Oct 20 04:49:13 2009
New Revision: 826951

URL: http://svn.apache.org/viewvc?rev=826951&view=rev
Log:
OPENJPA-1085: Add toString() to PCStates

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECleanState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECopyState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDeletedState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDirtyState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ENonTransState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/HollowState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCleanState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedFlushedState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDirtyState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewDeletedState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedFlushedState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewProvisionalState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDeletedState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDirtyState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransNewState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TCleanState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TDirtyState.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TransientState.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECleanState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECleanState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECleanState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECleanState.java
Tue Oct 20 04:49:13 2009
@@ -26,6 +26,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class ECleanState
     extends PCState {
 
@@ -82,5 +83,9 @@
     boolean isPersistent() {
         return true;
     }
+    
+    public String toString() {
+        return "Embedded-Clean";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECopyState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECopyState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECopyState.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ECopyState.java Tue
Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class ECopyState
     extends PCState {
 
@@ -80,4 +81,8 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Embedded-Copy";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDeletedState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDeletedState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDeletedState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDeletedState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class EDeletedState
     extends PCState {
 
@@ -70,5 +71,9 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Embedded-Deleted";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDirtyState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDirtyState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDirtyState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/EDirtyState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class EDirtyState
     extends PCState {
 
@@ -86,5 +87,9 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Embedded-Dirty";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ENonTransState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ENonTransState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ENonTransState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ENonTransState.java
Tue Oct 20 04:49:13 2009
@@ -26,6 +26,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class ENonTransState
     extends PCState {
 
@@ -73,5 +74,9 @@
     boolean isPersistent() {
         return true;
     }
+    
+    public String toString() {
+        return "Embedded-Nontransactional";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/HollowState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/HollowState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/HollowState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/HollowState.java
Tue Oct 20 04:49:13 2009
@@ -28,6 +28,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class HollowState
     extends PCState {
 
@@ -79,5 +80,9 @@
     boolean isPersistent() {
         return true;
     }
+    
+    public String toString() {
+        return "Hollow";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCState.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCState.java Tue
Oct 20 04:49:13 2009
@@ -37,6 +37,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 public class PCState
     implements Serializable {
 
@@ -143,20 +144,17 @@
     /**
      * Persistent-New-Flushed-Deleted
      */
-    public static final PCState PNEWFLUSHEDDELETED =
-        new PNewFlushedDeletedState();
+    public static final PCState PNEWFLUSHEDDELETED = new PNewFlushedDeletedState();
 
     /**
      * Persistent-New-Flushed-Deleted-Flushed
      */
-    public static final PCState PNEWFLUSHEDDELETEDFLUSHED =
-        new PNewFlushedDeletedFlushedState();
+    public static final PCState PNEWFLUSHEDDELETEDFLUSHED = new PNewFlushedDeletedFlushedState();
 
     /**
      * Persistent-Deleted-Flushed
      */
-    public static final PCState PDELETEDFLUSHED =
-        new PDeletedFlushedState();
+    public static final PCState PDELETEDFLUSHED = new PDeletedFlushedState();
 
     private static Localizer _loc = Localizer.forPackage(PCState.class);
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCleanState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCleanState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCleanState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCleanState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class PCleanState
     extends PCState {
 
@@ -81,5 +82,9 @@
     boolean isPersistent() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-Clean";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedFlushedState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedFlushedState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedFlushedState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedFlushedState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Patrick Linskey
  */
+@SuppressWarnings("serial")
 class PDeletedFlushedState
     extends PDeletedState {
 
@@ -36,4 +37,8 @@
         context.eraseFlush();
         return PNEW;
     }
+    
+    public String toString() {
+        return "Persistent-Deleted-Flushed";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDeletedState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class PDeletedState
     extends PCState {
 
@@ -91,4 +92,8 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-Deleted";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDirtyState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDirtyState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDirtyState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PDirtyState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class PDirtyState
     extends PCState {
 
@@ -90,5 +91,9 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-Dirty";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewDeletedState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewDeletedState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewDeletedState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewDeletedState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class PNewDeletedState
     extends PCState {
 
@@ -88,5 +89,9 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-New-Deleted";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedFlushedState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedFlushedState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedFlushedState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedFlushedState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Patrick Linskey
  */
+@SuppressWarnings("serial")
 class PNewFlushedDeletedFlushedState
     extends PNewFlushedDeletedState {
 
@@ -35,4 +36,8 @@
         context.eraseFlush();
         return PNEW;
     }
+    
+    public String toString() {
+        return "Persistent-New-Flushed-Deleted-Flushed";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewFlushedDeletedState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Patrick Linskey
  */
+@SuppressWarnings("serial")
 class PNewFlushedDeletedState
     extends PCState {
 
@@ -91,4 +92,8 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-New-Flushed-Deleted";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewProvisionalState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewProvisionalState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewProvisionalState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewProvisionalState.java
Tue Oct 20 04:49:13 2009
@@ -26,6 +26,7 @@
  * @author Steve Kim
  * @author: Abe White
  */
+@SuppressWarnings("serial")
 class PNewProvisionalState
     extends PCState {
 
@@ -90,4 +91,8 @@
     boolean isProvisional() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-New-Provisional";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewState.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNewState.java Tue
Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class PNewState
     extends PCState {
 
@@ -90,4 +91,8 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-New";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDeletedState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDeletedState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDeletedState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDeletedState.java
Tue Oct 20 04:49:13 2009
@@ -24,6 +24,7 @@
  *
  * @author Steve Kim
  */
+@SuppressWarnings("serial")
 public class PNonTransDeletedState
     extends PCState {
 
@@ -76,4 +77,8 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-Notransactional-Deleted";
+    }
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDirtyState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDirtyState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDirtyState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransDirtyState.java
Tue Oct 20 04:49:13 2009
@@ -26,6 +26,7 @@
  *
  * @author Steve Kim
  */
+@SuppressWarnings("serial")
 class PNonTransDirtyState
     extends PCState {
 
@@ -65,5 +66,9 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-Notransactional-Dirty";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransNewState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransNewState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransNewState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransNewState.java
Tue Oct 20 04:49:13 2009
@@ -24,6 +24,7 @@
  *
  * @author Steve Kim
  */
+@SuppressWarnings("serial")
 class PNonTransNewState
     extends PCState {
 
@@ -59,5 +60,9 @@
     boolean isPendingTransactional() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-Notransactional-New";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PNonTransState.java
Tue Oct 20 04:49:13 2009
@@ -30,6 +30,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class PNonTransState
     extends PCState {
 
@@ -118,5 +119,9 @@
     boolean isPersistent() {
         return true;
     }
+    
+    public String toString() {
+        return "Persistent-Notransactional";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TCleanState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TCleanState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TCleanState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TCleanState.java
Tue Oct 20 04:49:13 2009
@@ -26,6 +26,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class TCleanState
     extends PCState {
 
@@ -59,5 +60,9 @@
         boolean mutate) {
         return TDIRTY;
     }
+    
+    public String toString() {
+        return "Transient-Clean";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TDirtyState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TDirtyState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TDirtyState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TDirtyState.java
Tue Oct 20 04:49:13 2009
@@ -25,6 +25,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class TDirtyState
     extends PCState {
 
@@ -70,5 +71,9 @@
     boolean isDirty() {
         return true;
     }
+    
+    public String toString() {
+        return "Transient-Dirty";
+    }
 }
 

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TransientState.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TransientState.java?rev=826951&r1=826950&r2=826951&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TransientState.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/TransientState.java
Tue Oct 20 04:49:13 2009
@@ -26,6 +26,7 @@
  *
  * @author Abe White
  */
+@SuppressWarnings("serial")
 class TransientState
     extends PCState {
 
@@ -36,4 +37,8 @@
         context.getBroker().setStateManager(context.getId(),
             context, BrokerImpl.STATUS_TRANSIENT);
     }
+    
+    public String toString() {
+        return "Transient";
+    }
 }



Mime
View raw message