public class HibernateAccessLogDao extends HibernateCRUDDao<AccessLog> implements AccessLogDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateAccessLogDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addAccessLog(AccessLog log) |
void |
clear() |
void |
deleteAccessLogBefore(Calendar dateTime) |
void |
deleteAccessLogOfNode(String nodeGridId,
String nodeId) |
void |
deleteAccessLogOfUser(String userGridId,
String userId) |
void |
deleteAccessLogsOfGrid(String gridId) |
void |
deleteAccessLogsOfService(String serviceGridId,
String serviceId) |
boolean |
isLogExist(int newsId) |
boolean |
isLogExistByNodeIds(String gridId,
String nodeId,
int nodeLocalId) |
List<AccessLog> |
listAccessLogsNewerThanOrEqualsTo(String serviceGridId,
Calendar dateTime) |
AccessLogSearchResult |
searchAccessLog(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceGridId,
String[] serviceIds,
Calendar startDateTime,
Calendar endDateTime,
MatchingCondition[] conditions,
Order[] orders) |
AccessLogSearchResult |
searchLimitOverAccessLog(int startIndex,
int maxCount,
String userGridId,
String userId,
String serviceGridId,
String[] serviceIds,
Calendar startDateTime,
Calendar endDateTime,
MatchingCondition[] conditions,
Order[] orders,
int limitCount) |
void |
updateAccessLogByNodeIds(AccessLog log) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateAccessLogDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface AccessLogDao
clear
in class HibernateCRUDDao<AccessLog>
DaoException
public List<AccessLog> listAccessLogsNewerThanOrEqualsTo(String serviceGridId, Calendar dateTime) throws DaoException
listAccessLogsNewerThanOrEqualsTo
in interface AccessLogDao
DaoException
public AccessLogSearchResult searchLimitOverAccessLog(int startIndex, int maxCount, String userGridId, String userId, String serviceGridId, String[] serviceIds, Calendar startDateTime, Calendar endDateTime, MatchingCondition[] conditions, Order[] orders, int limitCount) throws DaoException
searchLimitOverAccessLog
in interface AccessLogDao
DaoException
public AccessLogSearchResult searchAccessLog(int startIndex, int maxCount, String userGridId, String userId, String serviceGridId, String[] serviceIds, Calendar startDateTime, Calendar endDateTime, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchAccessLog
in interface AccessLogDao
DaoException
public boolean isLogExist(int newsId) throws DaoException
isLogExist
in interface AccessLogDao
DaoException
public void addAccessLog(AccessLog log) throws DaoException
addAccessLog
in interface AccessLogDao
DaoException
public void deleteAccessLogBefore(Calendar dateTime) throws DaoException
deleteAccessLogBefore
in interface AccessLogDao
DaoException
public void deleteAccessLogsOfGrid(String gridId) throws DaoException
deleteAccessLogsOfGrid
in interface AccessLogDao
DaoException
public void deleteAccessLogsOfService(String serviceGridId, String serviceId) throws DaoException
deleteAccessLogsOfService
in interface AccessLogDao
DaoException
public void deleteAccessLogOfUser(String userGridId, String userId) throws DaoException
deleteAccessLogOfUser
in interface AccessLogDao
DaoException
public void deleteAccessLogOfNode(String nodeGridId, String nodeId) throws DaoException
deleteAccessLogOfNode
in interface AccessLogDao
DaoException
public boolean isLogExistByNodeIds(String gridId, String nodeId, int nodeLocalId) throws DaoException
isLogExistByNodeIds
in interface AccessLogDao
DaoException
public void updateAccessLogByNodeIds(AccessLog log) throws DaoException
updateAccessLogByNodeIds
in interface AccessLogDao
DaoException