Package br.edu.utfpr.cm.JGitMinerWeb.model.miner

Examples of br.edu.utfpr.cm.JGitMinerWeb.model.miner.EntityTree


            gitTree = new TreeService(AuthServices.getGitHubClient()).getTree(gitRepo, gitTree.getSha());
        } catch (Exception ex) {
            ex.printStackTrace();
        }

        EntityTree tree = null;//getTreeByURL(gitTree.getUrl(), dao);

        if (tree == null) {
            tree = new EntityTree();
        }

        tree.setMineredAt(new Date());
        tree.setSha(gitTree.getSha());
        tree.setUrl(gitTree.getUrl());

        if (tree.getId() == null || tree.getId().equals(0l)) {
            dao.insert(tree);
        } else {
            dao.edit(tree);
        }
View Full Code Here

TOP

Related Classes of br.edu.utfpr.cm.JGitMinerWeb.model.miner.EntityTree

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.