MongoBean

MongoBean is an enhanced class of Bean class provided by MongoDB Plugin, and we recommend that all bean classes inherit MongoBean. MongoBean itself comes with several methods which can also be used after inheritance. If a object is nested in another object, both two objects need to inherit MongoBean. Currently MongoDB Plugin only supports two layer object nesting. If you need to support more layers, you can refer to the MongoDocumentKit class and directly override toDocument method.

Copy Itself

bean.clone();

Convert to JSON String

bean.toString();

Convert to JSON Object

bean.toJSONObject();

Convert to map

bean.toMap();

results matching ""

    No results matching ""