org.openware.job.ejb
Class KeyGen
java.lang.Object
|
+--org.openware.job.ejb.KeyGen
- Direct Known Subclasses:
- SimpleKeyGen
- public abstract class KeyGen
- extends java.lang.Object
Abstract singleton class for generating primary keys. Subclasses must
implement the nextKey
method. Any method is possible of
generating keys is acceptable.
It is implemented currently as a singleton, which may not be the best
idea.
- Version:
- $Revision: 1.2 $ $Date: 2001/07/04 22:35:07 $
- Author:
- Vincent Sheffer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyGen
public KeyGen()
getInstance
public static KeyGen getInstance()
nextKey
public abstract long nextKey(java.sql.Connection conn,
long numToGet)
throws java.sql.SQLException
Copyright © 2000,2001 Openware. All Rights Reserved.