ObjectDB ObjectDB

Internal Website Search

1-10 of 12 resultsRefresh
147

NonUniqueResultException()

Constructor javax.persistence.NonUniqueResultException NonUniqueResultException() Constructs a new NonUniqueResultException exception with null as its detail message. Since: JPA 1.0
147

NonUniqueResultException(message)

Constructor javax.persistence.NonUniqueResultException NonUniqueResultException( String message ) Constructs a new NonUniqueResultException exception with the specified detail message. Parameters: message - the detail message. Since: JPA 1.0
118

javax.persistence.NonUniqueResultException

javax.persistence Exception NonUniqueResultException java.lang.Object java.lang.Throwable ... .PersistenceException javax.persistence.NonUniqueResultException Implemented ... .0 See Also: Query.getSingleResult() TypedQuery.getSingleResult() NonUniqueResultException
28

Running JPA Queries

with the name 'Canada' (e.g. due to a bug), a NonUniqueResultException is thrown. On the other hand
28

JPA Exceptions

.persistence.LockTimeoutException javax.persistence.NonUniqueResultException
12

javax.persistence.PersistenceException

, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException ... except for instances of NoResultException, NonUniqueResultException, LockTimeoutException
12

javax.persistence.TypedQuery

- if there is no result NonUniqueResultException - if more than one result IllegalStateException ... NonUniqueResultException - if more than one result IllegalStateException - if called for a Java Persistence
8

javax.persistence.Query

NonUniqueResultException - if more than one result IllegalStateException - if called for a Java Persistence
8

java.io.Serializable

, LockTimeoutException, LongIdentity, NonUniqueResultException, NoResultException, NullValue, ObjectIdentity
8

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

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