QUERY_TYPES.add(QUERY_TYPE_DYNAMIC_PARAMETER);
}
public static Query getQuery(String sql, String queryType){
if(QUERY_TYPE_STATIC.equals(queryType)){
return new StaticQuery(sql);
}else if(QUERY_TYPE_SIMPLE_PARAMETER.equals(queryType)){
return new SimpleParameterQuery(sql);
}else if(QUERY_TYPE_DYNAMIC_PARAMETER.equals(queryType)){
return new DynamicParameterQuery(sql);
}else{