All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.engine.impl.NativeDeploymentQueryImpl 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.Deployment;
import org.activiti.engine.repository.NativeDeploymentQuery;

import java.util.List;
import java.util.Map;

public class NativeDeploymentQueryImpl extends AbstractNativeQuery implements NativeDeploymentQuery {

  private static final long serialVersionUID = 1L;

  public NativeDeploymentQueryImpl(CommandContext commandContext) {
    super(commandContext);
  }

  public NativeDeploymentQueryImpl(CommandExecutor commandExecutor) {
    super(commandExecutor);
  }

  // results ////////////////////////////////////////////////////////////////

  public List executeList(CommandContext commandContext, Map parameterMap, int firstResult, int maxResults) {
    return commandContext.getDeploymentEntityManager().findDeploymentsByNativeQuery(parameterMap, firstResult, maxResults);
  }

  public long executeCount(CommandContext commandContext, Map parameterMap) {
    return commandContext.getDeploymentEntityManager().findDeploymentCountByNativeQuery(parameterMap);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy