Package com.will.data.entity

Examples of com.will.data.entity.Configuration


    String value=request.getParameter(prop.toString());

//        if(null==url||!url.startsWith("http://")){
//      log.warning("invalid url:"+url);
//        }
        Configuration c=new Configuration();
        c.setProperty(prop);
        c.setValue(value);
        c.setUpdateBy(updateBy+"@"+request.getRemoteAddr());

//         service=new DataStoreService();

        dataService.saveConfig(c);
        System.out.println("new config:"+c);
View Full Code Here


    return;//do nothing
      }
      if(null==url||!url.startsWith("http://")){
    log.warning("invalid url:"+url);
      }
      Configuration c=new Configuration();
      c.setProperty(Configuration.PROPERTIES.URL_REDIRECT);
      c.setValue(url);
      c.setUpdateBy(user+"@"+request.getRemoteAddr());

//       service=new DataStoreService();
      dataService.saveConfig(c);

      mailService.sendMail(new MailTemplate());
View Full Code Here

    public String getProperty(String propertyName) {
  String value = null;
  PersistenceManager pm = PMF.get().getPersistenceManager();
  try {
      Configuration e = pm.getObjectById(Configuration.class, propertyName);
      value = e.getValue();
  } catch (Exception e) {
      e.printStackTrace();
      log.log(Level.SEVERE, e.getMessage());

  } finally {
      pm.close();
  }
  return value;
View Full Code Here

TOP

Related Classes of com.will.data.entity.Configuration

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.