* rethrown wrapped into a TorqueException.
*/
private final DatabaseMap initDatabaseMap(String name)
throws TorqueException
{
DatabaseMap map = new DatabaseMap(name);
// Add info about IDBroker's table.
setupIdTable(map);
// Setup other ID generators for this map.
try
{
String key = getDatabaseProperty(name, "adapter");
if (StringUtils.isEmpty(key))
{
key = getDatabaseProperty(name, "driver");
}
DB db = DBFactory.create(key);
for (int i = 0; i < IDGeneratorFactory.ID_GENERATOR_METHODS.length;
i++)
{
map.addIdGenerator(IDGeneratorFactory.ID_GENERATOR_METHODS[i],
IDGeneratorFactory.create(db, name));
}
}
catch (java.lang.InstantiationException e)
{