fr.paris.lutece.plugins.stock.business
Class AbstractTicketCategoryDAO<K,T extends TicketCategory>

java.lang.Object
  extended by fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
      extended by fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,T>
          extended by fr.paris.lutece.plugins.stock.business.AbstractTicketCategoryDAO<K,T>
Type Parameters:
K - the primary key
T - the ticket category
All Implemented Interfaces:
ITicketCategoryDAO<K,T>, fr.paris.lutece.util.jpa.IGenericDAO<K,T>
Direct Known Subclasses:
TicketCategoryDAO

public class AbstractTicketCategoryDAO<K,T extends TicketCategory>
extends fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,T>
implements ITicketCategoryDAO<K,T>

This class provides Data Access methods for Person objects


Constructor Summary
AbstractTicketCategoryDAO()
          Constructor
 
Method Summary
 T findByIdWithChildren(K idCategory)
          Find ticket by id with children fetched
 T findByIdWithParent(K idCategory)
          Find ticket by id with parent fetched
 java.lang.String getPluginName()
          
 java.lang.Class<T> getProductClass()
          Get the product P class
 java.util.List<T> selectAllFirstLevelWithChildren()
          Find all ticket category without parents, with children fetched
 
Methods inherited from class fr.paris.lutece.portal.service.jpa.JPALuteceDAO
createNativeQuery, getEntityManagerFactory
 
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
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, findAll, findById, remove, update
 

Constructor Detail

AbstractTicketCategoryDAO

public AbstractTicketCategoryDAO()
Constructor

Method Detail

getProductClass

public java.lang.Class<T> getProductClass()
Get the product P class

Returns:
the class

getPluginName

public java.lang.String getPluginName()

Specified by:
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<K,T extends TicketCategory>

findByIdWithChildren

public T findByIdWithChildren(K idCategory)
Find ticket by id with children fetched

Specified by:
findByIdWithChildren in interface ITicketCategoryDAO<K,T extends TicketCategory>
Parameters:
idCategory - the ticket category id
Returns:
the ticket category

findByIdWithParent

public T findByIdWithParent(K idCategory)
Find ticket by id with parent fetched

Specified by:
findByIdWithParent in interface ITicketCategoryDAO<K,T extends TicketCategory>
Parameters:
idCategory - the ticket category id
Returns:
the ticket category

selectAllFirstLevelWithChildren

public java.util.List<T> selectAllFirstLevelWithChildren()
Find all ticket category without parents, with children fetched

Specified by:
selectAllFirstLevelWithChildren in interface ITicketCategoryDAO<K,T extends TicketCategory>
Returns:
the ticket category list


Copyright © 2011 Mairie de Paris. All Rights Reserved.