|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.db.JbpmSession
JbpmContext
and JbpmConfiguration
instead.
public class JbpmSession
represents the connection to the jbpm database. You can obtain a DbSession with
DbSession dbSession = dbSessionFactory.openDbSession();or
Connection jdbcConnection = ...; DbSession dbSession = dbSessionFactory.openDbSession(jdbcConnection);The actual database operations are defined in the module sessions :
GraphSession
TaskMgmtSession
LoggingSession
org.jbpm.db.FileSession
jbpmSession.getGraphSession().someGraphDbMethod(...)
jbpmSession.getTaskMgmtSession().someTaskDbMethod(...)
jbpmSession.getLoggingSession().someLoggingDbMethod(...)
jbpmSession.getContextSession().someFileDbMethod(...)
jbpmSession.getFileSession().someFileDbMethod(...)
Constructor Summary | |
---|---|
JbpmSession(JbpmSessionFactory jbpmSessionFactory,
org.hibernate.Session session)
Deprecated. |
|
JbpmSession(org.hibernate.Session session)
Deprecated. |
Method Summary | |
---|---|
void |
beginTransaction()
Deprecated. |
void |
close()
Deprecated. |
void |
commitTransaction()
Deprecated. |
void |
commitTransactionAndClose()
Deprecated. |
java.sql.Connection |
getConnection()
Deprecated. |
ContextSession |
getContextSession()
Deprecated. |
static JbpmSession |
getCurrentJbpmSession()
Deprecated. use org.jbpm.tc.db.JbpmSessionContext instead. |
GraphSession |
getGraphSession()
Deprecated. |
JbpmSessionFactory |
getJbpmSessionFactory()
Deprecated. |
LoggingSession |
getLoggingSession()
Deprecated. |
SchedulerSession |
getSchedulerSession()
Deprecated. |
org.hibernate.Session |
getSession()
Deprecated. |
TaskMgmtSession |
getTaskMgmtSession()
Deprecated. |
org.hibernate.Transaction |
getTransaction()
Deprecated. |
void |
popCurrentSession()
Deprecated. |
void |
pushCurrentSession()
Deprecated. |
void |
rollbackTransaction()
Deprecated. |
void |
rollbackTransactionAndClose()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JbpmSession(JbpmSessionFactory jbpmSessionFactory, org.hibernate.Session session)
public JbpmSession(org.hibernate.Session session)
Method Detail |
---|
public JbpmSessionFactory getJbpmSessionFactory()
public java.sql.Connection getConnection()
public org.hibernate.Session getSession()
public org.hibernate.Transaction getTransaction()
public void beginTransaction()
public void commitTransaction()
public void rollbackTransaction()
public void commitTransactionAndClose()
public void rollbackTransactionAndClose()
public GraphSession getGraphSession()
public ContextSession getContextSession()
public TaskMgmtSession getTaskMgmtSession()
public LoggingSession getLoggingSession()
public SchedulerSession getSchedulerSession()
public void close()
public void pushCurrentSession()
public static JbpmSession getCurrentJbpmSession()
org.jbpm.tc.db.JbpmSessionContext
instead.
public void popCurrentSession()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |