Skip navigation links

Oracle TopLink Java API Reference
10g Release 3 (10.1.3.1)

B28219-01


oracle.toplink.sessions.entitymanager
Interface EntityManagerFactory


public interface EntityManagerFactory

Method Summary
 void close()
          Closes this factory, releasing any resources that might be held by this factory.
 EntityManager createEntityManager()
          Creates a new EntityManager associated with the current transactional context.
 boolean isOpen()
          Indicates whether or not this factory is open.

 

Method Detail

createEntityManager

public EntityManager createEntityManager()
Creates a new EntityManager associated with the current transactional context.

close

public void close()
Closes this factory, releasing any resources that might be held by this factory. After invoking this method, all methods on the instance will throw an IllegalStateException, except for isOpen(), which will return false.

isOpen

public boolean isOpen()
Indicates whether or not this factory is open. Returns true until a call to close() is made.

Skip navigation links

Copyright © 1998, 2006, Oracle. All Rights Reserved.