Package com.jeecms.core.entity

Examples of com.jeecms.core.entity.Config


    String hql = "from Config";
    return find(hql);
  }

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


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

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

    return map;
  }

  @Transactional(readOnly = true)
  public String getValue(String id) {
    Config entity = dao.findById(id);
    if (entity != null) {
      return entity.getValue();
    } else {
      return null;
    }
  }
View Full Code Here

      }
    }
  }

  public Config updateOrSave(String key, String value) {
    Config config = dao.findById(key);
    if (config != null) {
      config.setValue(value);
    } else {
      config = new Config(key);
      config.setValue(value);
      dao.save(config);
    }
    return config;
  }
View Full Code Here

    }
    return config;
  }

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

TOP

Related Classes of com.jeecms.core.entity.Config

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.