Package com.db4o.internal.ids
Class SequentialIdGenerator
- java.lang.Object
-
- com.db4o.internal.ids.SequentialIdGenerator
-
public class SequentialIdGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SequentialIdGenerator(Function4<java.lang.Integer,java.lang.Integer> findFreeId, int minValidId, int maxValidId)
SequentialIdGenerator(Function4<java.lang.Integer,java.lang.Integer> findFreeId, int initialValue, int minValidId, int maxValidId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDirty()
int
marshalledLength()
int
newId()
int
persistentGeneratorValue()
void
read(ByteArrayBuffer buffer)
void
setClean()
void
write(ByteArrayBuffer buffer)
-
-
-
Constructor Detail
-
SequentialIdGenerator
public SequentialIdGenerator(Function4<java.lang.Integer,java.lang.Integer> findFreeId, int initialValue, int minValidId, int maxValidId)
-
SequentialIdGenerator
public SequentialIdGenerator(Function4<java.lang.Integer,java.lang.Integer> findFreeId, int minValidId, int maxValidId)
-
-
Method Detail
-
read
public void read(ByteArrayBuffer buffer)
-
write
public void write(ByteArrayBuffer buffer)
-
persistentGeneratorValue
public int persistentGeneratorValue()
-
newId
public int newId()
-
marshalledLength
public int marshalledLength()
-
isDirty
public boolean isDirty()
-
setClean
public void setClean()
-
-