public class AmberTableGenerator extends IdGenerator
Constructor and Description |
---|
AmberTableGenerator(AmberPersistenceUnit manager,
GeneratorTableType table,
java.lang.String name)
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 AmberTableGenerator(AmberPersistenceUnit manager, GeneratorTableType table, java.lang.String name)
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