About getSingleResult

1-10 of 91Refresh
JPA Doc
89

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
89

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
40

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
40

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
28

_PersistenceException: Type is not found on getSingleResult.

_PersistenceException: Type is not found on getSingleResult.
Manual
28

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
28

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
28

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
28

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
28

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