[ https://issues.apache.org/jira/browse/JDO-777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Bouschen updated JDO-777: --------------------------------- Summary: Adding overloaded methods to JDOQLTypedQuery: numericParameter, collectionParameter, mapParameter, and listParameter (was: Changing the signature of JDOQLTypedQuery.numericParameter, listParameter, setParameter, and mapParameter) > Adding overloaded methods to JDOQLTypedQuery: numericParameter, > collectionParameter, mapParameter, and listParameter > -------------------------------------------------------------------------------------------------------------------- > > Key: JDO-777 > URL: https://issues.apache.org/jira/browse/JDO-777 > Project: JDO > Issue Type: Improvement > Components: api > Affects Versions: JDO 3.1 > Reporter: Michael Bouschen > Priority: Major > Fix For: JDO 3.2 > > > 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: > {{<{color:#20999d}N{color}> NumericExpression<{color:#20999d}N{color}> > numericParameter(Class<{color:#20999d}N{color}> type, String name);}} > I propose a corresponding extension for methods collectionParameter, > mapParameter and listParameter: > {{<{color:#20999d}E{color}> > CollectionExpression<Collection<{color:#20999d}E{color}>, > {color:#20999d}E{color}> collectionParameter(Class<{color:#20999d}E{color}> > elementType, String name);}} > {{<{color:#20999d}K{color},{color:#20999d}V{color}> > MapExpression<Map<{color:#20999d}K{color},{color:#20999d}V{color}>, > {color:#20999d}K{color}, {color:#20999d}V{color}> > mapParameter(Class<{color:#20999d}K{color}> keyType, > Class<{color:#20999d}V{color}> valueType, String name);}} > {{<{color:#20999d}E{color}> ListExpression<List<{color:#20999d}E{color}>, > {color:#20999d}E{color}> listParameter(Class<{color:#20999d}E{color}> > elementType, String name);}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)