コード例 #1
0
 @Override
 public int getCount(String dateTime) throws SQLException {
   ClientEventLogExample example = new ClientEventLogExample();
   example
       .createCriteria()
       .andVersionEqualTo("2")
       .andDataTimeEqualTo(dateTime)
       .andEventIdEqualTo("2101")
       .andClientVersionIn(commonService.getStatisticsVersion());
   return clientEventLogDAO.countByExample(example);
 }
コード例 #2
0
 @Override
 public List<ClientEventLog> getEventList(String dateTime, int start, int length)
     throws SQLException {
   ClientEventLogExample example = new ClientEventLogExample();
   example
       .createCriteria()
       .andVersionEqualTo("2")
       .andDataTimeEqualTo(dateTime)
       .andEventIdEqualTo("2101")
       .andClientVersionIn(commonService.getStatisticsVersion());
   return clientEventLogDAO.selectByExampleWithBLOBs(example, start, length);
 }