Package se.inera.ifv.casebox.core.entity

Examples of se.inera.ifv.casebox.core.entity.Statistic


        cal.set(Calendar.HOUR, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);
        cal.set(Calendar.AM_PM, Calendar.AM);
        Statistic statistic = statisticRepository.find(messageType, careUnit, cal.getTime());
        if (statistic == null) {
            statistic = new Statistic(messageType, cal.getTime(), careUnit, numberOfMessages);
            statisticRepository.store(statistic);
        } else {
            statistic.setNumber(statistic.getNumber() + numberOfMessages);
            statisticRepository.merge(statistic);
        }
    }
View Full Code Here

TOP

Related Classes of se.inera.ifv.casebox.core.entity.Statistic

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.