About getSingleResult

1-10 of 94Refresh
JPA Doc
119

getSingleResult()

Method javax.persistence.Query Object getSingleResult() Execute a SELECT query that returns a single untyped result. Returns: the result Throws: NoResultException - if there is no result NonUniqueResultException - if more than one result IllegalStateException - if called for a Java Persistence
JPA Doc
119

getSingleResult()

Method javax.persistence.TypedQuery X getSingleResult() Execute a SELECT query that returns a single result. Returns: the result Throws: NoResultException - if there is no result NonUniqueResultException - if more than one result IllegalStateException - if called for a Java Persistence query
Manual
38

Running JPA Queries [2011-09-21]

The Query interface defines two methods for running SELECT queries: Query.getSingleResult - for use ... . Similarly, the TypedQuery interface defines the following methods: TypedQuery.getSingleResult ... (with getSingleResult) The getResultList method (which was discussed above) can also be used to run queries
Manual
38

Running JPA Queries

The Query interface defines two methods for running SELECT queries: Query.getSingleResult - for use ... . Similarly, the TypedQuery interface defines the following methods: TypedQuery.getSingleResult ... (with getSingleResult) The getResultList method (which was discussed above) can also be used to run queries
Forum
38

_PersistenceException: Type is not found on getSingleResult.

_PersistenceException: Type is not found on getSingleResult.
Manual
27

Online Backup

.createQuery("objectdb backup").getSingleResult(); The backup query string is always exactly "objectdb backup ... ");     backupQuery.setParameter("target", new java.io.File("c:\\backup"));     backupQuery.getSingleResult ... .setParameter("target", "backup"); backupQuery.getSingleResult(); When a string is specified as
Manual
27

CRUD Database Operations with JPA [2011-02-11]

p"); System.out.println("Total Points: " + q1.getSingleResult()); The query string ("SELECT ... . The getSingleResult method executes the query and returns the result. It should only be used ... "); System.out.println("Average X: " + q2.getSingleResult()); The new query returns a Double
Manual
27

CRUD Database Operations with JPA

p"); System.out.println("Total Points: " + q1.getSingleResult()); The query string ("SELECT ... . The getSingleResult method executes the query and returns the result. It should only be used ... "); System.out.println("Average X: " + q2.getSingleResult()); The new query returns a Double
Manual
27

Query Parameters in JPA [2011-04-01]

("name", name).getSingleResult(); } The WHERE clause reduces the query results to Country objects ... on which it was invoked), so invocation of getSingleResult can be chained to the same expression ... .setParameter(1, name).getSingleResult(); } The form of ordinal parameters is a question mark
Manual
27

Query Parameters in JPA

("name", name).getSingleResult(); } The WHERE clause reduces the query results to Country objects ... on which it was invoked), so invocation of getSingleResult can be chained to the same expression ... .setParameter(1, name).getSingleResult(); } The form of ordinal parameters is a question mark