public class PluginEntitiesParams extends Object implements IPluginEntitiesParams
IPluginEntitiesParams
. The required data are passed to the constructor, which are then
available via the getter methods.Constructor and Description |
---|
PluginEntitiesParams(javax.persistence.EntityManagerFactory entityManagerFactory,
IPluginEmManager pluginEmManager) |
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory()
Returns the
EntityManagerFactory the plugin should use to create new EntityManager s. |
IPluginEmManager |
getPluginEmManager()
To make it easier to work with entities, you can use the em manager provided by this method.
|
public PluginEntitiesParams(javax.persistence.EntityManagerFactory entityManagerFactory, IPluginEmManager pluginEmManager)
entityManagerFactory
- The EntityManagerFactory
that will be passed to the entities plugin.pluginEmManager
- The IPluginEmManager
that will be passed to the entities plugin.public javax.persistence.EntityManagerFactory getEntityManagerFactory()
IPluginEntitiesParams
EntityManagerFactory
the plugin should use to create new EntityManager
s. The entity
manager lets you create new entities, query for existing entities or delete entities. This is a low-level API
method, consider using IPluginEntitiesParams.getPluginEmManager()
instead.getEntityManagerFactory
in interface IPluginEntitiesParams
EntityManagerFactory
for creating a new EntityManager
.IPluginEntitiesParams.getPluginEmManager()
public IPluginEmManager getPluginEmManager()
IPluginEntitiesParams
IPluginEmManager
for more details on how to use it.getPluginEmManager
in interface IPluginEntitiesParams
EntityManager
that also lets you create an IBaseEntityContext
that can be
used with the DAO API of FORMCYCLE.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.