org.jaffa.util
Class Voucher
java.lang.Object
org.jaffa.util.Voucher
- public class Voucher
- extends Object
To help save objects that have a technical key, this routine can voucher a
unique string on length 20. It will be unique between sucessive retarts of the JVM
- Version:
- 1.0
- Author:
- paule
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Voucher
public Voucher()
getNext
public static String getNext()
- Get the next unique sequence number
- Returns:
- A unique string of length 20. Typically the first 13 chars represent the
current date/time, and the following 7 are an index counter.
main
public static void main(String[] args)
Copyright © 2002-2004 JAFFA Project.