Method
ArrayAdd
(Object bar, int n, Object val, int json)
Source from the content-addressed store, hash-verified
| 445 | } // end of MakeArray |
| 446 | |
| 447 | public boolean ArrayAdd(Object bar, int n, Object val, int json) { |
| 448 | try { |
| 449 | if (json != 0 && val instanceof String) |
| 450 | ((BasicDBList) bar).put(n, JSON.parse((String) val)); |
| 451 | else |
| 452 | ((BasicDBList) bar).put(n, val); |
| 453 | |
| 454 | } catch (MongoException me) { |
| 455 | SetErrmsg(me); |
| 456 | return true; |
| 457 | } catch (Exception ex) { |
| 458 | SetErrmsg(ex); |
| 459 | return true; |
| 460 | } // end try/catch |
| 461 | |
| 462 | return false; |
| 463 | } // end of ArrayAdd |
| 464 | |
| 465 | public boolean CollInsert(Object dob) { |
| 466 | try { |