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, startpublic AmberTableGenerator(AmberPersistenceUnit manager, GeneratorTableType table, java.lang.String name)
public 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