Package com.jeecms.cms.entity.assist

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


  private boolean vldExist(Integer id, WebErrors errors) {
    if (errors.ifNull(id, "id")) {
      return true;
    }
    CmsSensitivity entity = manager.findById(id);
    if (errors.ifNotExist(entity, CmsSensitivity.class, id)) {
      return true;
    }
    return false;
  }
View Full Code Here


    return dao.getList(cacheable);
  }

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

    return bean;
  }

  public void updateEnsitivity(Integer[] ids, String[] searchs,
      String[] replacements) {
    CmsSensitivity ensitivity;
    for (int i = 0, len = ids.length; i < len; i++) {
      ensitivity = findById(ids[i]);
      ensitivity.setSearch(searchs[i]);
      ensitivity.setReplacement(replacements[i]);
    }
  }
View Full Code Here

      ensitivity.setReplacement(replacements[i]);
    }
  }

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

    String hql = "from CmsSensitivity bean order by bean.id desc";
    return getSession().createQuery(hql).setCacheable(cacheable).list();
  }

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

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

  public CmsSensitivity deleteById(Integer id) {
    CmsSensitivity entity = super.get(id);
    if (entity != null) {
      getSession().delete(entity);
    }
    return entity;
  }
View Full Code Here

TOP

Related Classes of com.jeecms.cms.entity.assist.CmsSensitivity

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.