org.drools.persistence
Class SingleSessionCommandService
java.lang.Object
org.drools.persistence.SingleSessionCommandService
- All Implemented Interfaces:
- org.drools.core.command.CommandService, org.drools.core.command.SingleSessionCommandService, org.kie.api.runtime.CommandExecutor
public class SingleSessionCommandService
- extends Object
- implements org.drools.core.command.SingleSessionCommandService
|
Constructor Summary |
SingleSessionCommandService(Integer sessionId,
org.kie.api.KieBase kbase,
org.kie.api.runtime.KieSessionConfiguration conf,
org.kie.api.runtime.Environment env)
|
SingleSessionCommandService(org.kie.api.KieBase kbase,
org.kie.api.runtime.KieSessionConfiguration conf,
org.kie.api.runtime.Environment env)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleSessionCommandService
public SingleSessionCommandService(org.kie.api.KieBase kbase,
org.kie.api.runtime.KieSessionConfiguration conf,
org.kie.api.runtime.Environment env)
SingleSessionCommandService
public SingleSessionCommandService(Integer sessionId,
org.kie.api.KieBase kbase,
org.kie.api.runtime.KieSessionConfiguration conf,
org.kie.api.runtime.Environment env)
checkEnvironment
public void checkEnvironment(org.kie.api.runtime.Environment env)
initNewKnowledgeSession
protected void initNewKnowledgeSession(org.kie.api.KieBase kbase,
org.kie.api.runtime.KieSessionConfiguration conf)
initExistingKnowledgeSession
protected void initExistingKnowledgeSession(Integer sessionId,
org.kie.api.KieBase kbase,
org.kie.api.runtime.KieSessionConfiguration conf,
PersistenceContext persistenceContext)
initTransactionManager
public void initTransactionManager(org.kie.api.runtime.Environment env)
isSpringTransactionManager
public static boolean isSpringTransactionManager(Class<?> clazz)
getContext
public org.kie.internal.command.Context getContext()
- Specified by:
getContext in interface org.drools.core.command.CommandService
execute
public <T> T execute(org.kie.api.command.Command<T> command)
- Specified by:
execute in interface org.kie.api.runtime.CommandExecutor
dispose
public void dispose()
- Specified by:
dispose in interface org.drools.core.command.SingleSessionCommandService
destroy
public void destroy()
- Specified by:
destroy in interface org.drools.core.command.SingleSessionCommandService
getSessionId
public int getSessionId()
- Specified by:
getSessionId in interface org.drools.core.command.SingleSessionCommandService
getKieSession
public org.kie.api.runtime.KieSession getKieSession()
addInterceptor
public void addInterceptor(org.drools.core.command.Interceptor interceptor)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.