Java com.mongodb BasicDBObjectBuilder fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb BasicDBObjectBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb BasicDBObjectBuilder.

The text is from its open source code.

Constructor

BasicDBObjectBuilder()
Creates a builder intialized with an empty document.

Method

BasicDBObjectBuilderadd(final String key, final Object val)
Same as append
BasicDBObjectBuilderappend(final String key, final Object val)
Appends the key/value to the active object
DBObjectget()
Gets the top level document.
booleanisEmpty()
Returns true if no key/value was inserted into the top level document.
BasicDBObjectBuilderpop()
Pops the active object, which means that the parent object becomes active
BasicDBObjectBuilderpush(final String key)
Creates an new empty object and inserts it into the current object with the given key.
BasicDBObjectBuilderstart()
Creates a builder intialized with an empty document.
BasicDBObjectBuilderstart(final String key, final Object val)
Creates a builder initialized with the given key/value.
BasicDBObjectBuilderstart(final Map documentAsMap)
Creates an object builder from an existing map of key value pairs.