cn.featherfly.hammer.tpl.SimpleExecution Maven / Gradle / Ivy
package cn.featherfly.hammer.tpl;
import cn.featherfly.common.lang.AssertIllegalArgument;
/**
*
* 简单查询
*
*
* @author zhongj
*/
public class SimpleExecution implements Execution {
private String execute;
private Object[] params;
/**
* @param execute execute string
* @param params params
*/
public SimpleExecution(String execute, Object... params) {
AssertIllegalArgument.isNotEmpty(execute, "execute string");
this.execute = execute;
this.params = params;
}
/**
* 返回params
*
* @return params
*/
@Override
public Object[] getParams() {
return params;
}
/**
* {@inheritDoc}
*/
@Override
public String getExecute() {
return execute;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy