Package com.avoka.fc.core.dao
Class SystemHealthDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.SystemHealthDao
Provides a DAO for the SystemHealth entity.
- Since:
- 4.3.4
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSystemHealth
(Date date, int hour) Return a system health entry for a date and hour of the day.getSystemHealthList
(Date startDate, Date endDate, int offset, int pageSize) Return the list of system health entries matching the search criteria.boolean
hasSystemHealth
(Date date, int hour) Check whether a system health entry exists for a date and hour of the day.Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
SystemHealthDao
public SystemHealthDao()
-
-
Method Details
-
hasSystemHealth
Check whether a system health entry exists for a date and hour of the day.- Parameters:
date
- the date to which the system health entry relateshour
- the hour of the day (1-24, where 1 is the first hour, i.e. midnight to 1am) to which the system health entry relates- Returns:
- true if a system health entry for the given date and hour exists
-
getSystemHealth
Return a system health entry for a date and hour of the day.- Parameters:
date
- the date to which the system health entry relates (required)hour
- the hour of the day (1-24, where 1 is the first hour, i.e. midnight to 1am) to which the system health entry relates- Returns:
- the system health entry for the date and hour of day, or null if none exists
-
getSystemHealthList
public List<SystemHealth> getSystemHealthList(Date startDate, Date endDate, int offset, int pageSize) Return the list of system health entries matching the search criteria. We return system health entries whose date is >= the start date and < the end date. The time component of the dates is ignored.- Parameters:
startDate
- the start date; only the date part will be usedendDate
- the end date; only the date part will be usedoffset
- the offsetpageSize
- the page size- Returns:
- the list of matching system health entries, sorted by date and hour descending
-