|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.amber.idgen.IdGenerator
public abstract class IdGenerator
Generator table.
| Constructor Summary | |
|---|---|
IdGenerator()
|
|
| Method Summary | |
|---|---|
long |
allocate(AmberConnection aConn)
Allocates the next id. |
abstract long |
allocateGroup(AmberConnection aConn)
Allocates the next group of ids. |
int |
getGroupSize()
Gets the group size. |
void |
setGroupSize(int groupSize)
Sets the group size. |
void |
start()
Starts the generator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdGenerator()
| Method Detail |
|---|
public int getGroupSize()
public void setGroupSize(int groupSize)
public long allocate(AmberConnection aConn)
throws java.sql.SQLException
java.sql.SQLException
public abstract long allocateGroup(AmberConnection aConn)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void start()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||