org.activiti.engine.impl.NativeHistoricVariableInstanceQueryImpl Maven / Gradle / Ivy
The newest version!
package org.activiti.engine.impl;
import org.activiti.engine.history.HistoricVariableInstance;
import org.activiti.engine.history.NativeHistoricVariableInstanceQuery;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.interceptor.CommandExecutor;
import java.util.List;
import java.util.Map;
public class NativeHistoricVariableInstanceQueryImpl extends AbstractNativeQuery implements NativeHistoricVariableInstanceQuery {
private static final long serialVersionUID = 1L;
public NativeHistoricVariableInstanceQueryImpl(CommandContext commandContext) {
super(commandContext);
}
public NativeHistoricVariableInstanceQueryImpl(CommandExecutor commandExecutor) {
super(commandExecutor);
}
// results ////////////////////////////////////////////////////////////////
public List executeList(CommandContext commandContext, Map parameterMap, int firstResult, int maxResults) {
return commandContext.getHistoricVariableInstanceEntityManager().findHistoricVariableInstancesByNativeQuery(parameterMap, firstResult, maxResults);
}
public long executeCount(CommandContext commandContext, Map parameterMap) {
return commandContext.getHistoricVariableInstanceEntityManager().findHistoricVariableInstanceCountByNativeQuery(parameterMap);
}
}