Hi Toni,
> The Javadoc is not written very clear.
That might be true in the sense that it doesn’t point out the difference between XQuery and X-Query. The rest is ok, but could probably be made better.
> Let me summarize the actual facts:
> 1. Both hasCount() & getCount() only work for X-Query
Not true. hasCount() works for XQuery (it always indicates that no count is available).
> 2. hasCount() give “true” only for X-Query with cursor i.e. _xql=(query,5)
True.
> 3. getCount() is very strange. For _xql=(query,5), getCount() returns total query count but not 5.
Count is an information calculated by the Tamino XML Server. It always is the total count of the query result (see Javadoc).
> I expect getCount() function will be available for XQuery in next version as well.
Sorry, this is currently not planned.
> API Doc is better written.
Yes, we definitivly need to clarify the explanation.
Best regards,
Christian Gengenbach.
#API-Management#webMethods#webMethods-Tamino-XML-Server-APIs