abstractpublic class EntityIdentifierGeneratorSingleton (Code)
This singleton abstract class provides a common interface for generating
identifiers (long integers). The typical use is for getting new
identifiers to be used as keys in entity tables.
This singleton class creates the concrete singleton on run-time the first
time is needed. The name of such a concrete class is specified by
DatabaseSpecificsConfig author: Fernando Bellas author: Daniel Fernandez since: 1.0
Generates a new identifier for a given entity table name. The generated
identifier is supposed to be the key of such a table.
Parameters: connection - the connection to the database Parameters: entityTableName - the name of the entity table for which a newidentifier is needed the generated identifier throws: InternalErrorException - if a failure is detected.