|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.id.dbid.DBIDGenerator
public class DBIDGenerator
| Field Summary | |
|---|---|
static java.lang.String |
SERVICE_ID
|
static java.lang.String |
VM_ID
|
| Method Summary | |
|---|---|
long |
getID(java.lang.String context)
Call to get a unique id for the given context and by default the the id numbers cannot be rolled over and reused. |
long |
getID(java.lang.String context,
boolean enableRollOver)
call to get a unique id for the given context and pass true if the id numbers can be rolled over and reused. |
static DBIDGenerator |
getInstance()
|
void |
setCacheBlockSize(java.lang.String context,
long cache)
Call to set the incremental block size for a specific context. |
void |
setUseMemoryIDGeneration()
Call when the persistent storage of ID's is not to be used. |
void |
setUseMemoryIDGeneration(boolean useInMemory)
Call to switch whether persistent storage of ID's is to be used. |
void |
shutDown()
Call when the DBIDGenerator is no longer needed and the database connections can be closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VM_ID
public static final java.lang.String SERVICE_ID
| Method Detail |
|---|
public long getID(java.lang.String context,
boolean enableRollOver)
throws DBIDGeneratorException
context - that identifies a unique entityenableRollOver - is true if the ids can reused
DBIDGeneratorException
public long getID(java.lang.String context)
throws DBIDGeneratorException
context - that identifies a unique entity
DBIDGeneratorException
public void setCacheBlockSize(java.lang.String context,
long cache)
throws DBIDGeneratorException
context - that identifies a unique entitycache - is the size of the blocks to use
DBIDGeneratorExceptionpublic void setUseMemoryIDGeneration()
public void setUseMemoryIDGeneration(boolean useInMemory)
useInMemory - whether or not to use in Memory ID generationpublic void shutDown()
public static DBIDGenerator getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||