org.apache.commons.betwixt.io.IDGenerator |
Known Indirect Subclasses |
Interface allowing pluggable ID
attribute value generators.
IDGenerator
's are used to generate ID
attribute values by BeanWriter
.
A user can specify the generation mechanism by passing an implementation to
setIdGenerator(IDGenerator)
.
Standard implementations are included with that supply random and sequantial values.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the last
ID value generated. | |||||||||||
Generate a new
ID attribute value. |
Get the last ID
value generated.