Examples of ChildProcessPIDDAO


Examples of net.ex337.scriptus.datastore.impl.jpa.dao.ChildProcessPIDDAO

    }

    @Override
    @Transactional(readOnly = false)
    public void addChild(UUID parent, UUID newChild, int seq) {
        ChildProcessPIDDAO p = new ChildProcessPIDDAO();
        p.child = newChild.toString();
        p.parent = parent.toString();
        p.seq = seq;

        em.persist(p);
View Full Code Here

Examples of net.ex337.scriptus.datastore.impl.jpa.dao.ChildProcessPIDDAO

        Query q = em
                .createQuery("select r from ChildProcessPIDDAO r where r.parent = :parent and r.seq = (select max(rr.seq) from ChildProcessPIDDAO rr where rr.parent = :parent)");
        q.setParameter("parent", parent.toString());

        try {
            ChildProcessPIDDAO r = (ChildProcessPIDDAO) q.getSingleResult();
            return UUID.fromString(r.child);
        } catch (NoResultException nre) {
            return null;
        }
    }
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.