44 words

getFirstResult() - JPA Query's method

Method
javax.persistence.Query
int getFirstResult()

The position of the first result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object.
Returns:
position of the first result
Since:
JPA 2.0
Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual.

This documentation page is derived (with some adjustments) from the open source JPA 2 RI (EclipseLink)
and is available under the terms of the Eclipse Public License, v. 1.0 and Eclipse Distribution License, v. 1.0.
Object Relational Mapping (ORM) JPA 2 providers include Hibernate, EclipseLink, TopLink, OpenJPA and DataNucleus.
Object DB is not an ORM JPA implementation but an Object Database for Java with built in JPA 2 support.