fr.paris.lutece.portal.service.jpa
Class JPALuteceDAO<K,E>

java.lang.Object
  extended by fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
      extended by fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,E>
Type Parameters:
K - Type of the entity's key
E - 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
JPALuteceDAO()
           
 
Method Summary
protected  javax.persistence.Query createNativeQuery(java.lang.String strSQL)
           
 javax.persistence.EntityManagerFactory getEntityManagerFactory()
          Gets the entity manager to use with this DAO
abstract  java.lang.String getPluginName()
          Gets the plugin name.
 
Methods inherited from class fr.paris.lutece.util.jpa.JPAGenericDAO
create, findAll, findById, getEM, getEntityClass, getEntityClassName, remove, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPALuteceDAO

public JPALuteceDAO()
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:
getEntityManagerFactory in class JPAGenericDAO<K,E>
Returns:
The appropriate entity manager delivered by the EntityManagerService

createNativeQuery

protected javax.persistence.Query createNativeQuery(java.lang.String strSQL)
Parameters:
strSQL - The SQL query
Returns:
query


Copyright © 2011 Mairie de Paris. All Rights Reserved.