org.jaffa.util
Class Voucher

java.lang.Object
  extended byorg.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

Constructor Summary
Voucher()
           
 
Method Summary
static String getNext()
          Get the next unique sequence number
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Voucher

public Voucher()
Method Detail

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.