About executeUpdate

1-10 of 34Refresh
JPA Doc
101

executeUpdate()

Method javax.persistence.Query int executeUpdate() Execute an update or delete statement. Returns: the number of entities updated or deleted Throws: IllegalStateException - if called for a Java Persistence query language SELECT statement or for a criteria query TransactionRequiredException
Manual
51

Running JPA Queries [2011-09-21]

: Query.executeUpdate - for running only DELETE and UPDATE queries. Ordinary Query Execution ... and UPDATE Query Execution (with executeUpdate) DELETE and UPDATE queries are executed using the executeUpdate method. For example, the following query deletes all the Country instances: int count
Manual
51

Running JPA Queries

: Query.executeUpdate - for running only DELETE and UPDATE queries. Ordinary Query Execution ... and UPDATE Query Execution (with executeUpdate) DELETE and UPDATE queries are executed using the executeUpdate method. For example, the following query deletes all the Country instances: int count
Manual
41

DELETE Queries in JPA/JPQL

all the objects in the database: DELETE FROM Object DELETE queries are executed using the executeUpdate method:   int deletedCount = em.createQuery("DELETE FROM Country").executeUpdate(); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate method
Manual
41

UPDATE SET Queries in JPA/JPQL

, area = 0 UPDATE queries are executed using the executeUpdate method:   Query query = em.createQuery(       "UPDATE Country SET population = 0, area = 0");   int updateCount = em.executeUpdate(); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate
Manual
41

UPDATE SET Queries in JPA/JPQL [2011-11-22]

, area = 0 UPDATE queries are executed using the executeUpdate method:   Query query = em.createQuery(       "UPDATE Country SET population = 0, area = 0");   int updateCount = em.executeUpdate(); A TransactionRequiredException is thrown if no transaction is active. On success - the executeUpdate
JPA Doc
6

javax.persistence.Query

javax.persistence Interface Query Subinterfaces: TypedQuery Interface used to control query execution. Since: JPA 1.0 See Also: TypedQuery Parameter Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual. int executeUpdate() Execute an update or delete statement
JPA Doc
6

javax.persistence.TypedQuery

javax.persistence Interface TypedQuery Superinterfaces: Query Interface used to control the execution of typed queries. Since: JPA 2.0 See Also: Query Parameter Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual. int executeUpdate() Execute an update or delete
Issue
5

ArrayIndexOutOfBoundsException on flush

:69) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1485) at com.objectdb.jpa.JpaQuery.executeUpdate ... .java:232) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery ... .executeUpdate(); query = em.createQuery("DELETE FROM WorkflowInstance w"); query.executeUpdate
Forum
4

Date field Index is corrupted due to time change

.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:776) at com.objectdb.o.QRP.L(QRP.java:251 ... .QRR.f(QRR.java:153)         at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:776 ... .executeUpdate();             em.getTransaction().commit();         }         catch (Throwable t