Package com.enioka.jqm.jpamodel

Examples of com.enioka.jqm.jpamodel.MessageJi


            JobInstance j = em.find(JobInstance.class, idJob, LockModeType.PESSIMISTIC_READ);
            jqmlogger.trace("The " + j.getState() + " job (ID: " + idJob + ")" + " will be marked for kill");

            j.setState(State.KILLED);

            MessageJi m = new MessageJi();
            m.setJobInstance(j);
            m.setTextMessage("Kill attempt on the job");
            em.persist(m);
            em.getTransaction().commit();
        }
        catch (NoResultException e)
        {
View Full Code Here


     * @param em
     * @return the JPA message created
     */
    static MessageJi createMessage(String textMessage, JobInstance jobInstance, EntityManager em)
    {
        MessageJi m = new MessageJi();
        m.setTextMessage(textMessage);
        m.setJobInstance(jobInstance);
        em.persist(m);
        return m;
    }
View Full Code Here

TOP

Related Classes of com.enioka.jqm.jpamodel.MessageJi

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.