Package org.hoteia.qalingo.core.domain

Examples of org.hoteia.qalingo.core.domain.BatchProcessObject


  public BatchProcessObject getBatchProcessObjectById(final Long batchProcessObjectId, Object... params) {
     
        Criteria criteria = createDefaultCriteria(BatchProcessObject.class);
        criteria.add(Restrictions.eq("id", batchProcessObjectId));
        BatchProcessObject batchProcessObject = (BatchProcessObject) criteria.uniqueResult();
        return batchProcessObject;
  }
View Full Code Here


    batchProcessObject.setDateUpdate(new Date());
        if (batchProcessObject.getId() != null) {
            if(em.contains(batchProcessObject)){
                em.refresh(batchProcessObject);
            }
            BatchProcessObject mergedBatchProcessObject = em.merge(batchProcessObject);
            em.flush();
            return mergedBatchProcessObject;
        } else {
            em.persist(batchProcessObject);
            return batchProcessObject;
View Full Code Here

  public ModelAndView batchReset(final HttpServletRequest request, final Model model, @Valid BatchValueForm batchValueForm,
      BindingResult result, ModelMap modelMap) throws Exception {

    final String id = batchValueForm.getId();
   
    final BatchProcessObject batchProcessObject = batchProcessObjectService.getBatchProcessObjectById(id);
    if (null != batchProcessObject) {
      batchProcessObject.setProcessedCount(0);
      // UPDATE PROCESSED_COUNT
      batchProcessObjectService.saveOrUpdateBatchProcessObject(batchProcessObject);

    }
View Full Code Here

     *
     */
    public List<BatchViewBean> buildListViewBeanBatch(final RequestData requestData, final List<BatchProcessObject> batchProcessObjects) throws Exception {
        final List<BatchViewBean> batchViewBeans = new ArrayList<BatchViewBean>();
        for (Iterator<BatchProcessObject> iterator = batchProcessObjects.iterator(); iterator.hasNext();) {
            BatchProcessObject batchProcessObject = (BatchProcessObject) iterator.next();
            batchViewBeans.add(buildViewBeanBatch(requestData, batchProcessObject));
        }
        return batchViewBeans;
    }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.domain.BatchProcessObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.