Exemplo n.º 1
0
 public void replace(long id, DistStageDto stage) {
   int rowCount = distStages.updateById(id, stage);
   if (rowCount == 0) {
     LOGGER.error("Bad user input: id: " + id + ", platform: " + stage);
     throw new UnexpectedInputException(Messages.ERR_BAD_USER_INPUT.getText());
   }
 }
Exemplo n.º 2
0
 public void add(DistStageDto stage) {
   int rowCount = distStages.insert(stage);
   if (rowCount == 0) {
     LOGGER.error("Bad user input: " + stage);
     throw new UnexpectedInputException(Messages.ERR_BAD_USER_INPUT.getText());
   }
 }
Exemplo n.º 3
0
 public void remove(List<Long> idList) {
   int rowCount = distStages.deleteByIdList(idList);
   if (rowCount != idList.size()) {
     LOGGER.error(
         "Delete request and result mismatch: request "
             + idList
             + ", affected results: "
             + rowCount);
   }
 }
Exemplo n.º 4
0
 public List<DistStageDto> getByIdList(List<Long> idList) {
   return distStages.selectByIdList(idList);
 }
Exemplo n.º 5
0
 public int getAllCount() {
   return distStages.selectAllCount();
 }
Exemplo n.º 6
0
 public List<DistStageDto> getAll() {
   return distStages.selectAll();
 }