fr.paris.lutece.plugins.stock.business
Class TicketCategoryHome

java.lang.Object
  extended by fr.paris.lutece.portal.service.jpa.AbstractLuteceHome<java.lang.Integer,TicketCategory,ITicketCategoryDAO>
      extended by fr.paris.lutece.plugins.stock.business.TicketCategoryHome
All Implemented Interfaces:
ITicketCategoryHome, fr.paris.lutece.util.jpa.IGenericHome<java.lang.Integer,TicketCategory>

@Transactional
public final class TicketCategoryHome
extends fr.paris.lutece.portal.service.jpa.AbstractLuteceHome<java.lang.Integer,TicketCategory,ITicketCategoryDAO>
implements ITicketCategoryHome

This class provides instances management methods (create, find, ...) for Person objects


Constructor Summary
TicketCategoryHome()
           
 
Method Summary
 java.util.List<TicketCategory> findAllFirstLevelWithChildren()
          Finds all tickets categories (first level) and fetch children
 TicketCategory findByIdWithParent(java.lang.Integer nIdCategory)
          Finds a ticket category and fetch parent
 TicketCategory findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
          Finds a ticket category and all his subcategories and fetch children
 
Methods inherited from class fr.paris.lutece.portal.service.jpa.AbstractLuteceHome
create, findAll, findByPrimaryKey, getDao, remove, setDao, 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.IGenericHome
create, findAll, findByPrimaryKey, remove, update
 

Constructor Detail

TicketCategoryHome

public TicketCategoryHome()
Method Detail

findAllFirstLevelWithChildren

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

Specified by:
findAllFirstLevelWithChildren in interface ITicketCategoryHome
Returns:
all first level ticket categories

findByIdWithParent

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

Specified by:
findByIdWithParent in interface ITicketCategoryHome
Returns:
the ticket category

findByPrimarykeyWithChildren

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

Specified by:
findByPrimarykeyWithChildren in interface ITicketCategoryHome
Returns:
the ticket category


Copyright © 2010 Mairie de Paris. All Rights Reserved.