You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2009/06/09 20:12:02 UTC

[Db-derby Wiki] Trivial Update of "sqlSequences" by SuranJayathilaka

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 );
+    }
+   }
+