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

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


    }

    private static void createTreeEntryEntitys(List<TreeEntry> gitTreeEntitys, EntityTree tree, GenericDao dao) {
        if (gitTreeEntitys != null) {
            for (TreeEntry gitTreeEntry : gitTreeEntitys) {
                EntityTreeEntry treeEntry = null;// findTreeEntryByURL(gitTreeEntry.getUrl(), dao);

                if (treeEntry == null) {
                    treeEntry = new EntityTreeEntry();
                }

                treeEntry.setMineredAt(new Date());
                treeEntry.setMode(gitTreeEntry.getMode());
                treeEntry.setPathTreeEntry(gitTreeEntry.getPath());
                treeEntry.setSha(gitTreeEntry.getSha());
                treeEntry.setSizeTreeEntry(gitTreeEntry.getSize());
                treeEntry.setType(gitTreeEntry.getType());
                treeEntry.setUrl(gitTreeEntry.getUrl());
                tree.addTreeEntry(treeEntry);

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

TOP

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

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.