persistencesession.java
来自「一个java工作流引擎」· Java 代码 · 共 60 行
JAVA
60 行
package org.jbpm.persistence;
import java.util.*;
import java.util.Collection;
import java.util.List;
import org.jbpm.model.definition.impl.*;
/**
* is a session with a persistent object data store.
*/
public interface PersistenceSession {
// object methods
Object load(Class clazz, Long id);
// finders...
/**
* @return the latest process definition or null if no such definition is present.
*/
DefinitionImpl findLatestDefinition(String name);
/**
* retrieves the latest version of every process.
*/
List findAllDefinitions();
/**
* retrieves the tasklist
*/
Collection findTokensByActor(String actorId);
/**
* retrieves the undoable invocation logs for the given process definition
* after (or at) the given date sorted by date (descending).
*/
List findUndoableInvocationLogs(Long processInstanceId, Date date);
/**
* searches for all jobs that are past their dueDate.
*/
Iterator findJobsToDo();
/**
* searches for all jobs by reference.
*/
List findJobsByReference(String reference);
/**
* retrieves a file for the given definition.
* used by the database file manager.
*/
FileImpl findFile(Long definitionId, String fileName);
/**
* closes this session.
*/
void close();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?