About executeUpdate

manual

DELETE Queries in JPA/JPQL

Explains how to apply server side bulk delete using a JPA/JPQL query.... DELETE queries are executed using the  executeUpdate executeUpdate() Query's method Execute an update or delete ... ( "DELETE FROM Country" ) . executeUpdate executeUpdate() Query's method Execute an update ...

 
manual

UPDATE SET Queries in JPA/JPQL

Explains how to apply server side bulk update using a JPA/JPQL query.... UPDATE queries are executed using the  executeUpdate executeUpdate() Query's method Execute an update or delete ...

 
api-jpa

executeUpdate()

Execute an update or delete statement.(Method of javax.persistence.Query)

 
manual

Running JPA Queries

Explains how to use JPA to run Java Persistence Query Language (JPQL) queries.... DELETE and UPDATE queries: Query.executeUpdate executeUpdate() Query's method Execute an update or delete ... DELETE and UPDATE Query Execution (with executeUpdate) Ordinary Query Execution (with ...

 
issue

ArrayIndexOutOfBoundsException on flush

The following exception was thrown when my app attempted to flush an objectdb database: ... com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:737) ... 40 more Caused by: ... com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:722) ... 40 more The code at this point is ... "DELETE FROM ExecutionGraph g" ) ; query. executeUpdate ( ) ;   query = em. createQuery ...

 
forum_thread

Is there a function of "drop table" or "delete from table"?

Besides the em.remove() one by one, is there a function of "drop table" or "delete from table"? TIA ... ( "DELETE FROM MyEntity e" ) . executeUpdate ( ) ; This is implemented since ... Thanks. I never think it is "executeUpdate()", query.getresultlist() cause exceptions. Yes, ... The code “createQuery("DELETE FROM MyEntity e").executeUpdate();” works, but it can not reset id to zero! "drop ...

 
forum_thread

Not able to update records

Hi,   I am tring to update the simple object by using Update query by i am getting following exception [ObjectDB 2.4.4_15] javax.persistence.TransactionRequiredException Attempt to run update query when no transaction is active (error 611) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:758) Following is the code i am executing   ... is active (error 611) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:758) Following is the code i am ... userCredential.getRegisteredEmailD()).executeUpdate();   And called method is as follows ... a transaction on your own. Try surrounding your executeUpdate with em.getTransaction().begin() to start the transaction ...

 
api-jpa

javax.persistence.Query

Interface used to control query execution.(Interface of JPA)

 
api-jpa

javax.persistence.TypedQuery

Interface used to control the execution of typed queries.(Interface of JPA)

 
forum_thread

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: ... SET x = x + 1" ) ; query. executeUpdate ( ) ; // Point p = new ... ( "UPDATE Point SET x = x + 1" ) . executeUpdate ( ) ; } Your lock ...