Class PluginEntitiesParams
- java.lang.Object
-
- de.xima.fc.plugin.models.params.entities.PluginEntitiesParams
-
- All Implemented Interfaces:
IPluginParameters
,IPluginEntitiesParams
,Serializable
public class PluginEntitiesParams extends Object implements IPluginEntitiesParams
Implementation of theIPluginEntitiesParams
. The required data are passed to the constructor, which are then available via the getter methods.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginEntitiesParams(javax.persistence.EntityManagerFactory entityManagerFactory, IPluginEmManager pluginEmManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.persistence.EntityManagerFactory
getEntityManagerFactory()
Returns theEntityManagerFactory
the plugin should use to create newEntityManager
s.IPluginEmManager
getPluginEmManager()
To make it easier to work with entities, you can use the em manager provided by this method.
-
-
-
Constructor Detail
-
PluginEntitiesParams
public PluginEntitiesParams(javax.persistence.EntityManagerFactory entityManagerFactory, IPluginEmManager pluginEmManager)
- Parameters:
entityManagerFactory
- TheEntityManagerFactory
that will be passed to the entities plugin.pluginEmManager
- TheIPluginEmManager
that will be passed to the entities plugin.
-
-
Method Detail
-
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
Description copied from interface:IPluginEntitiesParams
Returns theEntityManagerFactory
the plugin should use to create newEntityManager
s. The entity manager lets you create new entities, query for existing entities or delete entities. This is a low-level API method, consider usingIPluginEntitiesParams.getPluginEmManager()
instead.- Specified by:
getEntityManagerFactory
in interfaceIPluginEntitiesParams
- Returns:
- An
EntityManagerFactory
for creating a newEntityManager
. - See Also:
IPluginEntitiesParams.getPluginEmManager()
-
getPluginEmManager
public IPluginEmManager getPluginEmManager()
Description copied from interface:IPluginEntitiesParams
To make it easier to work with entities, you can use the em manager provided by this method. SeeIPluginEmManager
for more details on how to use it.- Specified by:
getPluginEmManager
in interfaceIPluginEntitiesParams
- Returns:
- A manager for the
EntityManager
that also lets you create anIBaseEntityContext
that can be used with the DAO API of formcycle.
-
-