db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r432282 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/Identity.java
Date Thu, 17 Aug 2006 16:22:49 GMT
Author: arminw
Date: Thu Aug 17 09:22:49 2006
New Revision: 432282

URL: http://svn.apache.org/viewvc?rev=432282&view=rev
Log:
rename private field

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/Identity.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/Identity.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/Identity.java?rev=432282&r1=432281&r2=432282&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/Identity.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/Identity.java Thu Aug 17
09:22:49 2006
@@ -95,7 +95,7 @@
      */
     private Object[] m_pkValues;
 
-    private final int isTransient;
+    private final int persistenceState;
 
     /*
     the hashcode of different objects has to be unique across different
@@ -113,7 +113,7 @@
      */
     protected Identity()
     {
-        isTransient = IS_TRANSIENT;
+        persistenceState = IS_TRANSIENT;
     }
 
     /**
@@ -134,7 +134,7 @@
         m_objectsTopLevelClass = topLevel;
         m_objectsRealClass = realClass;
         m_pkValues = pkValues;
-        this.isTransient = isTransient ? IS_TRANSIENT : IS_PERMANENT;
+        this.persistenceState = isTransient ? IS_TRANSIENT : IS_PERMANENT;
         checkForPrimaryKeys(null);
     }
 
@@ -154,7 +154,7 @@
         m_objectsTopLevelClass = topLevel;
         m_objectsRealClass = realClass;
         m_pkValues = pkValues;
-        this.isTransient = IS_PERMANENT;
+        this.persistenceState = IS_PERMANENT;
         checkForPrimaryKeys(null);
     }
 
@@ -166,7 +166,7 @@
      */
     public Identity(final Object objectToIdentitify, final PersistenceBroker targetBroker)
     {
-        this.isTransient = IS_PERMANENT;
+        this.persistenceState = IS_PERMANENT;
         init(objectToIdentitify, targetBroker, null);
     }
 
@@ -179,7 +179,7 @@
      */
     public Identity(final Object objectToIdentitify, final PersistenceBroker targetBroker,
final ClassDescriptor cld)
     {
-        this.isTransient = IS_PERMANENT;
+        this.persistenceState = IS_PERMANENT;
         init(objectToIdentitify, targetBroker, cld);
     }
 
@@ -271,7 +271,7 @@
      */
     public boolean isTransient()
     {
-        return isTransient == IS_TRANSIENT;
+        return persistenceState == IS_TRANSIENT;
     }
 
     /**
@@ -352,7 +352,7 @@
                 buf.append(m_pkValues[i]);
             }
             buf.append("}");
-            if(isTransient == IS_TRANSIENT) buf.append("-transient");
+            if(persistenceState == IS_TRANSIENT) buf.append("-transient");
             m_stringRepresentation = buf.toString();
         }
         return m_stringRepresentation;
@@ -399,7 +399,7 @@
         if (obj instanceof Identity)
         {
             final Identity id = (Identity) obj;
-            result = m_objectsTopLevelClass.equals(id.m_objectsTopLevelClass) &&
isTransient == id.isTransient;
+            result = m_objectsTopLevelClass.equals(id.m_objectsTopLevelClass) &&
persistenceState == id.persistenceState;
             if(result)
             {
                 final Object[] otherPkValues = id.m_pkValues;
@@ -435,7 +435,7 @@
         */
         if(m_hashCode == null)
         {
-            int iTotal = isTransient;
+            int iTotal = persistenceState;
             Object obj;
             for (int i = 0; i < m_pkValues.length; i++)
             {



---------------------------------------------------------------------
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