db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r504263 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/Identity.java
Date Tue, 06 Feb 2007 19:56:02 GMT
Author: arminw
Date: Tue Feb  6 11:56:02 2007
New Revision: 504263

URL: http://svn.apache.org/viewvc?view=rev&rev=504263
Log:
improve toString

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?view=diff&rev=504263&r1=504262&r2=504263
==============================================================================
--- 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 Tue Feb 
6 11:56:02 2007
@@ -65,7 +65,6 @@
  * </p>
  * @see org.apache.ojb.broker.IdentityFactory
 
- * @author Thomas Mahler
  * @version $Id$
  */
 public class Identity implements Serializable
@@ -73,6 +72,10 @@
     /** Unique id for serialization purposes. */ 
     private static final long serialVersionUID = 3182285550574178710L;
 
+    private static final String STR_REAL_CLASS = ", real=";
+    private static final String STR_TOPLEVEL_CLASS = "topLevel=";
+    private static final String STR_PK = ", pk=";
+
     private static final int IS_TRANSIENT = 3;
     private static final int IS_PERMANENT = 17;
     /**
@@ -345,7 +348,11 @@
         if (m_stringRepresentation == null)
         {
             final StringBuffer buf = new StringBuffer();
+            buf.append(STR_TOPLEVEL_CLASS);
             buf.append(m_objectsTopLevelClass.getName());
+            buf.append(STR_REAL_CLASS);
+            buf.append((m_objectsRealClass != null ? m_objectsRealClass.getName() : "null"));
+            buf.append(STR_PK);
             for (int i = 0; i < m_pkValues.length; i++)
             {
                 buf.append((i == 0) ? "{" : ",");



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