fr.paris.lutece.plugins.stock.business
Interface ITicketCategoryHome<T extends TicketCategory>

Type Parameters:
T - the ticket category
All Superinterfaces:
fr.paris.lutece.util.jpa.IGenericHome<java.lang.Integer,T>
All Known Implementing Classes:
TicketCategoryHome

public interface ITicketCategoryHome<T extends TicketCategory>
extends fr.paris.lutece.util.jpa.IGenericHome<java.lang.Integer,T>

ITicketCategoryHome


Method Summary
 java.util.List<T> findAllFirstLevelWithChildren()
          Finds all tickets categories (first level) and fetch children
 T findByIdWithParent(java.lang.Integer nIdCategory)
          Finds a ticket category and fetch parent
 T findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
          Finds a ticket category and all his subcategories and fetch children
 
Methods inherited from interface fr.paris.lutece.util.jpa.IGenericHome
create, findAll, findByPrimaryKey, remove, update
 

Method Detail

findAllFirstLevelWithChildren

java.util.List<T> findAllFirstLevelWithChildren()
Finds all tickets categories (first level) and fetch children

Returns:
all first level ticket categories

findByPrimarykeyWithChildren

T findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
Finds a ticket category and all his subcategories and fetch children

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

findByIdWithParent

T findByIdWithParent(java.lang.Integer nIdCategory)
Finds a ticket category and fetch parent

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.