ObjectDB Database Search
1-50 of 91 resultsjakarta.persistence.TypedQuery.getSingleResult() Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery X getSingleResult () Execute a SELECT query that returns a single result. Returns: the result, of type X . Throws: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE statement | |
jakarta.persistence.StoredProcedureQuery.getSingleResult() Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery Object getSingleResult () Retrieve a single result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter | |
jakarta.persistence.Query.getSingleResult() Jakarta Persistence (JPA) Method in jakarta.persistence.Query Object getSingleResult () Execute a SELECT query that returns a single untyped result. Returns: the result. Throws: IllegalStateException - if called for a Jakarta Persistence query language UPDATE or DELETE statement | |
Running JPA Queries The Query interface defines two methods for running SELECT queries: Query. getSingleResult () : Use ... . Similarly, the TypedQuery interface defines the following methods: TypedQuery. getSingleResult () : Use ... (with getSingleResult ()) You can use the getResultList() method to run queries that return a single | |
_PersistenceException: Type is not found on getSingleResult._PersistenceException: Type is not found on getSingleResult. | |
Query Parameters in JPA", Country.class); return query. setParameter ("name", name). getSingleResult (); } The WHERE clause ... the call to getSingleResult in the same expression. Named parameters in a query string are identifiable by ... = ?1", Country.class); return query. setParameter (1, name). getSingleResult (); } The format | |
Online Backup"). getSingleResult (); The backup query string is always "objectdb backup" . The backup is created in the backup ... .io.File("c:\\backup")); backupQuery. getSingleResult (); For instance, the code above could create ... ("target", "backup"); backupQuery. getSingleResult (); When you specify a string for the target | |
JPA Exceptions: Thrown by Query. getSingleResult () when the query returns no results. Thrown by Query. getSingleResult | |
Setting and Tuning of JPA Queries The Query and TypedQuery interfaces define various methods for setting and tuning query execution . To take effect, you must invoke these methods before running a query with getResultList or getSingleResult . Result range (setFirstResult, setMaxResults) The setFirstResult and setMaxResults methods | |
jakarta.persistence.StoredProcedureQuery and getSingleResult are called on a StoredProcedureQuery object, the provider calls execute on an unexecuted stored procedure query before processing getResultList or getSingleResult . When executeUpdate ... set can be obtained by calling getResultList or getSingleResult . The hasMoreResults method | |
jakarta.persistence.NonUniqueResultException Thrown by the persistence provider when Query. getSingleResult or TypedQuery. getSingleResult is executed ... transaction, if one is active, to be marked for rollback. See Also: Query. getSingleResult () TypedQuery. getSingleResult () Since: Jakarta Persistence (JPA) 1.0 Public Constructors NonUniqueResultException | |
jakarta.persistence.NoResultException the persistence provider when Query. getSingleResult or TypedQuery. getSingleResult is executed ... , to be marked for rollback. See Also: Query. getSingleResult () TypedQuery. getSingleResult () Since: Jakarta | |
jakarta.persistence.TypedQuery Persistence (JPA) 2.2 X getSingleResult () Execute a SELECT query that returns a single result. Overrides Query. getSingleResult Returns: the result, of type X . Throws: IllegalStateException - if called | |
Duplicate Entity class names causes Exception in Query. getSingleResult (JpaQuery.java:664) at objdbTest.Singleton.findItem(Singleton.java:62) at objdbTest ... ) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:657) ... 64 more Here is the class doing ... .setParameter("cachedKey", Integer.toString(which)); try { return q. getSingleResult (); } catch | |
jakarta.persistence.Query Persistence (JPA) 2.2 Object getSingleResult () Execute a SELECT query that returns a single untyped | |
Error 363 - Failed to read value of inverse relationship.receivedMessages using reflection (error 363) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:723 ... .objectdb.o.QRR.b(QRR.java:187) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:716) ... 31 ... .setParameter("name", name). getSingleResult (); } catch (PersistenceException ex) { ex.printStackTrace | |
com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV.RecordingMetaDataDAO. getSingleResult (RecordingMetaDataDAO.java:958)   ... .RecordingService. getSingleResult (RecordingService.java:384)   ... ; at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:723)   | |
Criteria Query results in a NoResultException instead of returning object()])); return em.createQuery(criteria). getSingleResult (); which evaluates to the query: SELECT $1 FROM ... .objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:620) at org.jboss.seam.security.management.picketlink ... = em.createQuery(queryStr) .setParameter("identityObjectName", obj.getName()) . getSingleResult | |
Mismatch client-server protocol prefix; result = (TrackerUser) q. getSingleResult ();   ... ; result = q. getSingleResult (); } catch (Throwable ex ... ; This exception gets thrown at the getSingleResult line: java.lang.ClassCastException: at.co.pjm.tracker | |
Catching exceptions from online backup the following solution: Thread backupThread = backupQuery . getSingleResult ( ) ; backupThread ... accessible via some API or the TypedQuery. getSingleResult () would accept a parameter of type ... ; Thread backupThread = backupQuery . getSingleResult ( ) ; // TODO: Complete initializing the thread | |
JPA - ExceptionInInitializerError when creating EntityManager.setParameter("name", "SMTP"). getSingleResult (); port = emailSettings.setParameter("name", "Port"). getSingleResult (); from = emailSettings.setParameter("name", "EMAILFROM"). getSingleResult ... (1). getSingleResult ();   | |
Online backup problem; Thread backupThread = backupQuery. getSingleResult (); backupThread.join(); } catch ... .createQuery("objectdb backup"); query. getSingleResult (); em.close(); emf.close ... ;query. getSingleResult (); or the new build (2.2.7_07) that should fix it. Thank you for this report | |
zip file or JAR manifest missing (error 301) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:620) at src.run.txt2db.lookup ... .objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:613) ... 2 ... ); q2.setParameter(2, sName); ItemList item = null; try { item = (ItemList)q2. getSingleResult | |
how to query by properties of onetomany relations? (Error 990).QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:610) f.bars ... ; System.out.println("Count: " + query. getSingleResult ());   ... .JpaQuery. getSingleResult (JpaQuery.java:620) The query hint is set in the code | |
Tutorial issue) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:754) at tutorial.Main.main(Main.java:29 ... .java:153) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:747) ... 1 more   | |
License Activation Change and Checking Activation", boolean.class). getSingleResult (); support Support This query always returns false in my case ... .JpaQuery. getSingleResult (JpaQuery.java:747) mosi0815 Ralph Moser Sorry, hopefully build 2.5.5_03 should work fine. support Support | |
Cast exception?.createNamedQuery("Player.getPlayer", Player.class); Player player = query.setParameter("id", uid). getSingleResult ... . getSingleResult (); Without any error. So the only error occurring is the casting, which doesn't | |
New to Product & Having An Issue", Department.class); q.setParameter("id", this.departmentId); Department d = q. getSingleResult ... . getSingleResult (); assertNotNull(d); assertNotNull(d.getDomainId()); assertEquals(this.departmentId, d.getDomainId | |
Potential ObjectDB bug.JpaQuery. getSingleResult (JpaQuery.java:757) [objectdb.jar:] at com.example.dao.TvrtkaDAO ... .objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:757) [objectdb.jar:] at com.example.dao.TvrtkaDAO | |
Getting the database file size.createEntityManager()) { long fileSize = em.createQuery( "objectdb file-size", Long.class). getSingleResult ... -count", Long.class). getSingleResult (); System.out.printf("Object Count: %d%n", objectCount); } } support Support | |
Date field Index is corrupted due to time change) q. getSingleResult (); em.getTransaction().commit ... . getSingleResult (); em.getTransaction().commit();   | |
Bulk Delete and Update - best practice?.createQuery("SELECT COUNT(d) from CacheData d", Long.class); long rows = q. getSingleResult ... .createEntityManager(); q = em.createQuery("SELECT COUNT(d) from CacheData d", Long.class); rows = q. getSingleResult | |
TYPE Expression.OBC.onObjectDBError(OBC.java:1485) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:702 ... (QRR.java:230) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery. getSingleResult | |
Visibility of changes in Transaction is not visible to a JPA QL Query; return q. getSingleResult (); } catch (javax.persistence.NoResultException ex) {   ... ", Integer.toString(which)); return q. getSingleResult ();   | |
Problem upgrading] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:757) ~[objectdb-2.6.6.jar:na] ... 120 ... (QRR.java:222) ~[objectdb-2.6.6.jar:na] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java | |
Remove a modified entity cause an optimistic lock exception.createQuery("select m from MyEntity m"). getSingleResult (); e ... from MyEntity m"). getSingleResult (); em.remove(e);   | |
ArrayIndexOutOfBoundsException; at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:696) After the first time ... ; at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:696) I'm afraid I can't | |
Object comparation never matches", authentication.getPrincipal()). getSingleResult (); According to ObjectDB explorer, the record is stored as ... )" on getSingleResult PhoneNumber contains exactly 2 fields. So I'm sure that both objects are same | |
Merge Issue: Attempt to reuse an existing primary key value A a", A.class). getSingleResult (); Assert.assertEquals(1, a.list ... ("select a from A a", A.class). getSingleResult (); Assert | |
Left join fetch behaviour doesn't retrieve children?; MyEntity myEntity = query. getSingleResult ();   ... ; MyEntity.class); MyEntity myEntity = query. getSingleResult (); // Ok my em is now closed | |
combined index not used statistics", Thread.class). getSingleResult (); thread.join(); em.close(); emf.close ... = entityManager .createQuery("objectdb statistics", Thread. class ). getSingleResult ();   ... .createQuery("objectdb statistics", Thread.class). getSingleResult (); thread.join(); em.close(); emf.close | |
Unexpected exception when execute query without enhanced entities.QRR.i(QRR.java:154) at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:760) I would expect ... .o.OBC.onObjectDBError(OBC.java:1591) ~[na:na] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery ... ] at com.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:760) ~[na:na] ... 28 common frames omitted | |
Issue with cascade delete & add/remove; .setMaxResults(1). getSingleResult ();   ... ; . getSingleResult ()).intValue();   ... '") . getSingleResult ()).intValue | |
Online Backup degrades responsiveness..createQuery("objectdb backup", Thread.class); Thread backupThread = backupQuery. getSingleResult ... = em.createQuery("objectdb backup", Thread.class); Thread backupThread = backupQuery. getSingleResult ... for x ms every 1MB Thread backupThread = backupQuery. getSingleResult (); backupThread.join | |
Server crash - Mismatch client-server protocol prefix Mismatch client-server protocol prefix (error 523) at com.objectdb.jpa.JpaQuery. getSingleResult ... .objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:716) ... 27 more I realize this isn't a lot | |
UPDATE statemen crash when i put the WHERE clause. )).setParameter( "curs" , "Programare avansata" ). getSingleResult () ; lab_points = lab_points + Integer ... )).setParameter( "curs" , "Programare avansata" ). getSingleResult ()) ; } if (updateEm.getTransaction | |
Issues with JDO Casting & Full Qualified Names = '123'"; System.out.println("4: " + em.createQuery(query). getSingleResult ()); em.close ... ; System.out.println("4: " + em.createQuery(query). getSingleResult ());   | |
ObjectDB can't be activated activation", boolean.class). getSingleResult ()); Result is " false ". Also when trying to create ... System.out.println(emf.createEntityManager().createQuery("objectdb activation", boolean.class). getSingleResult | |
Unexpected error when loading all entity instance.objectdb.jpa.JpaQuery. getSingleResult (JpaQuery.java:750) at com.querydsl.jpa.impl.AbstractJPAQuery. getSingleResult (AbstractJPAQuery.java:183) at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne | |
InternalException using 2.3.7_12. getSingleResult (JpaQuery.java:716) at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) at sun ... $DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:310) at $Proxy56. getSingleResult (Unknown |