Interface IPluginEntitiesParams
-
- All Superinterfaces:
IPluginParameters,Serializable
- All Known Implementing Classes:
PluginEntitiesParams
public interface IPluginEntitiesParams extends IPluginParameters, Serializable
Interface for entities plugins. These parameters are passed to the entities plugin once the connection to the database was set up. The plugin may now create connections to the database and retrieve or create entities.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.persistence.EntityManagerFactorygetEntityManagerFactory()Returns theEntityManagerFactorythe plugin should use to create newEntityManagers.IPluginEmManagergetPluginEmManager()To make it easier to work with entities, you can use the em manager provided by this method.
-
-
-
Method Detail
-
getEntityManagerFactory
javax.persistence.EntityManagerFactory getEntityManagerFactory()
Returns 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 usinggetPluginEmManager()instead.- Returns:
- An
EntityManagerFactoryfor creating a newEntityManager. - See Also:
getPluginEmManager()
-
getPluginEmManager
IPluginEmManager getPluginEmManager()
To 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.- Returns:
- A manager for the
EntityManagerthat also lets you create anIBaseEntityContextthat can be used with the DAO API of formcycle.
-
-