def setID ( self, ch, annoid ):

    with closing(self.conn.cursor()) as cursor:

      # LOCK the table to prevent race conditions on the ID
      sql = "LOCK TABLES {} WRITE".format( ch.getIdsTable() )
      try:
        # try the insert, get ane exception if it doesn't work
        sql = "INSERT INTO {} VALUES({})".format(ch.getIdsTable(), annoid)
        try:
          cursor.execute ( sql )
        except MySQLdb.Error, e:
          logger.warning ( "Failed to set identifier table: {}: {}. sql={}".format(e.args[0], e.args[1], sql))
          raise

      finally:
        sql = "UNLOCK TABLES" 
        cursor.execute ( sql )
        self.conn.commit()

    return annoid


  #
  #  setBatchID
  # 
  #  Place the user selected id into the ids table
  #
Update flow control windows in response to a change in the value of
dataset/ETHPy150Open neurodata/ndstore/ocpca/ocpcadb.py/OCPCADB.setID--crossover with--dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py/H2Connection._flow_control_change_from_settings