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.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.
-
-
-
Method Detail
-
getEntityManagerFactory
javax.persistence.EntityManagerFactory getEntityManagerFactory()
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 usinggetPluginEmManager()
instead.- Returns:
- An
EntityManagerFactory
for 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. SeeIPluginEmManager
for more details on how to use it.- Returns:
- A manager for the
EntityManager
that also lets you create anIBaseEntityContext
that can be used with the DAO API of formcycle.
-
-