Java Code Examples for javax.jdo.PersistenceManagerFactory#isClosed()

The following examples show how to use javax.jdo.PersistenceManagerFactory#isClosed() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractJDOTest.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void setUp() throws Exception {
  super.setUp();
  final PersistenceManagerFactory emf = getPersistenceManagerFactory();
  if (emf == null || emf.isClosed() || lastTestClass != getClass()) {
    setPersistenceManagerFactory(createPersistenceManagerFactory());
    lastTestClass = getClass();
  }
}
 
Example 2
Source File: JDOTest.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void setUp() throws Exception {
  super.setUp();
  final PersistenceManagerFactory emf = getPersistenceManagerFactory();
  if (emf == null || emf.isClosed() || lastTestClass != getClass()) {
    setPersistenceManagerFactory(createPersistenceManagerFactory());
    lastTestClass = getClass();
  }
}
 
Example 3
Source File: JDOTest.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void setUp() throws Exception {
  super.setUp();
  final PersistenceManagerFactory emf = getPersistenceManagerFactory();
  if (emf == null || emf.isClosed() || lastTestClass != getClass()) {
    setPersistenceManagerFactory(createPersistenceManagerFactory());
    lastTestClass = getClass();
  }
}