Exemplo n.º 1
0
  @Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED)
  public List<ProcessingQueue> getAllQueue() {
    List<ProcessingQueue> queues = (List<ProcessingQueue>) queueDao.findAll();
    logger.debug("getAllQueue,queue size: " + queues.size());

    for (ProcessingQueue queue : queues) {
      Long entryCount = entryDao.getQueueEntryCountByQueueRef(queue);
      queue.setEntryCount(entryCount);
    }

    return queues;
  }
Exemplo n.º 2
0
 @Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED)
 public Long getEntryCount(ProcessingQueue queue) {
   return entryDao.getQueueEntryCountByQueueRef(queue);
 }