package net.ttddyy.dsproxy.test;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Tadaya Tsuyukubo
 * @since 1.4
 */
public class PreparedExecution extends BaseQueryExecution implements QueryHolder, ParameterByIndexHolder {

    public String query;
    public Map<Integer, Object> paramsByIndex = new LinkedHashMap<Integer, Object>();

    public Map<String, Object> params = new LinkedHashMap<String, Object>();

    @Override
    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public List<String> getParamKeys() {
        return new ArrayList<String>(this.params.keySet());
    }

    public List<Object> getParamValues() {
        return new ArrayList<Object>(this.params.values());
    }

    @Override
    public Map<Integer, Object> getParamsByIndex() {
        return this.paramsByIndex;
    }

    @Override
    public List<Integer> getParamIndexes() {
        return new ArrayList<Integer>(this.paramsByIndex.keySet());
    }
}

@@ -407,86 +407,8 @@
 );%0A%0A
-    public Map%3CString, Object%3E params = new LinkedHashMap%3CString, Object%3E();%0A%0A
     
@@ -557,394 +557,8 @@
  %7D%0A%0A
-    public Map%3CString, Object%3E getParams() %7B%0A        return params;%0A    %7D%0A%0A    public void setParams(Map%3CString, Object%3E params) %7B%0A        this.params = params;%0A    %7D%0A%0A    public List%3CString%3E getParamKeys() %7B%0A        return new ArrayList%3CString%3E(this.params.keySet());%0A    %7D%0A%0A    public List%3CObject%3E getParamValues() %7B%0A        return new ArrayList%3CObject%3E(this.params.values());%0A    %7D%0A%0A
     

remove unused params