fr.paris.lutece.plugins.stock.business
Interface ITicketCategoryDAO<K,T extends TicketCategory>

Type Parameters:
K - the primary key
T - the ticket category
All Superinterfaces:
fr.paris.lutece.util.jpa.IGenericDAO<K,T>
All Known Implementing Classes:
AbstractTicketCategoryDAO, TicketCategoryDAO

public interface ITicketCategoryDAO<K,T extends TicketCategory>
extends fr.paris.lutece.util.jpa.IGenericDAO<K,T>

ITicketCategoryDAO Interface


Method Summary
 T findByIdWithChildren(K idCategory)
          Finds a ticket category and all his subcategories and fetch children
 T findByIdWithParent(K idCategory)
          Finds a ticket category and fetch parent
 java.util.List<T> 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<T> selectAllFirstLevelWithChildren()
Finds all first level tickets categories (i.e. parent == null ) and fetch children

Returns:
all first level tickets categories

findByIdWithChildren

T findByIdWithChildren(K 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

T findByIdWithParent(K idCategory)
Finds a ticket category and fetch parent

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.