How to limit the results of a query in DB4O?

1

How can I create a query that returns a limited number of results such as limit of MySQL? I'm looking at the documentation and I'm not finding it.

    
asked by anonymous 15.03.2015 / 03:23

1 answer

1
int fromIndex = 0 
int toIndex = 250;

List<MyObject> objetos = objectContainer.query(MyObject.class).subList(fromIndex, toIndex);
    
15.03.2015 / 21:09