openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [jira] [Created] (OPENJPA-1999) Optional support for non-sequential positional parameters
Date Fri, 13 May 2011 18:18:37 GMT
hi folks,
i am just following the discussion about the positional parameters.
isnt it possible to think about positional parameters just as 
'named-by-numbers' parameters?
when its possible to use q.setParameter( "x", something ) and 
q.setParameter( "y", anotherthing )
then i ( without smoking too many mushrooms ) can imagine that the 2 in 
q.setParameter( 2, whatever ) 
is very similar to "2". So, the parameter index is not like an 
array-index, but like a key in a map.
when you can handle named parameters, non-sequential index parameters 
shouldnt be too difficult ..
- technically - what the standard says might another thing.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message