return a monotonically increasing number.
This class provides a thread safe way of generating unique
numbers. It is used in the TDS driver to help generate unique
names for temporary stored procedures and temporary tables.
author: Craig Spannring version: $Id: UniqueId.java,v 1.2 2007-10-19 13:23:55 sinisa Exp $
public static synchronized long getUniqueId()(Code)
return a unique number.
The number is unique for a given invocation of the JVM. Currently
the number is monotonically increasing, but I make no guarantees
that it will be that way in future releases.
unique number