Methods Summary |
---|
public synchronized 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
{@link IllegalStateException}, except for {@link #isOpen}, which will return
false .
verifyOpen();
isOpen = false;
setupImpl.undeploy();
|
protected oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl | createEntityManagerImpl(boolean extended)
return createEntityManagerImpl(null, extended);
|
protected synchronized oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl | createEntityManagerImpl(java.util.Map properties, boolean extended)
verifyOpen();
if (!getServerSession().isConnected()) {
getServerSession().login();
}
return createEntityManagerImplInternal(properties, extended);
|
protected abstract oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl | createEntityManagerImplInternal(java.util.Map properties, boolean extended)
|
protected void | finalize()
if(isOpen()) {
close();
}
|
public synchronized oracle.toplink.essentials.threetier.ServerSession | getServerSession()INTERNAL:
Returns the ServerSession that the Factory will be using and initializes it if it is not available.
This method makes use of the partially constructed session stored in our setupImpl and
completes its construction
if (serverSession == null){
ClassLoader realLoader = setupImpl.getPersistenceUnitInfo().getClassLoader();
// the call top setupImpl.deploy() finishes the session creation
serverSession = setupImpl.deploy(realLoader, properties);
}
return this.serverSession;
|
public boolean | isOpen()Indicates whether or not this factory is open. Returns true until a call
to {@link #close} is made.
return isOpen;
|
protected void | verifyOpen()
if (!isOpen){
throw new IllegalStateException(ExceptionLocalization.buildMessage("operation_on_closed_entity_manager_factory"));
}
|