return prepareUtilQuery(name, sql, parameterTypes);
}
public PreparedQuery prepareUtilQuery(String name, String sql, List<Type> parameterTypes) throws IOException {
PrepareCommand prep = protocol.createPrepare(name, sql, parameterTypes);
protocol.execute(prep);
if (prep.getError() != null) {
throw new IOException("unable to prepare query: " + prep.getError().getMessage());
}
PreparedQuery pq = new PreparedQuery(name, prep.getDescribedParameterTypes(), prep.getDescribedResultFields());
utilQueries.put(name, pq);
return pq;
}