public static List<Volume> queryVolumesByIterativeQuery(DbClient dbClient,List<URI> volumeURIs){
  List<Volume> volumes=new ArrayList<Volume>();
  @SuppressWarnings("unchecked") Iterator<Volume> volumeIterator=dbClient.queryIterativeObjects(Volume.class,volumeURIs);
  while (volumeIterator.hasNext()) {
    volumes.add(volumeIterator.next());
  }
  return volumes;
}

public static List < Volume > queryVolumesByIterativeQuery ( DbClient dbClient , List < URI > volumeURIs ) { List < Volume > volumes = new ArrayList < Volume > ( ) ; @ SuppressWarnings ( "unchecked" ) Iterator < Volume > volumeIterator = dbClient . queryIterativeObjects ( Volume . class , volumeURIs ) ; while ( volumeIterator . hasNext ( ) ) { volumes . add ( volumeIterator . next ( ) ) ; } return volumes ; }
takes in a list of uris , queries using iterative method and returns list of volume objects .
