Tienes que usar el DBCollection.find()
método, que
Entonces, lo que tienes que hacer es:
DBCursor cursor = coll.find();
while (cursor.hasNext()) {
DBObject obj = cursor.next();
//do your thing
}
Tienes que usar el DBCollection.find()
método, que
Entonces, lo que tienes que hacer es:
DBCursor cursor = coll.find();
while (cursor.hasNext()) {
DBObject obj = cursor.next();
//do your thing
}