ObjectDB ObjectDB

Internal Website Search

1-10 of 38 resultsRefresh
113

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
69

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
69

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 returns
47

Running JPA Queries

: Query.executeUpdate - for running only DELETE and UPDATE queries. Ordinary Query Execution ... , they have to be caught and handled. DELETE and UPDATE Query Execution (with executeUpdate) DELETE and UPDATE queries are executed using the executeUpdate method. For example, the following query deletes
19

Not able to update records

when no transaction is active (error 611) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:758 ... = query.setParameter("value", userCredential.getRegisteredEmailD()).executeUpdate(); And called method ... on your own. Try surrounding your executeUpdate with em.getTransaction().begin() to start
19

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 ... )         at com.objectdb.o.QRR.f(QRR.java:153)         at com.objectdb.jpa.JpaQuery.executeUpdate ... ");             em.getTransaction().begin();             q.executeUpdate();             em.getTransaction
16

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

").executeUpdate(); This is implemented since version 2.2.4 but the manual has not been updated yet. support Support Thanks. I never think it is "executeUpdate()", query.getresultlist() cause exceptions ... ").executeUpdate();” works, but it can not reset id to zero! "drop table" or "delete from table" or "truncate
5

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
5

javax.persistence.TypedQuery

javax.persistence Interface TypedQuery<X> 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
4

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

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