* @param parameterTypes The {@link ParameterType}s.
* @param defaultValues The default values to use.
* @return The {@link Query}.
*/
private Query createQuery(String cypher, List<ParameterType> parameterTypes, Map<String, Object> defaultValues) {
Query query = new Query();
query.setCypher(cypher);
for (ParameterType parameterType : parameterTypes) {
query.getParameters().put(parameterType.getName(), getValue(parameterType.getType(), parameterType.getValue()));
}
return query;
}