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

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


        return commitComment;
    }

    private void minerStatsOfCommit(EntityRepositoryCommit repoCommit, CommitStats gitStats) {
        out.printLog("Gravando o Stats do commit.");
        EntityCommitStats stats = CommitStatsServices.createEntity(gitStats, repoCommit, dao);
        repoCommit.setStats(stats);
        if (stats != null) {
            stats.setRepositoryCommit(repoCommit);
        }
        dao.edit(repoCommit);
    }
View Full Code Here


    public static EntityCommitStats createEntity(CommitStats gitStats, EntityRepositoryCommit repoCommit, GenericDao dao) {
        if (gitStats == null) {
            return null;
        }

        EntityCommitStats stats = new EntityCommitStats();

        stats.setMineredAt(new Date());
        stats.setAdditions(gitStats.getAdditions());
        stats.setDeletions(gitStats.getDeletions());
        stats.setTotal(gitStats.getTotal());

        dao.insert(stats);

        return stats;
    }
View Full Code Here

TOP

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

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.