|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.process.audit.JPAProcessInstanceDbLog
public class JPAProcessInstanceDbLog
This class is essentially a very simple implementation of a service that deals with ProcessInstanceLog entities.
Please see the public methods for the interface of this service. Similar to the "ProcessInstanceDbLog", the idea here is that we have a entity manager factory (similar to a session factory) that we repeatedly use to generate an entity manager (which is a persistence context) for the specific service command. While ProcessInstanceLog entities do not contain LOB's (which sometimes necessitate the use of tx's even in read situations, we use transactions here none-the-less, just to be safe. Obviously, if there is already a running transaction present, we don't do anything to it. At the end of every command, we make sure to close the entity manager we've been using -- which also means that we detach any entities that might be associated with the entity manager/persistence context. After all, this is a service which means our philosophy here is to provide a real interface, and not a leaky one.
Constructor Summary | |
---|---|
JPAProcessInstanceDbLog()
Deprecated. |
|
JPAProcessInstanceDbLog(Environment env)
Deprecated. |
Method Summary | |
---|---|
static void |
clear()
|
static void |
dispose()
Deprecated. |
protected void |
finalize()
|
static List<ProcessInstanceLog> |
findActiveProcessInstances(String processId)
|
static List<NodeInstanceLog> |
findNodeInstances(long processInstanceId)
|
static List<NodeInstanceLog> |
findNodeInstances(long processInstanceId,
String nodeId)
|
static ProcessInstanceLog |
findProcessInstance(long processInstanceId)
|
static List<ProcessInstanceLog> |
findProcessInstances()
|
static List<ProcessInstanceLog> |
findProcessInstances(String processId)
|
static List<ProcessInstanceLog> |
findSubProcessInstances(long processInstanceId)
|
static List<VariableInstanceLog> |
findVariableInstances(long processInstanceId)
|
static List<VariableInstanceLog> |
findVariableInstances(long processInstanceId,
String variableId)
|
void |
og()
|
static void |
setEnvironment(Environment newEnv)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public JPAProcessInstanceDbLog()
@Deprecated public JPAProcessInstanceDbLog(Environment env)
Method Detail |
---|
public static void setEnvironment(Environment newEnv)
public void og()
public static List<ProcessInstanceLog> findProcessInstances()
public static List<ProcessInstanceLog> findProcessInstances(String processId)
public static List<ProcessInstanceLog> findActiveProcessInstances(String processId)
public static ProcessInstanceLog findProcessInstance(long processInstanceId)
public static List<ProcessInstanceLog> findSubProcessInstances(long processInstanceId)
public static List<NodeInstanceLog> findNodeInstances(long processInstanceId)
public static List<NodeInstanceLog> findNodeInstances(long processInstanceId, String nodeId)
public static List<VariableInstanceLog> findVariableInstances(long processInstanceId)
public static List<VariableInstanceLog> findVariableInstances(long processInstanceId, String variableId)
public static void clear()
@Deprecated public static void dispose()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |