org.jbpm.db
Class LoggingSession

java.lang.Object
  extended by org.jbpm.db.LoggingSession

public class LoggingSession
extends java.lang.Object


Constructor Summary
LoggingSession(JbpmSession jbpmSession)
           
LoggingSession(org.hibernate.Session session)
           
 
Method Summary
 java.util.Map<Token,java.util.List<ProcessLog>> findLogsByProcessInstance(long processInstanceId)
          returns a map of tokens to lists.
 java.util.Map<Token,java.util.List<ProcessLog>> findLogsByProcessInstance(ProcessInstance processInstance)
          returns a map of tokens to lists.
 java.util.List<ProcessLog> findLogsByToken(long tokenId)
          collects the logs for a given token, ordered by creation time.
 java.util.List<ProcessLog> findLogsByToken(Token token)
          collects the logs for a given token, ordered by creation time.
 ProcessLog getProcessLog(long processLogId)
          get the process log for a given id.
 ProcessLog loadProcessLog(long processLogId)
          load the process log for a given id.
 void saveProcessLog(ProcessLog processLog)
          saves the given process log to the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingSession

public LoggingSession(JbpmSession jbpmSession)

LoggingSession

public LoggingSession(org.hibernate.Session session)
Method Detail

findLogsByProcessInstance

public java.util.Map<Token,java.util.List<ProcessLog>> findLogsByProcessInstance(long processInstanceId)
returns a map of tokens to lists. The lists contain the ordered logs for the given token. The lists are retrieved with findLogsByToken(long).


findLogsByProcessInstance

public java.util.Map<Token,java.util.List<ProcessLog>> findLogsByProcessInstance(ProcessInstance processInstance)
returns a map of tokens to lists. The lists contain the ordered logs for the given token. The lists are retrieved with findLogsByToken(long).


findLogsByToken

public java.util.List<ProcessLog> findLogsByToken(long tokenId)
collects the logs for a given token, ordered by creation time.


findLogsByToken

public java.util.List<ProcessLog> findLogsByToken(Token token)
collects the logs for a given token, ordered by creation time.


saveProcessLog

public void saveProcessLog(ProcessLog processLog)
saves the given process log to the database.


loadProcessLog

public ProcessLog loadProcessLog(long processLogId)
load the process log for a given id.


getProcessLog

public ProcessLog getProcessLog(long processLogId)
get the process log for a given id.



Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.