Method
ArrayAdd
(Object bar, int n, Object val, int json)
Source from the content-addressed store, hash-verified
| 539 | } // end of MakeArray |
| 540 | |
| 541 | public boolean ArrayAdd(Object bar, int n, Object val, int json) { |
| 542 | try { |
| 543 | for (int i = ((BsonArray) bar).size(); i < n; i++) |
| 544 | ((BsonArray) bar).add(bsonull); |
| 545 | |
| 546 | ((BsonArray) bar).add(ObjToBson(val, json)); |
| 547 | } catch (MongoException me) { |
| 548 | SetErrmsg(me); |
| 549 | return true; |
| 550 | } catch (Exception ex) { |
| 551 | SetErrmsg(ex); |
| 552 | return true; |
| 553 | } // end try/catch |
| 554 | |
| 555 | return false; |
| 556 | } // end of ArrayAdd |
| 557 | |
| 558 | public boolean CollInsert(Object dob) { |
| 559 | try { |
Callers
nothing calls this directly
Tested by
no test coverage detected