close() - JPA EntityManager's method
Close an application-managed entity manager. After the close method has been invoked, all methods on the
EntityManager instance and any
TypedQuery objects obtained from it will throw the
IllegalStateException except for
isOpen (which will return false). If this method is called when the entity manager is associated with an active transaction, the persistence context remains managed until the transaction completes.
IllegalStateException - if the entity manager is container-managed
- JPA 1.0