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, start
public SequenceIdGenerator(AmberPersistenceUnit manager, java.lang.String name, int size) throws ConfigException
ConfigException
public long allocateGroup(AmberConnection aConn) throws java.sql.SQLException
allocateGroup
in class IdGenerator
java.sql.SQLException
public void init(AmberPersistenceUnit amberPersistenceUnit) throws java.sql.SQLException
java.sql.SQLException