db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r159543 - in incubator/jdo/trunk/api20/src/java/javax/jdo/identity: ByteIdentity.java CharIdentity.java IntIdentity.java LongIdentity.java ShortIdentity.java SingleFieldIdentity.java
Date Wed, 30 Mar 2005 23:26:08 GMT
Author: clr
Date: Wed Mar 30 15:26:06 2005
New Revision: 159543

URL: http://svn.apache.org/viewcvs?view=rev&rev=159543
Log:
Replace hard coded colon by SEPARATOR_CHARACTER in String representations of id

Modified:
    incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ByteIdentity.java
    incubator/jdo/trunk/api20/src/java/javax/jdo/identity/CharIdentity.java
    incubator/jdo/trunk/api20/src/java/javax/jdo/identity/IntIdentity.java
    incubator/jdo/trunk/api20/src/java/javax/jdo/identity/LongIdentity.java
    incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ShortIdentity.java
    incubator/jdo/trunk/api20/src/java/javax/jdo/identity/SingleFieldIdentity.java

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ByteIdentity.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ByteIdentity.java?view=diff&r1=159542&r2=159543
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ByteIdentity.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ByteIdentity.java Wed Mar 30 15:26:06
2005
@@ -77,7 +77,7 @@
      * @return the key.
      */
     public String toString() {
-        return getTargetClassName() + ":" + Byte.toString(key);
+        return getTargetClassName() + SEPARATOR_CHARACTER + Byte.toString(key);
     }
 
     /** Determine if the other object represents the same object id.

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/identity/CharIdentity.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/identity/CharIdentity.java?view=diff&r1=159542&r2=159543
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/identity/CharIdentity.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/identity/CharIdentity.java Wed Mar 30 15:26:06
2005
@@ -89,7 +89,7 @@
      * @return the String form of the key
      */
     public String toString () {
-        return getTargetClassName() + ":" + key;
+        return getTargetClassName() + SEPARATOR_CHARACTER + key;
     }
 
     /** Determine if the other object represents the same object id.

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/identity/IntIdentity.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/identity/IntIdentity.java?view=diff&r1=159542&r2=159543
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/identity/IntIdentity.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/identity/IntIdentity.java Wed Mar 30 15:26:06
2005
@@ -75,7 +75,7 @@
      * @return the String form of the key
      */
     public String toString () {
-        return getTargetClassName() + ":" + key;
+        return getTargetClassName() + SEPARATOR_CHARACTER + key;
     }
 
     /** Determine if the other object represents the same object id.

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/identity/LongIdentity.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/identity/LongIdentity.java?view=diff&r1=159542&r2=159543
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/identity/LongIdentity.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/identity/LongIdentity.java Wed Mar 30 15:26:06
2005
@@ -77,7 +77,7 @@
      * @return the String form of the key
      */
     public String toString () {
-        return getTargetClassName() + ":" + key;
+        return getTargetClassName() + SEPARATOR_CHARACTER + key;
     }
 
     /** Determine if the other object represents the same object id.

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ShortIdentity.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ShortIdentity.java?view=diff&r1=159542&r2=159543
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ShortIdentity.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/identity/ShortIdentity.java Wed Mar 30 15:26:06
2005
@@ -77,7 +77,7 @@
      * @return the String form of the key
      */
     public String toString () {
-        return getTargetClassName() + ":" + key;
+        return getTargetClassName() + SEPARATOR_CHARACTER + key;
     }
 
     /** Determine if the other object represents the same object id.

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/identity/SingleFieldIdentity.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/identity/SingleFieldIdentity.java?view=diff&r1=159542&r2=159543
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/identity/SingleFieldIdentity.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/identity/SingleFieldIdentity.java Wed Mar
30 15:26:06 2005
@@ -48,6 +48,11 @@
      */
     protected int hashCode;
 
+    /** The single character that separates the class name from the key value
+     * in String representations of SingleFieldIdentity and its subclasses.
+     */
+    public static final char SEPARATOR_CHARACTER = ':';
+    
     /** Constructor with target class.
      * @param pcClass the class of the target
      * @since 2.0



Mime
View raw message