org.objectweb.jorm.facility.naming.generator
Interface LongGen
- All Known Implementing Classes:
- LongGenIncr
- public interface LongGen
Provides a generator of long identifiers and ensures that allocated ones are
never proposed again (allocation information is made persistent).
- Author:
- P. D?chamboux
|
Method Summary |
long |
genId()
Generates a new long identifier. |
void |
init(java.lang.String name,
PClassMapping pcm,
LongGenMgr mgr)
Initializes this long generator. |
init
public void init(java.lang.String name,
PClassMapping pcm,
LongGenMgr mgr)
throws PException
- Initializes this long generator. Verifies if it already exists and if
not, creates it.
- Parameters:
name - The name identifier associated with this long generator.pcm - The associated PClassMapping.mgr - The manager associated with this generator.
genId
public long genId()
throws PException
- Generates a new long identifier.
- Returns:
- The new identifier.