Class PluginEntitiesParams
java.lang.Object
de.xima.fc.plugin.models.params.entities.PluginEntitiesParams
- All Implemented Interfaces:
IPluginParameters,IPluginEntitiesParams,Serializable
Implementation of the
IPluginEntitiesParams. The required data are passed to the constructor, which are then
available via the getter methods.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPluginEntitiesParams(javax.persistence.EntityManagerFactory entityManagerFactory, IPluginEmManager pluginEmManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.persistence.EntityManagerFactoryReturns theEntityManagerFactorythe plugin should use to create newEntityManagers.To make it easier to work with entities, you can use the em manager provided by this method.
-
Constructor Details
-
PluginEntitiesParams
public PluginEntitiesParams(javax.persistence.EntityManagerFactory entityManagerFactory, IPluginEmManager pluginEmManager) - Parameters:
entityManagerFactory- TheEntityManagerFactorythat will be passed to the entities plugin.pluginEmManager- TheIPluginEmManagerthat will be passed to the entities plugin.
-
-
Method Details
-
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()Description copied from interface:IPluginEntitiesParamsReturns theEntityManagerFactorythe plugin should use to create newEntityManagers. 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:
getEntityManagerFactoryin interfaceIPluginEntitiesParams- Returns:
- An
EntityManagerFactoryfor creating a newEntityManager. - See Also:
-
getPluginEmManager
Description copied from interface:IPluginEntitiesParamsTo make it easier to work with entities, you can use the em manager provided by this method. SeeIPluginEmManagerfor more details on how to use it.- Specified by:
getPluginEmManagerin interfaceIPluginEntitiesParams- Returns:
- A manager for the
EntityManagerthat also lets you create anIBaseEntityContextthat can be used with the DAO API of formcycle.
-