public interface IdGenerator
extends org.apache.avalon.framework.component.Component
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROLE
The name of the role for convenience
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getNextBigDecimalId()
Returns the next Id from the pool.
|
byte |
getNextByteId()
Returns the next Id from the pool.
|
int |
getNextIntegerId()
Returns the next Id from the pool.
|
long |
getNextLongId()
Returns the next Id from the pool.
|
short |
getNextShortId()
Returns the next Id from the pool.
|
java.math.BigDecimal getNextBigDecimalId()
throws IdException
IdExceptionlong getNextLongId()
throws IdException
java.lang.IllegalStateException - if the next id is outside of the range of valid longs.IdExceptionint getNextIntegerId()
throws IdException
java.lang.IllegalStateException - if the next id is outside of the range of valid integers.IdExceptionshort getNextShortId()
throws IdException
java.lang.IllegalStateException - if the next id is outside of the range of valid shorts.IdExceptionbyte getNextByteId()
throws IdException
java.lang.IllegalStateException - if the next id is outside of the range of valid bytes.IdException