|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.kernel.impl.persistence.IdGenerator
public class IdGenerator
The IdGenerator is responsible for generating unique ids for entities in the
kernel. The IdGenerator is configured via the IdGeneratorModule
.
The IdGenerator must be loaded after its designated
persistence source
during
startup.
Constructor Summary | |
---|---|
IdGenerator()
|
Method Summary | |
---|---|
void |
configure(PersistenceSource source)
Configures the IdGenerator. |
long |
getHighestPossibleIdInUse(Class<?> clazz)
|
long |
getNumberOfIdsInUse(Class<?> clazz)
|
long |
nextId(Class<?> clazz)
Returns the next unique ID for the entity type represented by clazz . |
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 long nextId(Class<?> clazz)
clazz
.
nextId
in interface EntityIdGenerator
clazz
's entity typepublic long getHighestPossibleIdInUse(Class<?> clazz)
getHighestPossibleIdInUse
in interface EntityIdGenerator
public long getNumberOfIdsInUse(Class<?> clazz)
getNumberOfIdsInUse
in interface EntityIdGenerator
public void configure(PersistenceSource source)
IdGeneratorModule.start()
.
configure
in interface EntityIdGenerator
source
- the persistence source used for id generation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |