Package pl.net.bluesoft.rnd.processtool.model.config

Examples of pl.net.bluesoft.rnd.processtool.model.config.ProcessToolAutowire


    @Override
    public void setAutowiredProperty(String key, String value) {
        String cachedValue = autowiringCache.get(key);
        if (cachedValue == null || !cachedValue.equals(value)) {
            verifyContextOpen();
            ProcessToolAutowire pta = (ProcessToolAutowire) hibernateSession.createCriteria(ProcessToolAutowire.class)
                    .add(Restrictions.eq("key", key)).uniqueResult();
            if (pta == null) {
                pta = new ProcessToolAutowire();
                pta.setKey(key);
            }
            pta.setValue(value);
            hibernateSession.saveOrUpdate(pta);
            autowiringCache.put(key, value);
        }
    }
View Full Code Here


       @Override
       public void setAutowiredProperty(String key, String value) {
           String cachedValue = autowiringCache.get(key);
           if (cachedValue == null || !cachedValue.equals(value)) {
               verifyContextOpen();
               ProcessToolAutowire pta = (ProcessToolAutowire) hibernateSession.createCriteria(ProcessToolAutowire.class)
                       .add(Restrictions.eq("key", key)).uniqueResult();
               if (pta == null) {
                   pta = new ProcessToolAutowire();
                   pta.setKey(key);
               }
               pta.setValue(value);
               hibernateSession.saveOrUpdate(pta);
               autowiringCache.put(key, value);
           }
       }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.model.config.ProcessToolAutowire

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.