db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Trivial Update of "sqlSequences" by SuranJayathilaka
Date Tue, 09 Jun 2009 18:12:02 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by SuranJayathilaka:
http://wiki.apache.org/db-derby/sqlSequences

------------------------------------------------------------------------------
  
  Functional Specification : [http://issues.apache.org/jira/secure/attachment/12401852/SequenceGenerator.html
Spec]
  
+  a. Generating UUIDs
+   import org.apache.derby.impl.services.uuid.BasicUUID;
+   public class UUIDMaker
+   {
+    public static void main( String[] args )
+       throws Exception
+    {
+       BasicUUID uuid = new BasicUUID( Runtime.getRuntime().freeMemory(), System.currentTimeMillis(),
(int) 2551218188L );
+       System.out.println( uuid );
+    }
+   }
+ 

Mime
View raw message