[
https://issues.apache.org/jira/browse/JENA-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886068#comment-15886068
]
Aleksandar Babic commented on JENA-1295:
----------------------------------------
First, thanks for resolving the issue.
Based on my usage, I'd like to have methods: {code}addValue(Object var,
Collection<Object> value)
addValues(Map<Object, Collection<Object>> values)
{code}.
Adding variable and associated values separately, with two methods, isn't so
intuitive. Let's say I'm not so experienced with library and having IDE's
autocomplete on builder.addDataBlock. Based on method name, I'll become
definitely confused about method functionality, and for sure I'll not relate
that with VALUES block. More, I cannot know what is happening when I just add
variable without values, or vice-versa. It's not so great :(. So, variable and
related value should be added together.
P.S. Just after I post the ticket, I realised there is a method
Query#setValuesDataBlock(List<Var> variables, List<Binding> values), so I
organised my code around that. However having this in SelectBuilder is much
preferable and I'll update my code later.
> Add support to VALUES in SelectBuilder
> --------------------------------------
>
> Key: JENA-1295
> URL: https://issues.apache.org/jira/browse/JENA-1295
> Project: Apache Jena
> Issue Type: Wish
> Components: QueryBuilder
> Reporter: Aleksandar Babic
> Assignee: Claude Warren
> Fix For: Jena 3.3.0
>
>
> It seems that QueryBuilder is lacking on support for building VALUES block,
> or there is no obvious method to do that.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)