|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiCategoryIdentifierGenerator
An ID generator that supports different ID sequences for different categories.
Method Summary | |
---|---|
java.lang.String |
newIdentifier(java.lang.String category)
Returns a new identifier for the given category. |
long |
nextIdentifier(java.lang.String category)
Returns a new identifier which is different to the last one for the given category. |
Method Detail |
---|
java.lang.String newIdentifier(java.lang.String category)
category
- An arbitrary but unique name for the ID sequence (must not be null).
org.pfsw.bif.identifier.IdentifierGenerationException
- if the category cannot be found of ID generation fails for any reason.long nextIdentifier(java.lang.String category)
category
- An arbitrary but unique name for the ID sequence (must not be null).
org.pfsw.bif.identifier.IdentifierGenerationException
- if the category cannot be found of ID generation fails for any reason.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |