ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
88

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
88

getResultList()

Method javax.persistence.TypedQuery List<X> 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
30

NPE at com.objectdb.jpa.JpaQuery.getResultList

) at com.objectdb.o.QRR.b(QRR.java:197) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery ... ); } return q.getResultList(); } finally { em.close ... .setFirstResult(firstResult);             }             return q.getResultList();         }         finally
29

NPE on em.createQuery(query).getResultList()

:144) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627) at org.tynamo.seedentity.jpa ... ).getResultList();         em.getTransaction().commit();         em.close();         emf.close
29

[ObjectDB 2.6.0_04] Unexpected exception (Error 990) com.objectdb.jpa.JpaQuery.getResultList

.JpaQuery.getResultList(JpaQuery.java:716) at com.btc.ep.dal.persist.impl.PersistenceService
29

query.getResultList() throws ClassCastException

) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:665
29

Another NPE on em.createQuery(query).getResultList()

.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627) at org.tynamo.seedentity.jpa.services
28

Running JPA Queries

when exactly one result object is expected. Query.getResultList - for general use in any other case ... - for use when exactly one result object is expected. TypedQuery.getResultList - for general use in any ... (with getResultList) The following query retrieves all the Country objects in the database. The query
27

SELECT clause (JPQL / Criteria API)

> results = query.getResultList(); Because the results are managed entity objects they have all the support ... > results = query.getResultList(); Only singular value path expressions can be used in the SELECT ... ", Object[].class); List<Object[]> results = query.getResultList(); for (Object[] result : results
20

Setting and Tuning of JPA Queries

execution if invoked before a query is run using getResultList or getSingleResult. Result Range ... ) .getResultList(); These methods can be invoked in a single expression with getResultList ... .setLockMode(LockModeType.PESSIMISTIC_WRITE) .getResultList(); Notice that when a query

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