fr.paris.lutece.plugins.stock.business
Interface ITicketCategoryDAO

All Superinterfaces:
fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,TicketCategory>
All Known Implementing Classes:
TicketCategoryDAO

public interface ITicketCategoryDAO
extends fr.paris.lutece.util.jpa.IGenericDAO<java.lang.Integer,TicketCategory>

IPersonDAO Interface


Method Summary
 TicketCategory findByIdWithChildren(java.lang.Integer idCategory)
          Finds a ticket category and all his subcategories and fetch children
 TicketCategory findByIdWithParent(java.lang.Integer idCategory)
          Finds a ticket category and fetch parent
 java.util.List<TicketCategory> selectAllFirstLevelWithChildren()
          Finds all first level tickets categories (i.e. parent == null ) and fetch children
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericDAO
create, findAll, findById, remove, update
 

Method Detail

selectAllFirstLevelWithChildren

java.util.List<TicketCategory> selectAllFirstLevelWithChildren()
Finds all first level tickets categories (i.e. parent == null ) and fetch children

Returns:
all first level tickets categories

findByIdWithChildren

TicketCategory findByIdWithChildren(java.lang.Integer idCategory)
Finds a ticket category and all his subcategories and fetch children

Parameters:
idCategory - the id of upper ticket category
Returns:
the ticket category

findByIdWithParent

TicketCategory findByIdWithParent(java.lang.Integer idCategory)
Finds a ticket category and fetch parent

Parameters:
idCategory - the id of the searched ticket category
Returns:
the ticket category


Copyright © 2010 Mairie de Paris. All Rights Reserved.