Author: arminw
Date: Thu Oct  5 13:31:50 2006
New Revision: 453367

URL: http://svn.apache.org/viewvc?view=rev&rev=453367
Log:
add method to create deprecated GUID objects

Modified:
    db/ojb/trunk/src/java/org/apache/ojb/broker/util/GUIDFactory.java

Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/util/GUIDFactory.java
URL: 
http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/broker/util/GUIDFactory.java?view=diff&rev=453367&r1=453366&r2=453367
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/util/GUIDFactory.java (original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/util/GUIDFactory.java Thu Oct  
5 13:31:50 2006
@@ -37,10 +37,14 @@
     private static long WAIT_PERIOD = 100;

     private static long lastTime = System.currentTimeMillis();

     private static short lastCount = Short.MIN_VALUE;

-    /** the end piece of the GUID */

+    /**

+     * the end piece of the GUID

+     */

     private static String endPiece;

 

-    /** holds the hostname of the local machine. */

+    /**

+     * holds the hostname of the local machine.

+     */

     private static String localIPAddress;

 

     /**

@@ -70,7 +74,9 @@
     {

     }

 

-    /** Returns the next GUID string. */

+    /**

+     * Returns the next GUID string.

+     */

     public String next()

     {

         short count;

@@ -114,5 +120,13 @@
             count = lastCount++;

         }

         return count + endPiece;

+    }

+

+    /**

+     * Returns the next [EMAIL PROTECTED] GUID} object.

+     */

+    public GUID nextGUID()

+    {

+        return new GUID(next());

     }

 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to