VVVideoRepository::updateStock
The updateStock() member function of VVVideoRepository takes a video ID as its first argument and the number of videos to add to the stock as its second argument. It is used when new copies of a video are added to existing stock in the library.
VVVideoRepository&
VVVideoRepository::updateStock(unsigned long aVidID,
unsigned int quantity) //1
{
RWDBUpdater updater = table_.updater(); //2
updater << quantityColumn_.assign
(quantityColumn_ + quantity); //3
updater << numOnHandColumn_.assign
(numOnHandColumn_ + quantity); //4
updater.where(idColumn_ == aVidID); //5
updater.execute(); //6
return *this;
}