当前页面:
在线文档首页 >
JBoss JBPM 3.0.4 API 英文版文档
JbpmSession (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档
org.jbpm.db
Class JbpmSession
java.lang.Object
org.jbpm.db.JbpmSession
- public class JbpmSession
- extends java.lang.Object
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 modules :
The easiest way to obtain the operations is like this :
jbpmSession.getGraphSession().someGraphDbMethod(...)
jbpmSession.getTaskMgmtSession().someTaskDbMethod(...)
jbpmSession.getLoggingSession().someLoggingDbMethod(...)
jbpmSession.getContextSession().someFileDbMethod(...)
jbpmSession.getFileSession().someFileDbMethod(...)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JbpmSession
public JbpmSession(JbpmSessionFactory jbpmSessionFactory,
org.hibernate.Session session)
getJbpmSessionFactory
public JbpmSessionFactory getJbpmSessionFactory()
getConnection
public java.sql.Connection getConnection()
getSession
public org.hibernate.Session getSession()
getTransaction
public org.hibernate.Transaction getTransaction()
beginTransaction
public void beginTransaction()
commitTransaction
public void commitTransaction()
rollbackTransaction
public void rollbackTransaction()
commitTransactionAndClose
public void commitTransactionAndClose()
rollbackTransactionAndClose
public void rollbackTransactionAndClose()
getGraphSession
public GraphSession getGraphSession()
getContextSession
public ContextSession getContextSession()
getTaskMgmtSession
public TaskMgmtSession getTaskMgmtSession()
getLoggingSession
public LoggingSession getLoggingSession()
getSchedulerSession
public SchedulerSession getSchedulerSession()
close
public void close()
getCurrentJbpmSession
public static JbpmSession getCurrentJbpmSession()
Version : jbpm-3.0.4