Examples of CmsVoteItem


Examples of com.jeecms.cms.entity.assist.CmsVoteItem

  }

  private List<CmsVoteItem> getItems(Integer[] itemId, String[] itemTitle,
      Integer[] itemVoteCount, Integer[] itemPriority) {
    List<CmsVoteItem> items = new ArrayList<CmsVoteItem>();
    CmsVoteItem item;
    for (int i = 0, len = itemTitle.length; i < len; i++) {
      if (!StringUtils.isBlank(itemTitle[i])) {
        item = new CmsVoteItem();
        if (itemId != null && itemId[i] != null) {
          item.setId(itemId[i]);
        }
        item.setTitle(itemTitle[i]);
        item.setVoteCount(itemVoteCount[i]);
        item.setPriority(itemPriority[i]);
        items.add(item);
      }
    }
    return items;
  }
View Full Code Here

Examples of com.jeecms.cms.entity.assist.CmsVoteItem

    return page;
  }

  @Transactional(readOnly = true)
  public CmsVoteItem findById(Integer id) {
    CmsVoteItem entity = dao.findById(id);
    return entity;
  }
View Full Code Here

Examples of com.jeecms.cms.entity.assist.CmsVoteItem

    set.addAll(toAdd);
    return set;
  }

  public CmsVoteItem deleteById(Integer id) {
    CmsVoteItem bean = dao.deleteById(id);
    return bean;
  }
View Full Code Here

Examples of com.jeecms.cms.entity.assist.CmsVoteItem

    Pagination page = findByCriteria(crit, pageNo, pageSize);
    return page;
  }

  public CmsVoteItem findById(Integer id) {
    CmsVoteItem entity = get(id);
    return entity;
  }
View Full Code Here

Examples of com.jeecms.cms.entity.assist.CmsVoteItem

    getSession().save(bean);
    return bean;
  }

  public CmsVoteItem deleteById(Integer id) {
    CmsVoteItem entity = super.get(id);
    if (entity != null) {
      getSession().delete(entity);
    }
    return entity;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.