ObjectDB ObjectDB

flush() - JPA EntityManager's method

Method
javax.persistence.EntityManager
void flush()

Synchronize the persistence context to the underlying database.
Throws:
TransactionRequiredException - if there is no transaction
PersistenceException - if the flush fails
Since:
JPA 1.0