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
public abstract class JPALuteceDAO<K,E> extends JPAGenericDAO<K,E>
Generic JPA DAO for Lutece components
-
-
Constructor Summary
Constructors Constructor Description JPALuteceDAO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.persistence.EntityManagerFactorygetEntityManagerFactory()Gets the entity manager to use with this DAOabstract java.lang.StringgetPluginName()Gets the plugin name.-
Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO
create, detach, findAll, findById, flush, getEM, getEntityClass, getEntityClassName, remove, update
-
-
-
-
Method Detail
-
getPluginName
public abstract java.lang.String 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
-
-