You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2007/02/06 20:56:22 UTC
svn commit: r504264 -
/db/ojb/trunk/src/java/org/apache/ojb/broker/Identity.java
Author: arminw
Date: Tue Feb 6 11:56:21 2007
New Revision: 504264
URL: http://svn.apache.org/viewvc?view=rev&rev=504264
Log:
improve toString
Modified:
db/ojb/trunk/src/java/org/apache/ojb/broker/Identity.java
Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/Identity.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/broker/Identity.java?view=diff&rev=504264&r1=504263&r2=504264
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/Identity.java (original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/Identity.java Tue Feb 6 11:56:21 2007
@@ -64,6 +64,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;
/**
@@ -225,7 +229,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