|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.db.JbpmSession
JbpmContext and JbpmConfiguration instead.
public class JbpmSession
represents the connection to the jbpm database. You can obtain a JbpmSession with
JbpmSession jbpmSession = jbpmSessionFactory.openJbpmSession();or
Connection jdbcConnection = ...; JbpmSession jbpmSession = jbpmSessionFactory.openJbpmSession(jdbcConnection);The actual database operations are defined in the module sessions : The easiest way to obtain the operations is like this :
jbpmSession.getGraphSession().someGraphDbMethod(...)
jbpmSession.getTaskMgmtSession().someTaskDbMethod(...)
jbpmSession.getLoggingSession().someLoggingDbMethod(...)
jbpmSession.getContextSession().someContextDbMethod(...)
| 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. |
Connection |
getConnection()
Deprecated. |
ContextSession |
getContextSession()
Deprecated. |
static JbpmSession |
getCurrentJbpmSession()
Deprecated. use JbpmConfiguration.getCurrentJbpmContext() instead. |
GraphSession |
getGraphSession()
Deprecated. |
JbpmSessionFactory |
getJbpmSessionFactory()
Deprecated. |
JobSession |
getJobSession()
Deprecated. |
LoggingSession |
getLoggingSession()
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 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 JobSession getJobSession()
public void close()
public void pushCurrentSession()
public static JbpmSession getCurrentJbpmSession()
JbpmConfiguration.getCurrentJbpmContext() instead.
public void popCurrentSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||