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 :
- {@link org.jbpm.db.GraphSession}
- {@link org.jbpm.db.TaskMgmtSession}
- {@link org.jbpm.db.LoggingSession}
- {@link org.jbpm.db.ContextSession}
The easiest way to obtain the operations is like this :
jbpmSession.getGraphSession().someGraphDbMethod(...)
jbpmSession.getTaskMgmtSession().someTaskDbMethod(...)
jbpmSession.getLoggingSession().someLoggingDbMethod(...)
jbpmSession.getContextSession().someContextDbMethod(...)
@deprecated use {@link org.jbpm.JbpmContext} and {@link org.jbpm.JbpmConfiguration} instead.