public class SequenceIdGenerator extends IdGenerator
| Constructor and Description |
|---|
SequenceIdGenerator(AmberPersistenceUnit manager,
java.lang.String name,
int size)
Creates the table generator.
|
| Modifier and Type | Method and Description |
|---|---|
long |
allocateGroup(AmberConnection aConn)
Allocates the next group of ids.
|
void |
init(AmberPersistenceUnit amberPersistenceUnit)
Initialize the table.
|
allocate, getGroupSize, setGroupSize, startpublic SequenceIdGenerator(AmberPersistenceUnit manager, java.lang.String name, int size) throws ConfigException
ConfigExceptionpublic long allocateGroup(AmberConnection aConn) throws java.sql.SQLException
allocateGroup in class IdGeneratorjava.sql.SQLExceptionpublic void init(AmberPersistenceUnit amberPersistenceUnit) throws java.sql.SQLException
java.sql.SQLException