Class JPASessionFactory
- java.lang.Object
-
- org.jbpm.runtime.manager.impl.factory.JPASessionFactory
-
- All Implemented Interfaces:
org.kie.internal.runtime.manager.SessionFactory
public class JPASessionFactory extends Object implements org.kie.internal.runtime.manager.SessionFactory
SessionFactory implementation that is backed by a database for storingKieSessiondata.
-
-
Constructor Summary
Constructors Constructor Description JPASessionFactory(org.kie.api.runtime.manager.RuntimeEnvironment environment, String owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddInterceptors(org.kie.api.runtime.KieSession ksession)voidclose()org.kie.api.runtime.KieSessionfindKieSessionById(Long sessionId)org.kie.api.runtime.KieSessionnewKieSession()voidonDispose(Long sessionId)
-
-
-
Constructor Detail
-
JPASessionFactory
public JPASessionFactory(org.kie.api.runtime.manager.RuntimeEnvironment environment, String owner)
-
-
Method Detail
-
newKieSession
public org.kie.api.runtime.KieSession newKieSession()
- Specified by:
newKieSessionin interfaceorg.kie.internal.runtime.manager.SessionFactory
-
findKieSessionById
public org.kie.api.runtime.KieSession findKieSessionById(Long sessionId)
- Specified by:
findKieSessionByIdin interfaceorg.kie.internal.runtime.manager.SessionFactory
-
close
public void close()
- Specified by:
closein interfaceorg.kie.internal.runtime.manager.SessionFactory
-
addInterceptors
protected void addInterceptors(org.kie.api.runtime.KieSession ksession)
-
onDispose
public void onDispose(Long sessionId)
- Specified by:
onDisposein interfaceorg.kie.internal.runtime.manager.SessionFactory
-
-