MCPcopy Create free account
hub / github.com/MariaDB/server / ArrayAdd

Method ArrayAdd

storage/connect/Mongo2Interface.java:447–463  ·  view source on GitHub ↗
(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 {

Callers 2

mainMethod · 0.45
mainMethod · 0.45

Calls 3

SetErrmsgMethod · 0.95
putMethod · 0.45
parseMethod · 0.45

Tested by 2

mainMethod · 0.36
mainMethod · 0.36