|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.amber.idgen.IdGenerator
com.caucho.amber.idgen.SequenceIdGenerator
public class SequenceIdGenerator
Generator table.
Constructor Summary | |
---|---|
SequenceIdGenerator(AmberPersistenceUnit manager,
java.lang.String name,
int size)
Creates the table generator. |
Method Summary | |
---|---|
long |
allocateGroup(AmberConnection aConn)
Allocates the next group of ids. |
void |
init(AmberPersistenceUnit amberPersistenceUnit)
Initialize the table. |
Methods inherited from class com.caucho.amber.idgen.IdGenerator |
---|
allocate, getGroupSize, setGroupSize, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceIdGenerator(AmberPersistenceUnit manager, java.lang.String name, int size) throws ConfigException
ConfigException
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |