db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r420919 - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states: ModificationState.java StateNewClean.java StateNewDelete.java StateNewDirty.java StateOldDelete.java StateOldDirty.java
Date Tue, 11 Jul 2006 16:40:08 GMT
Author: arminw
Date: Tue Jul 11 09:40:08 2006
New Revision: 420919

URL: http://svn.apache.org/viewvc?rev=420919&view=rev
Log:
introduce new methods

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/ModificationState.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewClean.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDelete.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDirty.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDelete.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDirty.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/ModificationState.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/ModificationState.java?rev=420919&r1=420918&r2=420919&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/ModificationState.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/ModificationState.java
Tue Jul 11 09:40:08 2006
@@ -113,4 +113,24 @@
     {
         return false;
     }
+
+    public boolean isNew()
+    {
+        return false;
+    }
+
+    public boolean isDirty()
+    {
+        return false;
+    }
+
+    public boolean isDelete()
+    {
+        return false;
+    }
+
+    public boolean isClean()
+    {
+        return !isDelete() && !isDirty();
+    }
 }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewClean.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewClean.java?rev=420919&r1=420918&r2=420919&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewClean.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewClean.java
Tue Jul 11 09:40:08 2006
@@ -114,4 +114,9 @@
     {
         mod.doEvictFromCache();
     }
+
+    public boolean isNew()
+    {
+        return true;
+    }
 }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDelete.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDelete.java?rev=420919&r1=420918&r2=420919&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDelete.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDelete.java
Tue Jul 11 09:40:08 2006
@@ -18,7 +18,7 @@
 import org.apache.ojb.odmg.ObjectEnvelope;
 
 /**
- * this state represents new objects which have been mrked for deletion during tx.
+ * this state represents new objects which have been marked for deletion during tx.
  */
 public class StateNewDelete extends ModificationState
 {
@@ -111,5 +111,15 @@
     {
         mod.doEvictFromCache();
         mod.setModificationState(StateTransient.getInstance());
+    }
+
+    public boolean isNew()
+    {
+        return true;
+    }
+
+    public boolean isDelete()
+    {
+        return true;
     }
 }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDirty.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDirty.java?rev=420919&r1=420918&r2=420919&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDirty.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateNewDirty.java
Tue Jul 11 09:40:08 2006
@@ -116,4 +116,13 @@
         mod.doEvictFromCache();
     }
 
+    public boolean isNew()
+    {
+        return true;
+    }
+
+    public boolean isDirty()
+    {
+        return true;
+    }
 }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDelete.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDelete.java?rev=420919&r1=420918&r2=420919&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDelete.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDelete.java
Tue Jul 11 09:40:08 2006
@@ -115,4 +115,9 @@
     {
         mod.doEvictFromCache();
     }
+    
+    public boolean isDelete()
+    {
+        return true;
+    }
 }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDirty.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDirty.java?rev=420919&r1=420918&r2=420919&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDirty.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/states/StateOldDirty.java
Tue Jul 11 09:40:08 2006
@@ -122,4 +122,8 @@
         return true;
     }
 
+    public boolean isDirty()
+    {
+        return true;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message