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 EntityManagers. |
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()
IPluginEntitiesParamsEntityManagerFactory the plugin should use to create new EntityManagers. 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 IPluginEntitiesParamsEntityManagerFactory for creating a new EntityManager.IPluginEntitiesParams.getPluginEmManager()public IPluginEmManager getPluginEmManager()
IPluginEntitiesParamsIPluginEmManager for more details on how to use it.getPluginEmManager in interface IPluginEntitiesParamsEntityManager that also lets you create an IBaseEntityContext that can be
used with the DAO API of FORMCYCLE.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.