org.activiti.engine.impl.NativeProcessDefinitionQueryImpl Maven / Gradle / Ivy
The newest version!
package org.activiti.engine.impl;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.interceptor.CommandExecutor;
import org.activiti.engine.repository.NativeProcessDefinitionQuery;
import org.activiti.engine.repository.ProcessDefinition;
import java.util.List;
import java.util.Map;
public class NativeProcessDefinitionQueryImpl extends AbstractNativeQuery implements NativeProcessDefinitionQuery {
private static final long serialVersionUID = 1L;
public NativeProcessDefinitionQueryImpl(CommandContext commandContext) {
super(commandContext);
}
public NativeProcessDefinitionQueryImpl(CommandExecutor commandExecutor) {
super(commandExecutor);
}
// results ////////////////////////////////////////////////////////////////
public List executeList(CommandContext commandContext, Map parameterMap, int firstResult, int maxResults) {
return commandContext.getProcessDefinitionEntityManager().findProcessDefinitionsByNativeQuery(parameterMap, firstResult, maxResults);
}
public long executeCount(CommandContext commandContext, Map parameterMap) {
return commandContext.getProcessDefinitionEntityManager().findProcessDefinitionCountByNativeQuery(parameterMap);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy