Description
Class JDOQLTypedQuery provides a method to create a numeric patameter for a query:
NumericExpression<?> numericParameter(String name);
This signature does not support the creation of a numeric parameter of type NumericExpression<Double> that is then used in methods like lt or gt taking a double field as an argument.
I propose to add an overloaded method with the following signature:
<N> NumericExpression<N> numericParameter(Class<N> type, String name);
I propose a corresponding extension for methods collectionParameter, mapParameter and listParameter:
<E> CollectionExpression<Collection<E>, E> collectionParameter(Class<E> elementType, String name);
<K,V> MapExpression<Map<K,V>, K, V> mapParameter(Class<K> keyType, Class<V> valueType, String name);
<E> ListExpression<List<E>, E> listParameter(Class<E> elementType, String name);
Attachments
Issue Links
- links to