java.lang.Object | |
↳ | org.apache.commons.betwixt.io.id.AbstractIDGenerator |
Known Direct Subclasses |
Abstract superclass for IDGenerator
implementations.
It implements the entire IDGenerator
interface.
When nextId
is called,
this class sets the LastId
property (as well
as returning the value).
Subclasses should override nextIdImpl()
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets last
ID returned. | |||||||||||
Generate next |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses should provide an implementation for this method.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.betwixt.io.IDGenerator
|
Gets last ID
returned.
Generate next ID
.
This method obtains the next ID
from subclass
and then uses this to set the LastId
property.
Subclasses should provide an implementation for this method.
This implementation needs only provide the next ID
value (according to it's algorithm).
Setting the LastId
property can be left to this class.