Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.opendynamic.ff.query.ParentNodeQuery Maven / Gradle / Ivy
package com.opendynamic.ff.query;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.opendynamic.ff.service.FfNodeService;
import com.opendynamic.ff.vo.Node;
@Service
public class ParentNodeQuery {
private FfNodeService ffNodeService;
private String nodeId;
private String previousNodeIds;
private String lastCompleteNodeIds;
private String subProcDefId;
private List subProcDefIdList;
private String adjustSubProcDefId;
private List adjustSubProcDefIdList;
private String nodeType;
private List nodeTypeList;
private String nodeCode;
private List nodeCodeList;
private String nodeName;
private List nodeNameList;
private String parentNodeCode;
private List parentNodeCodeList;
private String nodeEndUser;
private List nodeEndUserList;
private String nodeEndUserName;
private List nodeEndUserNameList;
private Date fromNodeEndDate;
private Date toNodeEndDate;
private String isolateSubProcDefCode;
private List isolateSubProcDefCodeList;
private String isolateSubProcStatus;
private List isolateSubProcStatusList;
private String nodeStatus;
private List nodeStatusList;
private Date fromCreationDate;
private Date toCreationDate;
private String procId;
private List procIdList;
private String adjustProcDefId;
private List adjustProcDefIdList;
private String isolateSubProcNodeId;
private List isolateSubProcNodeIdList;
private String bizId;
private List bizIdList;
private String bizType;
private List bizTypeList;
private String bizCode;
private List bizCodeList;
private String bizName;
private List bizNameList;
private String bizDesc;
private List bizDescList;
private String procStartUser;
private List procStartUserList;
private String procStartUserName;
private List procStartUserNameList;
private String procEndUser;
private List procEndUserList;
private String procEndUserName;
private List procEndUserNameList;
private Date fromProcEndDate;
private Date toProcEndDate;
private String procStatus;
private List procStatusList;
private Date fromProcCreationDate;
private Date toProcCreationDate;
private String procDefId;
private List procDefIdList;
private String procDefCode;
private List procDefCodeList;
private String procDefName;
private List procDefNameList;
private String procDefCat;
private List procDefCatList;
private Integer version;
private List versionList;
private String procDefStatus;
private List procDefStatusList;
private Boolean emptyParentNode;
private Boolean emptyPreviousNodes;
private Boolean emptyLastCompleteNodes;
private Boolean recursive;
private Boolean includeSelf;
private String dataScope;
public ParentNodeQuery(FfNodeService ffNodeService) {
super();
this.ffNodeService = ffNodeService;
}
public ParentNodeQuery setNodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
public ParentNodeQuery setPreviousNodeIds(String previousNodeIds) {
this.previousNodeIds = previousNodeIds;
return this;
}
public ParentNodeQuery setLastCompleteNodeIds(String lastCompleteNodeIds) {
this.lastCompleteNodeIds = lastCompleteNodeIds;
return this;
}
public ParentNodeQuery setSubProcDefId(String subProcDefId) {
this.subProcDefId = subProcDefId;
return this;
}
public ParentNodeQuery setSubProcDefIdList(List subProcDefIdList) {
this.subProcDefIdList = subProcDefIdList;
return this;
}
public ParentNodeQuery setAdjustSubProcDefId(String adjustSubProcDefId) {
this.adjustSubProcDefId = adjustSubProcDefId;
return this;
}
public ParentNodeQuery setAdjustSubProcDefIdList(List adjustSubProcDefIdList) {
this.adjustSubProcDefIdList = adjustSubProcDefIdList;
return this;
}
public ParentNodeQuery setNodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
public ParentNodeQuery setNodeTypeList(List nodeTypeList) {
this.nodeTypeList = nodeTypeList;
return this;
}
public ParentNodeQuery setNodeCode(String nodeCode) {
this.nodeCode = nodeCode;
return this;
}
public ParentNodeQuery setNodeCodeList(List nodeCodeList) {
this.nodeCodeList = nodeCodeList;
return this;
}
public ParentNodeQuery setNodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}
public ParentNodeQuery setNodeNameList(List nodeNameList) {
this.nodeNameList = nodeNameList;
return this;
}
public ParentNodeQuery setParentNodeCode(String parentNodeCode) {
this.parentNodeCode = parentNodeCode;
return this;
}
public ParentNodeQuery setParentNodeCodeList(List parentNodeCodeList) {
this.parentNodeCodeList = parentNodeCodeList;
return this;
}
public ParentNodeQuery setNodeEndUser(String nodeEndUser) {
this.nodeEndUser = nodeEndUser;
return this;
}
public ParentNodeQuery setNodeEndUserList(List nodeEndUserList) {
this.nodeEndUserList = nodeEndUserList;
return this;
}
public ParentNodeQuery setNodeEndUserName(String nodeEndUserName) {
this.nodeEndUserName = nodeEndUserName;
return this;
}
public ParentNodeQuery setNodeEndUserNameList(List nodeEndUserNameList) {
this.nodeEndUserNameList = nodeEndUserNameList;
return this;
}
public ParentNodeQuery setFromNodeEndDate(Date fromNodeEndDate) {
this.fromNodeEndDate = fromNodeEndDate;
return this;
}
public ParentNodeQuery setToNodeEndDate(Date toNodeEndDate) {
this.toNodeEndDate = toNodeEndDate;
return this;
}
public ParentNodeQuery setIsolateSubProcDefCode(String isolateSubProcDefCode) {
this.isolateSubProcDefCode = isolateSubProcDefCode;
return this;
}
public ParentNodeQuery setIsolateSubProcDefCodeList(List isolateSubProcDefCodeList) {
this.isolateSubProcDefCodeList = isolateSubProcDefCodeList;
return this;
}
public ParentNodeQuery setIsolateSubProcStatus(String isolateSubProcStatus) {
this.isolateSubProcStatus = isolateSubProcStatus;
return this;
}
public ParentNodeQuery setIsolateSubProcStatusList(List isolateSubProcStatusList) {
this.isolateSubProcStatusList = isolateSubProcStatusList;
return this;
}
public ParentNodeQuery setNodeStatus(String nodeStatus) {
this.nodeStatus = nodeStatus;
return this;
}
public ParentNodeQuery setNodeStatusList(List nodeStatusList) {
this.nodeStatusList = nodeStatusList;
return this;
}
public ParentNodeQuery setFromCreationDate(Date fromCreationDate) {
this.fromCreationDate = fromCreationDate;
return this;
}
public ParentNodeQuery setToCreationDate(Date toCreationDate) {
this.toCreationDate = toCreationDate;
return this;
}
public ParentNodeQuery setProcId(String procId) {
this.procId = procId;
return this;
}
public ParentNodeQuery setProcIdList(List procIdList) {
this.procIdList = procIdList;
return this;
}
public ParentNodeQuery setAdjustProcDefId(String adjustProcDefId) {
this.adjustProcDefId = adjustProcDefId;
return this;
}
public ParentNodeQuery setAdjustProcDefIdList(List adjustProcDefIdList) {
this.adjustProcDefIdList = adjustProcDefIdList;
return this;
}
public ParentNodeQuery setIsolateSubProcNodeId(String isolateSubProcNodeId) {
this.isolateSubProcNodeId = isolateSubProcNodeId;
return this;
}
public ParentNodeQuery setIsolateSubProcNodeIdList(List isolateSubProcNodeIdList) {
this.isolateSubProcNodeIdList = isolateSubProcNodeIdList;
return this;
}
public ParentNodeQuery setBizId(String bizId) {
this.bizId = bizId;
return this;
}
public ParentNodeQuery setBizIdList(List bizIdList) {
this.bizIdList = bizIdList;
return this;
}
public ParentNodeQuery setBizType(String bizType) {
this.bizType = bizType;
return this;
}
public ParentNodeQuery setBizTypeList(List bizTypeList) {
this.bizTypeList = bizTypeList;
return this;
}
public ParentNodeQuery setBizCode(String bizCode) {
this.bizCode = bizCode;
return this;
}
public ParentNodeQuery setBizCodeList(List bizCodeList) {
this.bizCodeList = bizCodeList;
return this;
}
public ParentNodeQuery setBizName(String bizName) {
this.bizName = bizName;
return this;
}
public ParentNodeQuery setBizNameList(List bizNameList) {
this.bizNameList = bizNameList;
return this;
}
public ParentNodeQuery setBizDesc(String bizDesc) {
this.bizDesc = bizDesc;
return this;
}
public ParentNodeQuery setBizDescList(List bizDescList) {
this.bizDescList = bizDescList;
return this;
}
public ParentNodeQuery setProcStartUser(String procStartUser) {
this.procStartUser = procStartUser;
return this;
}
public ParentNodeQuery setProcStartUserList(List procStartUserList) {
this.procStartUserList = procStartUserList;
return this;
}
public ParentNodeQuery setProcStartUserName(String procStartUserName) {
this.procStartUserName = procStartUserName;
return this;
}
public ParentNodeQuery setProcStartUserNameList(List procStartUserNameList) {
this.procStartUserNameList = procStartUserNameList;
return this;
}
public ParentNodeQuery setProcEndUser(String procEndUser) {
this.procEndUser = procEndUser;
return this;
}
public ParentNodeQuery setProcEndUserList(List procEndUserList) {
this.procEndUserList = procEndUserList;
return this;
}
public ParentNodeQuery setProcEndUserName(String procEndUserName) {
this.procEndUserName = procEndUserName;
return this;
}
public ParentNodeQuery setProcEndUserNameList(List procEndUserNameList) {
this.procEndUserNameList = procEndUserNameList;
return this;
}
public ParentNodeQuery setFromProcEndDate(Date fromProcEndDate) {
this.fromProcEndDate = fromProcEndDate;
return this;
}
public ParentNodeQuery setToProcEndDate(Date toProcEndDate) {
this.toProcEndDate = toProcEndDate;
return this;
}
public ParentNodeQuery setProcStatus(String procStatus) {
this.procStatus = procStatus;
return this;
}
public ParentNodeQuery setProcStatusList(List procStatusList) {
this.procStatusList = procStatusList;
return this;
}
public ParentNodeQuery setFromProcCreationDate(Date fromProcCreationDate) {
this.fromProcCreationDate = fromProcCreationDate;
return this;
}
public ParentNodeQuery setToProcCreationDate(Date toProcCreationDate) {
this.toProcCreationDate = toProcCreationDate;
return this;
}
public ParentNodeQuery setProcDefId(String procDefId) {
this.procDefId = procDefId;
return this;
}
public ParentNodeQuery setProcDefIdList(List procDefIdList) {
this.procDefIdList = procDefIdList;
return this;
}
public ParentNodeQuery setProcDefCode(String procDefCode) {
this.procDefCode = procDefCode;
return this;
}
public ParentNodeQuery setProcDefCodeList(List procDefCodeList) {
this.procDefCodeList = procDefCodeList;
return this;
}
public ParentNodeQuery setProcDefName(String procDefName) {
this.procDefName = procDefName;
return this;
}
public ParentNodeQuery setProcDefNameList(List procDefNameList) {
this.procDefNameList = procDefNameList;
return this;
}
public ParentNodeQuery setProcDefCat(String procDefCat) {
this.procDefCat = procDefCat;
return this;
}
public ParentNodeQuery setProcDefCatList(List procDefCatList) {
this.procDefCatList = procDefCatList;
return this;
}
public ParentNodeQuery setVersion(Integer version) {
this.version = version;
return this;
}
public ParentNodeQuery setVersionList(List versionList) {
this.versionList = versionList;
return this;
}
public ParentNodeQuery setProcDefStatus(String procDefStatus) {
this.procDefStatus = procDefStatus;
return this;
}
public ParentNodeQuery setProcDefStatusList(List procDefStatusList) {
this.procDefStatusList = procDefStatusList;
return this;
}
public ParentNodeQuery setEmptyParentNode(Boolean emptyParentNode) {
this.emptyParentNode = emptyParentNode;
return this;
}
public ParentNodeQuery setEmptyPreviousNodes(Boolean emptyPreviousNodes) {
this.emptyPreviousNodes = emptyPreviousNodes;
return this;
}
public ParentNodeQuery setEmptyLastCompleteNodes(Boolean emptyLastCompleteNodes) {
this.emptyLastCompleteNodes = emptyLastCompleteNodes;
return this;
}
public ParentNodeQuery setRecursive(Boolean recursive) {
this.recursive = recursive;
return this;
}
public ParentNodeQuery setIncludeSelf(Boolean includeSelf) {
this.includeSelf = includeSelf;
return this;
}
public ParentNodeQuery setDataScope(String dataScope) {
this.dataScope = dataScope;
return this;
}
/**
* 查询对象列表。对象格式为Map。
*
* @return
*/
public List> queryForMapList() {
return ffNodeService.selectParentNode(nodeId, previousNodeIds, lastCompleteNodeIds, subProcDefId, subProcDefIdList, adjustSubProcDefId, adjustSubProcDefIdList, nodeType, nodeTypeList, nodeCode, nodeCodeList, nodeName, nodeNameList, parentNodeCode, parentNodeCodeList, nodeEndUser, nodeEndUserList, nodeEndUserName, nodeEndUserNameList, fromNodeEndDate, toNodeEndDate, isolateSubProcDefCode, isolateSubProcDefCodeList, isolateSubProcStatus, isolateSubProcStatusList, nodeStatus, nodeStatusList, fromCreationDate, toCreationDate, procId, procIdList, adjustProcDefId, adjustProcDefIdList, isolateSubProcNodeId, isolateSubProcNodeIdList, bizId, bizIdList, bizType, bizTypeList, bizCode, bizCodeList, bizName, bizNameList, bizDesc, bizDescList, procStartUser, procStartUserList, procStartUserName,
procStartUserNameList, procEndUser, procEndUserList, procEndUserName, procEndUserNameList, fromProcEndDate, toProcEndDate, procStatus, procStatusList, fromProcCreationDate, toProcCreationDate, procDefId, procDefIdList, procDefCode, procDefCodeList, procDefName, procDefNameList, procDefCat, procDefCatList, version, versionList, procDefStatus, procDefStatusList, emptyParentNode, emptyPreviousNodes, emptyLastCompleteNodes, recursive, includeSelf, dataScope);
}
/**
* 查询单个对象。对象格式为Map。
*
* @return
*/
public Map queryForMap() {
List> result = queryForMapList();
if (result.size() == 1) {
return result.get(0);
}
else {
return null;
}
}
/**
* 查询对象列表。对象格式为实体Bean。
*
* @return
*/
public List queryForObjectList() {
List> result = queryForMapList();
List nodeList = new ArrayList<>();
for (int i = 0; i < result.size(); i++) {
nodeList.add(new Node(result.get(i)));
}
return nodeList;
}
/**
* 查询单个对象。对象格式为实体Bean。
*
* @return
*/
public Node queryForObject() {
List> result = queryForMapList();
if (result.size() == 1) {
return new Node(result.get(0));
}
else {
return null;
}
}
/**
* 查询总数。
*
* @return
*/
public int count() {
return queryForMapList().size();
}
}