public class PluginEntityContext extends Object implements de.xima.cmn.dao.interfaces.IBaseEntityContext, AutoCloseable, Closeable
IPluginEmManager.newEntityContext()
instead.
This entity context implements AutoCloseable
. Calling the close()
will close the
EntityManager
if
getEm()
; andConnectionFilter
Constructor and Description |
---|
PluginEntityContext(javax.persistence.EntityManagerFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
javax.persistence.EntityManager |
getEm() |
boolean |
isOpen() |
public PluginEntityContext(javax.persistence.EntityManagerFactory factory)
public javax.persistence.EntityManager getEm()
getEm
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
public boolean isOpen()
isOpen
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
public void close()
close
in interface de.xima.cmn.dao.interfaces.IBaseEntityContext
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.