query using java API

Hi all,

When I make a query from browser or Interactive Interface I can use an expression like:
I’m interesting on to receive a result with a specific range of documents such as (11,10)
Is there a way to perform the same query using taminoclient.jar ?
If no, is there a workaround in order to obtain the same result?



The TaminoClient pageSize property is the “10” in your example

So if you instance a TaminoClient object with a pageSize of 10 or set the pageSize property subsequently

TaminoClient instances have a query method which take an optional offset parameter - the “11” in your case.
TaminoResult query(java.lang.String query, int offset)

so to adapt the documentation example

import com.softwareag.tamino.api.dom.*;

try {
TaminoClient tamino = new TaminoClient(“http://localhost/tamino/mydb”);

TaminoResult tr = tamino.query( " entry[@name=“Jackson” ",11);

catch ( Exception rx ) {

thank you very much !!

this is just that I wanted to obtain.