About results

191-200 of 200Refresh
JPA Doc
2

construct(resultClass, selections)

. This method is used to specify a constructor that will be applied to the results of the query execution. If the constructor is for an entity class, the resulting entities will be in the new state
JPA Doc
2

construct(resultClass, selections)

. This method is used to specify a constructor that will be applied to the results of the query execution. If the constructor is for an entity class, the resulting entities will be in the new state
JPA Doc
2

createNamedQuery(name, resultClass)

metadata resultClass - the type of the query result Returns: the new query instance Throws ... to be invalid or if the query result is found to not be assignable to the specified type Since: JPA 2.0
JPA Doc
2

createQuery(qlString, resultClass)

resultClass - the type of the query result Returns: the new query instance Throws: IllegalArgumentException - if the query string is found to be invalid or if the query result is found to not be assignable to the specified type Since: JPA 2.0
JPA Doc
2

createQuery(resultClass)

Method javax.persistence.criteria.CriteriaBuilder CriteriaQuery createQuery(   Class resultClass ) Create a CriteriaQuery object with the specified result type. Parameters: resultClass - type of the query result Returns: criteria query object Since: JPA 2.0
JPA Doc
2

exists(subquery)

Method javax.persistence.criteria.CriteriaBuilder Predicate exists(   Subquery subquery ) Create a predicate testing the existence of a subquery result. Parameters: subquery - subquery whose result is to be tested Returns: exists predicate Since: JPA 2.0
JPA Doc
2

getFirstResult()

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.
JPA Doc
2

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
JPA Doc
2

getResultList()

Method javax.persistence.Query List getResultList() Execute a SELECT query and return the query results as an untyped List. Returns: a list of the results Throws: IllegalStateException - if called for a Java Persistence query language UPDATE or DELETE statement QueryTimeoutException - if the query
JPA Doc
2

getResultList()

Method javax.persistence.TypedQuery List getResultList() Execute a SELECT query and return the query results as a typed List. Returns: a list of the results Throws: IllegalStateException - if called for a Java Persistence query language UPDATE or DELETE statement QueryTimeoutException