I have a LinkedBlockingQueue, and I would like to save all the elements to the database. I know I can save it one by one:
ObjectModel om = new ObjectModel();
om.save();
However, that means I have to loop through all the elements and do a new connection for each. Can I insert the entire list at once?