com.sun.j2ee.blueprints.customer.order.ejb
Class UUIDGenerator

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.customer.order.ejb.UUIDGenerator

public class UUIDGenerator
extends java.lang.Object
implements java.io.Serializable

This class is used to generate unique primary keys for OrderEJB. Used by the OrderDAOCS.java

See Also:
OrderDAOCS, Serialized Form

Constructor Summary
UUIDGenerator()
           
 
Method Summary
static int nextSeqNum(java.sql.Connection dbConnection)
          This method gets the next sequence number and updates the sequence number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDGenerator

public UUIDGenerator()
Method Detail

nextSeqNum

public static int nextSeqNum(java.sql.Connection dbConnection)
                      throws OrderDAOException
This method gets the next sequence number and updates the sequence number. A database is used to store the sequence number.
Returns:
the next sequence number


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.