public WriteResult update(Object enref, Object q, Object o) {
MongoEntity moe = (MongoEntity) Mongos.entity(enref);
String collName = moe.getCollectionName(q);
if (db.collectionExists(collName)) {
DBCollection coll = db.getCollection(collName);
DBObject dbq = moe.formatObject(q);
DBObject dbo = moe.formatObject(o);
return coll.updateMulti(dbq, dbo);
}
return null;
}