net.ttddyy.dsproxy.QueryInfo Maven / Gradle / Ivy
package net.ttddyy.dsproxy;
import net.ttddyy.dsproxy.proxy.ParameterSetOperation;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Hold query and parameter information.
*
* For Statement batch execution, there will be multiple QueryInfo.
* For Prepared/Callable batch execution, there will be one QueryInfo with multiple elements in parameters.
* For batch execution, single instance of this class represents each batch entry.
*
* @author Tadaya Tsuyukubo
*/
public class QueryInfo {
private String query;
private List> parametersList = new ArrayList>();
public QueryInfo() {
}
public QueryInfo(String query) {
this.query = query;
}
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
}
/**
* Deprecated: Since return doesn't contain method information, {@link #getParametersList()} is now used.
*
* @return list of parameter map, key is first arg as string, value is second arg.
* @deprecated use {@link #getParametersList()}
*/
@Deprecated
public List