站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byorg.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 :


Constructor Summary
JbpmSession(JbpmSessionFactory jbpmSessionFactory, org.hibernate.Session session)
           
 
Method Summary
 void beginTransaction()
           
 void close()
           
 void commitTransaction()
           
 void commitTransactionAndClose()
           
 java.sql.Connection getConnection()
           
 ContextSession getContextSession()
           
static JbpmSession getCurrentJbpmSession()
           
 GraphSession getGraphSession()
           
 JbpmSessionFactory getJbpmSessionFactory()
           
 LoggingSession getLoggingSession()
           
 SchedulerSession getSchedulerSession()
           
 org.hibernate.Session getSession()
           
 TaskMgmtSession getTaskMgmtSession()
           
 org.hibernate.Transaction getTransaction()
           
 void rollbackTransaction()
           
 void rollbackTransactionAndClose()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmSession

public JbpmSession(JbpmSessionFactory jbpmSessionFactory,
                   org.hibernate.Session session)
Method Detail

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