ObjectDB ObjectDB

Internal Website Search

1-10 of 28 resultsRefresh
108

setMaxResults(maxResult)

Method javax.persistence.TypedQuery TypedQuery<X> setMaxResults( int maxResult ) Set the maximum number of results to retrieve. Parameters: maxResult - maximum number of results to retrieve Returns: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 2.0
108

setMaxResults(maxResult)

Method javax.persistence.Query Query setMaxResults( int maxResult ) Set the maximum number of results to retrieve. Parameters: maxResult - maximum number of results to retrieve Returns: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0
45

Setting and Tuning of JPA Queries

(setFirstResult, setMaxResults) The setFirstResult and setMaxResults methods enable defining a result ... at the beginning of the complete result list should be skipped and ignored. The setMaxResults method ... > results = query.setFirstResult(pageIx * pageSize) .setMaxResults(pageSize
19

JPA and handling large data sets

by step during the export with the query/setFirstResult() & setMaxResults(). But for large data sets ... (setFirstResult, setMaxResults) for this purpose is indeed inefficient, because some query processing is required ... and using setMaxResults may be fine. If not check if you can retrieve ranges of objects by setting both lower and upper value. support Support
19

Listing large number of complicated objects with paging.

.setFirstResult(start).setMaxResults(count).getResultList(); is quite slow. Well, after first request ... are you trying to retrieve in every query execution (setMaxResults). Does that number affect? You may try ... .setFirstResult(20).setMaxResults(10).getResultList();         System.out.println("Results
15

Performance problem

);         queryAkt.setFirstResult(i); queryAkt.setMaxResults(20); queryAkt ... AktImpl e", AktImpl.class);         queryAkt.setFirstResult(i); queryAkt.setMaxResults
11

javax.persistence.TypedQuery

to retrieve. Returns Integer.MAX_VALUE if setMaxResults was not applied to the query object. Returns: maximum ... query Since: JPA 2.0 Query setMaxResults(int maxResult) Set the maximum number of results to retrieve ... is negative Since: JPA 1.0 TypedQuery<X> setMaxResults(int maxResult) Set the maximum number of results
9

javax.persistence.Query

Integer.MAX_VALUE if setMaxResults was not applied to the query object. Returns: maximum number ... Persistence query language SELECT query or a Criteria API query Since: JPA 2.0 Query setMaxResults(int
6

getMaxResults()

Method javax.persistence.Query int getMaxResults() The maximum number of results the query object was set to retrieve. Returns Integer.MAX_VALUE if setMaxResults was not applied to the query object. Returns: maximum number of results Since: JPA 2.0
3

NPE at com.objectdb.jpa.JpaQuery.getResultList

); if (!all) { q.setMaxResults(maxResults); q.setFirstResult(firstResult ... );             if (!all) {                 q.setMaxResults(maxResults);                 q

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support