Package com.baasbox.dao

Examples of com.baasbox.dao.ScriptsDao.save()


        ScriptsDao dao = ScriptsDao.getInstance();
        ODocument script = dao.getByName(name);
        if (script == null) throw new ScriptException("Script not found");
        ODocument emdedded = new ODocument().fromJSON(data.toString());
        script.field(ScriptsDao.LOCAL_STORAGE,emdedded);
        dao.save(script);
        return emdedded;
    }

    public static ODocument getStore(String name) throws ScriptException {
        ScriptsDao dao = ScriptsDao.getInstance();
View Full Code Here


            JsonNode updated = updaterFn.call(current);

            ODocument result = new ODocument().fromJSON(updated.toString());
            script.field(ScriptsDao.LOCAL_STORAGE, result);
            dao.save(script);
            ODocument field = retScript.field(ScriptsDao.LOCAL_STORAGE);
            return field;
        } finally {
            if (script != null) {
                script.unlock();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.