(String name)
| 132 | } // end of MongoDisconnect |
| 133 | |
| 134 | public boolean GetCollection(String name) { |
| 135 | if (DEBUG) |
| 136 | System.out.println("GetCollection: name=" + name); |
| 137 | |
| 138 | try { |
| 139 | coll = db.getCollection(name); |
| 140 | } catch (Exception e) { |
| 141 | SetErrmsg(e); |
| 142 | return true; |
| 143 | } // end try/catch |
| 144 | |
| 145 | return false; |
| 146 | } // end of GetCollection |
| 147 | |
| 148 | public long GetCollSize() { |
| 149 | return (coll != null) ? coll.count() : 0; |