Class JPALuteceDAO<K,E>
java.lang.Object
fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,E>
- Type Parameters:
K- Type of the entity's keyE- Type of the entity
- All Implemented Interfaces:
IGenericDAO<K,E>
- Direct Known Subclasses:
JPALuteceCoreDAO
Generic JPA DAO for Lutece components
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.persistence.EntityManagerFactoryGets the entity manager to use with this DAOabstract StringGets the plugin name.Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update
-
Constructor Details
-
JPALuteceDAO
public JPALuteceDAO()
-
-
Method Details
-
getPluginName
Gets the plugin name. Override this method to define the plugin associated to this DAO- Returns:
- The plugin name
-
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()Gets the entity manager to use with this DAO- Specified by:
getEntityManagerFactoryin classJPAGenericDAO<K,E> - Returns:
- The appropriate entity manager delivered by the EntityManagerService
-