Package org.exoplatform.cs.dao
Class StatLogDAO
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<StatLogEntity,Long>
org.exoplatform.cs.dao.StatLogDAO
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<StatLogEntity,Long>
public class StatLogDAO
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<StatLogEntity,Long>
Created by IntelliJ IDEA.
User: ali
Date: 06/01/17
Time: 12:15
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllStatsByType(String type) getAllStatsByTypeAndDates(String type, Calendar from, Calendar to) getMonthlyStatsByType(String type) getMonthlyStatsByTypeAndDates(String type, Calendar from, Calendar to) getStatsByTypeAndDate(String type, Calendar statDate) getWeeklyStatsByType(String type) getWeeklyStatsByTypeAndDates(String type, Calendar from, Calendar to) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
Constructor Details
-
StatLogDAO
public StatLogDAO()
-
-
Method Details
-
getAllStatsByType
- Throws:
Exception
-
getWeeklyStatsByType
- Throws:
Exception
-
getMonthlyStatsByType
- Throws:
Exception
-
getAllStatsByTypeAndDates
public List<StatLogEntity> getAllStatsByTypeAndDates(String type, Calendar from, Calendar to) throws Exception - Throws:
Exception
-
getWeeklyStatsByTypeAndDates
public List<StatLogEntity> getWeeklyStatsByTypeAndDates(String type, Calendar from, Calendar to) throws Exception - Throws:
Exception
-
getMonthlyStatsByTypeAndDates
public List<StatLogEntity> getMonthlyStatsByTypeAndDates(String type, Calendar from, Calendar to) throws Exception - Throws:
Exception
-
getStatsByTypeAndDate
- Throws:
Exception
-