Example usage for Java com.mongodb BasicDBObjectBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
BasicDBObjectBuilder() Creates a builder intialized with an empty document. |
BasicDBObjectBuilder | add(final String key, final Object val) Same as append |
BasicDBObjectBuilder | append(final String key, final Object val) Appends the key/value to the active object |
DBObject | get() Gets the top level document. |
boolean | isEmpty() Returns true if no key/value was inserted into the top level document. |
BasicDBObjectBuilder | pop() Pops the active object, which means that the parent object becomes active |
BasicDBObjectBuilder | push(final String key) Creates an new empty object and inserts it into the current object with the given key. |
BasicDBObjectBuilder | start() Creates a builder intialized with an empty document. |
BasicDBObjectBuilder | start(final String key, final Object val) Creates a builder initialized with the given key/value. |
BasicDBObjectBuilder | start(final Map documentAsMap) Creates an object builder from an existing map of key value pairs. |