public class P2PGridBasisAccessLogDao extends Object implements DataDao, AccessLogDao
Constructor and Description |
---|
P2PGridBasisAccessLogDao(AccessLogDao dao,
DaoContext context)
The constructor.
|
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 logId) |
boolean |
isLogExistByNodeIds(String gridId,
String nodeId,
int nodeLocalId) |
List<AccessLog> |
listAccessLogsNewerThanOrEqualsTo(String serviceGridId,
Calendar dateTime) |
void |
removeEntityListener() |
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 |
setEntityListener() |
void |
updateAccessLogByNodeIds(AccessLog log) |
boolean |
updateDataSource(Data data) |
boolean |
updateDataTarget(Data data) |
public P2PGridBasisAccessLogDao(AccessLogDao dao, DaoContext context)
dao
- context
- public void setEntityListener()
setEntityListener
in interface DataDao
public void removeEntityListener()
removeEntityListener
in interface DataDao
public boolean updateDataSource(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataSource
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public boolean updateDataTarget(Data data) throws DataDaoException, UnmatchedDataTypeException
updateDataTarget
in interface DataDao
DataDaoException
UnmatchedDataTypeException
public void clear() throws DaoException
clear
in interface AccessLogDao
DaoException
public boolean isLogExist(int logId) 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 deleteAccessLogOfNode(String nodeGridId, String nodeId) throws DaoException
deleteAccessLogOfNode
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 List<AccessLog> listAccessLogsNewerThanOrEqualsTo(String serviceGridId, Calendar dateTime) throws DaoException
listAccessLogsNewerThanOrEqualsTo
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 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 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