(Object dob)
| 556 | } // end of ArrayAdd |
| 557 | |
| 558 | public boolean CollInsert(Object dob) { |
| 559 | try { |
| 560 | coll.insertOne((BsonDocument) dob); |
| 561 | } catch (MongoException me) { |
| 562 | SetErrmsg(me); |
| 563 | return true; |
| 564 | } catch (Exception ex) { |
| 565 | SetErrmsg(ex); |
| 566 | return true; |
| 567 | } // end try/catch |
| 568 | |
| 569 | return false; |
| 570 | } // end of CollInsert |
| 571 | |
| 572 | public long CollUpdate(Object upd) { |
| 573 | long n = -1; |