fr.paris.lutece.plugins.stock.business
Class TicketCategoryDAO
java.lang.Object
fr.paris.lutece.util.jpa.JPAGenericDAO<K,E>
fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,TicketCategory>
fr.paris.lutece.plugins.stock.business.TicketCategoryDAO
- All Implemented Interfaces:
- ITicketCategoryDAO, fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,TicketCategory>
public final class TicketCategoryDAO
- extends fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,TicketCategory>
- implements ITicketCategoryDAO
This class provides Data Access methods for Person objects
| 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, 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 |
TicketCategoryDAO
public TicketCategoryDAO()
getPluginName
public java.lang.String getPluginName()
- Specified by:
getPluginName in class fr.paris.lutece.portal.service.jpa.JPALuteceDAO<java.lang.Integer,TicketCategory>
findByIdWithChildren
public TicketCategory findByIdWithChildren(java.lang.Integer idCategory)
- Description copied from interface:
ITicketCategoryDAO
- Finds a ticket category and all his subcategories and fetch children
- Specified by:
findByIdWithChildren in interface ITicketCategoryDAO
- Parameters:
idCategory - the id of upper ticket category
- Returns:
- the ticket category
findByIdWithParent
public TicketCategory findByIdWithParent(java.lang.Integer idCategory)
- Description copied from interface:
ITicketCategoryDAO
- Finds a ticket category and fetch parent
- Specified by:
findByIdWithParent in interface ITicketCategoryDAO
- Parameters:
idCategory - the id of the searched ticket category
- Returns:
- the ticket category
selectAllFirstLevelWithChildren
public java.util.List<TicketCategory> selectAllFirstLevelWithChildren()
- Description copied from interface:
ITicketCategoryDAO
- Finds all first level tickets categories (i.e. parent == null ) and fetch children
- Specified by:
selectAllFirstLevelWithChildren in interface ITicketCategoryDAO
- Returns:
- all first level tickets categories
Copyright © 2010 Mairie de Paris. All Rights Reserved.