package net.ttddyy.dsproxy.test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Tadaya Tsuyukubo
 * @since 1.4
 */
public class CallableBatchExecution implements BatchParameterHolder, QueryHolder {

    // TODO: implement CallableBatchExecutionEntry


    public String query;

    public List<BatchExecutionEntry> batchExecutionEntries = new ArrayList<BatchExecutionEntry>();

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

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

    @Override
    public List<BatchExecutionEntry> getBatchExecutionEntries() {
        return batchExecutionEntries;
    }

}

@@ -74,18 +74,72 @@
 .util.Li
-st
+nkedHashMap;%0Aimport java.util.List;%0Aimport java.util.Map
 ;%0A%0A/**%0A 
@@ -275,54 +275,1380 @@
     
-// TODO: implement CallableBatchExecutionEntry
+public static class CallableBatchExecutionEntry implements BatchExecutionEntry, ParameterByIndexHolder, ParameterByNameHolder %7B%0A%0A        public Map%3CString, Object%3E paramsByName = new LinkedHashMap%3CString, Object%3E();%0A        public Map%3CInteger, Object%3E paramsByIndex = new LinkedHashMap%3CInteger, Object%3E();%0A%0A        public void setParamsByName(Map%3CString, Object%3E paramsByName) %7B%0A            this.paramsByName = paramsByName;%0A        %7D%0A%0A        public void setParamsByIndex(Map%3CInteger, Object%3E paramsByIndex) %7B%0A            this.paramsByIndex = paramsByIndex;%0A        %7D%0A%0A        @Override%0A        public Map%3CString, Object%3E getParamsByName() %7B%0A            return paramsByName;%0A        %7D%0A%0A        @Override%0A        public Map%3CInteger, Object%3E getParamsByIndex() %7B%0A            return paramsByIndex;%0A        %7D%0A%0A        @Override%0A        public List%3CString%3E getParamNames() %7B%0A            return new ArrayList%3CString%3E(this.paramsByName.keySet());%0A        %7D%0A%0A        @Override%0A        public List%3CInteger%3E getParamIndexes() %7B%0A            return new ArrayList%3CInteger%3E(this.paramsByIndex.keySet());%0A        %7D%0A%0A        @Override%0A        public List%3CObject%3E getParamValues() %7B%0A            List%3CObject%3E list = new ArrayList%3CObject%3E();%0A            list.addAll(this.paramsByIndex.values());%0A            list.addAll(this.paramsByName.values());%0A            return list;%0A        %7D%0A%0A    %7D
 %0A%0A%0A 

add CallableBatchExecutionEntry