// synchronized(tMap) see comment in the getNextIds method
// {
if (adjustQuantity)
checkTiming(tableName);
DBConnection dbCon = null;
try
{
String databaseName = dbMap.getName();
// Get a connection to the db by starting a
// transaction.
if (transactionsSupported)
{
dbCon = BasePeer.beginTransaction(databaseName);
}
else
{
dbCon = TurbineDB.getConnection(databaseName);
}
Connection connection = dbCon.getConnection();
// Write the current value of quantity of keys to grab
// to the database, primarily to obtain a write lock
// on the table/row, but this value will also be used
// as the starting value when an IDBroker is