Package org.codinjutsu.tools.mongo.view.nodedescriptor

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


        }
        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

Related Classes of org.codinjutsu.tools.mongo.view.nodedescriptor.MongoResultDescriptor

Copyright © 2018 www.massapicom. 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.