Examples of MongoResultDescriptor


Examples of org.codinjutsu.tools.mongo.view.nodedescriptor.MongoResultDescriptor

        super(buildJsonTree(mongoCollectionResult));
    }


    public static TreeNode buildJsonTree(MongoCollectionResult mongoCollectionResult) {
        JsonTreeNode rootNode = new JsonTreeNode(new MongoResultDescriptor(mongoCollectionResult.getCollectionName()));

        List<DBObject> mongoObjects = mongoCollectionResult.getMongoObjects();
        int i = 0;
        for (DBObject mongoObject : mongoObjects) {
            if (mongoObject instanceof BasicDBList) {
View Full Code Here

Examples of org.codinjutsu.tools.mongo.view.nodedescriptor.MongoResultDescriptor

        }
        return rootNode;
    }

    public static TreeNode buildJsonTree(DBObject mongoObject) {
        JsonTreeNode rootNode = new JsonTreeNode(new MongoResultDescriptor());//TODO crappy
        processDbObject(rootNode, mongoObject);
        return rootNode;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.