(Object dob)
| 463 | } // end of ArrayAdd |
| 464 | |
| 465 | public boolean CollInsert(Object dob) { |
| 466 | try { |
| 467 | coll.insert((BasicDBObject) dob); |
| 468 | } catch (MongoException me) { |
| 469 | SetErrmsg(me); |
| 470 | return true; |
| 471 | } catch (Exception ex) { |
| 472 | SetErrmsg(ex); |
| 473 | return true; |
| 474 | } // end try/catch |
| 475 | |
| 476 | return false; |
| 477 | } // end of CollInsert |
| 478 | |
| 479 | public long CollUpdate(Object upd) { |
| 480 | long n = -1; |