Package org.netbeans.modules.exceptions.entity

Examples of org.netbeans.modules.exceptions.entity.Preference


        Statistic statist = Statistic.getExists(stat.name);
        return new DbPreferences(null, "", statist, log, null, em);
    }

    protected void putSpi(String key, String value) {
        Preference p = null;
        for (Preference current : getPreferences()) {
            if (key.equals(current.getKey())) {
                p = current;
                p.setValue(persist, value);
                break;
            }
        }
        if (p == null) {
            p = new Preference(persist, statistic, log, prefix, key);
            p.setValue(persist, value);
            preferences.add(p);
            persist.persist(p);
        } else {
            persist.merge(p);
        }
View Full Code Here


                q = persist.createNamedQuery("Preference.findWithoutKeyNullPrefix").
                        setParameter("statistic", statistic).
                        setParameter("logfile", log);
            }
            for (Object o : q.getResultList()) { // NOI18N
                Preference p = (Preference) o;
                prefs.add(p);
            }

            preferences = new CopyOnWriteArrayList<Preference>(prefs);
        }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.exceptions.entity.Preference

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.