com.compoze.ejb
Interface IPrimaryKeyGenerator
- All Known Implementing Classes:
- TimeAndIPPKGenerator, SystemTimePKGenerator
- public interface IPrimaryKeyGenerator
Classes that implement this interface are able to generate unique primary
keys. No two calls to the methods in this interface (within the confines
of reason) will generate the same result.
Method Summary |
long |
getLong(User caller,
java.lang.Class ejbClass)
Gets a unique long primary key. |
getLong
public long getLong(User caller,
java.lang.Class ejbClass)
- Gets a unique long primary key.
- Parameters:
caller
- the callerejbClass
- the class for which the primary key is being
generated- Returns:
- a unique long primary key
Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.