public interface IDGenerator
An instance implementing this interface can be configured by setting the
property in the ParserConfiguration
class and
will then be used to generate IDs for all messages created by HAPI. The
default implementation is FileBasedHiLoGenerator
.
HAPI does not provide ID generators that depend on external resources (except
for files). Implementors are encouraged to add their own classes
(implementing IDGenerator.Ordered
, e.g. based on database tables
or sequences, and use it as delegate in DelegatingHiLoGenerator
.
DelegatingHiLoGenerator
,
FileBasedHiLoGenerator
Modifier and Type | Interface and Description |
---|---|
static interface |
IDGenerator.Ordered
Extension for continuous ID sequences
|
static class |
IDGenerator.OrderedSupport
Ordered ID sequences with a configurable increment
|
Modifier and Type | Method and Description |
---|---|
String |
getID()
Generates and returns a new ID.
|
String getID() throws IOException
IOException
Copyright © 2001–2017 University Health Network. All rights reserved.