An IdGenerator that gives out ids suitable for use
with persistent objects. The ids are reserved in batches from some
a persistent data store. The ids generated generally sequential and
strictly increasing. A PersistentIdGenerator will not avoid ever
giving out the same id twice for a given IdSpace, even
across restarts of the JVM.
This class reserves batches of ids from the data store and doles
them out one at a time. Thus the ids given out are generally
sequential and strictly increasing. Subclasses should indicate
whether or not they are safe to use in a distributed system.

setLoadInitialIdSpacesAtStartup

Set property loadInitialIdSpacesAtStartup. This is if true
the XML file specified by the initialIdSpaces property is loaded at
startup. If false the XML file is only loaded when no persistent ids are
found in the DB. The default is true.

Parameters:

pLoadInitialIdSpacesAtStartup - new value to set

getLoadInitialIdSpacesAtStartup

public boolean getLoadInitialIdSpacesAtStartup()

Get property loadInitialIdSpacesAtStartup. If this is true
the XML file specified by the initialIdSpaces property is loaded at
startup. If false the XML file is only loaded when no persistent ids are
found in the DB. The default is true.

IdGeneratorException - if there is an error
initializing. If initialization was unsuccessful the
IdGeneratorException may have a source exception which is a chain
of all of the exceptions encountered during the attempt to initialize