if(startIndex>=0 && length>=0){
//List values = Arrays.asList(sql.getValues());
ObjectBuffered values = sql.getValueBuffered();
values.append(new Integer(startIndex));
values.append(new Integer(length));
return executeStoredProcedure(sql.getSQLString(), values.toArray(), doClazz);
}else{
return executeStoredProcedure(sql.getSQLString(), sql.getValues(), doClazz);
}
case SQL.UNDEFINED_SP:
return executeStoredProcedure(sql.getSQLString(), sql.getValues(), doClazz);