Package org.drools.persistence.info

Examples of org.drools.persistence.info.SessionInfo


        }
        this.env = env;

        checkEnvironment( this.env );

        this.sessionInfo = new SessionInfo();

        initTransactionManager( this.env );

        // create session but bypass command service
        this.ksession = kbase.newStatefulKnowledgeSession( conf,
View Full Code Here


        // update the session id to be the same as the session info id
        ((InternalKnowledgeRuntime) ksession).setId( this.sessionInfo.getId() );
    }

    protected void initNewKnowledgeSession(KieBase kbase, KieSessionConfiguration conf) {
        this.sessionInfo = new SessionInfo();

        // create session but bypass command service
        this.ksession = kbase.newKieSession( conf,
                                             this.env );
View Full Code Here

        // update the session id to be the same as the session info id
        ((InternalKnowledgeRuntime) ksession).setId( this.sessionInfo.getId() );
    }

    protected void initNewKnowledgeSession(KieBase kbase, KieSessionConfiguration conf) {
        this.sessionInfo = new SessionInfo();

        // create session but bypass command service
        this.ksession = kbase.newKieSession( conf,
                                             this.env );
View Full Code Here

        return entity;
    }

    public SessionInfo findSessionInfo(Integer id) {

        SessionInfo sessionInfo = null;
        if( this.pessimisticLocking ) {
            sessionInfo = this.em.find( SessionInfo.class, id, LockModeType.PESSIMISTIC_FORCE_INCREMENT );
            TransactionManagerHelper.addToUpdatableSet(txm, sessionInfo);

            return sessionInfo;
View Full Code Here

        return sessionInfo;
    }

    public void remove(SessionInfo sessionInfo) {
        if (!em.contains(sessionInfo)) {
            SessionInfo s = em.getReference(SessionInfo.class, sessionInfo.getId());
            em.remove( s );
        } else {
            em.remove(sessionInfo);
        }
        TransactionManagerHelper.removeFromUpdatableSet(txm, sessionInfo);
View Full Code Here

        // update the session id to be the same as the session info id
        ((InternalKnowledgeRuntime) ksession).setId( this.sessionInfo.getId() );
    }

    protected void initNewKnowledgeSession(KieBase kbase, KieSessionConfiguration conf) {
        this.sessionInfo = new SessionInfo();

        // create session but bypass command service
        this.ksession = kbase.newKieSession( conf,
                                             this.env );
View Full Code Here

        // update the session id to be the same as the session info id
        ((InternalKnowledgeRuntime) ksession).setId( this.sessionInfo.getId() );
    }

    protected void initNewKnowledgeSession(KieBase kbase, KieSessionConfiguration conf) {
        this.sessionInfo = new SessionInfo();

        // create session but bypass command service
        this.ksession = kbase.newKieSession( conf,
                                             this.env );
View Full Code Here

        // update the session id to be the same as the session info id
        ((InternalKnowledgeRuntime) ksession).setId( this.sessionInfo.getId() );
    }

    protected void initNewKnowledgeSession(KieBase kbase, KieSessionConfiguration conf) {
        this.sessionInfo = new SessionInfo();

        // create session but bypass command service
        this.ksession = kbase.newKieSession( conf,
                                             this.env );
View Full Code Here

        }
        this.env = env;
       
        checkEnvironment( this.env );
       
        this.sessionInfo = new SessionInfo();

        initTransactionManager( this.env );
       
        // create session but bypass command service
        this.ksession = kbase.newStatefulKnowledgeSession(conf, this.env);
View Full Code Here

        }
        this.env = env;

        checkEnvironment( this.env );

        this.sessionInfo = new SessionInfo();

        initTransactionManager( this.env );

        // create session but bypass command service
        this.ksession = kbase.newStatefulKnowledgeSession( conf,
View Full Code Here

TOP

Related Classes of org.drools.persistence.info.SessionInfo

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.