fr.paris.lutece.plugins.stock.business
Class TicketCategoryHome<T extends TicketCategory,I extends ITicketCategoryDAO<java.lang.Integer,T>>
java.lang.Object
fr.paris.lutece.portal.service.jpa.AbstractLuteceHome<java.lang.Integer,T,I>
fr.paris.lutece.plugins.stock.business.TicketCategoryHome<T,I>
- Type Parameters:
T
- the ticket category classI
- the ticket category interface
- All Implemented Interfaces:
- ITicketCategoryHome<T>, fr.paris.lutece.util.jpa.IGenericHome<java.lang.Integer,T>
public class TicketCategoryHome<T extends TicketCategory,I extends ITicketCategoryDAO<java.lang.Integer,T>>
- extends fr.paris.lutece.portal.service.jpa.AbstractLuteceHome<java.lang.Integer,T,I>
- implements ITicketCategoryHome<T>
This class provides instances management methods (create, find, ...) for Person objects
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 |
TicketCategoryHome
public TicketCategoryHome()
findAllFirstLevelWithChildren
public java.util.List<T> findAllFirstLevelWithChildren()
- Finds all tickets categories (first level) and fetch children
- Specified by:
findAllFirstLevelWithChildren
in interface ITicketCategoryHome<T extends TicketCategory>
- Returns:
- all first level ticket categories
findByIdWithParent
public T findByIdWithParent(java.lang.Integer nIdCategory)
- Finds a ticket category and fetch parent
- Specified by:
findByIdWithParent
in interface ITicketCategoryHome<T extends TicketCategory>
- Parameters:
nIdCategory
- the id of the searched ticket category
- Returns:
- the ticket category
findByPrimarykeyWithChildren
public T findByPrimarykeyWithChildren(java.lang.Integer nIdCategory)
- Finds a ticket category and all his subcategories and fetch children
- Specified by:
findByPrimarykeyWithChildren
in interface ITicketCategoryHome<T extends TicketCategory>
- Parameters:
nIdCategory
- the id of upper ticket category
- Returns:
- the ticket category
Copyright © 2011 Mairie de Paris. All Rights Reserved.