fr.paris.lutece.plugins.helpdesk.business
Interface IAbstractSubjectDAO

All Known Subinterfaces:
ISubjectDAO, IThemeDAO
All Known Implementing Classes:
SubjectDAO, ThemeDAO

public interface IAbstractSubjectDAO

This interface represents the business object of the AbstractSubject


Method Summary
 void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteAllLinksToFaq(int nIdAbstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          delete a record in the table.
 void deleteLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          delete a record in the table.
 List<? extends AbstractSubject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
 AbstractSubject findByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find a abstractSubject with the faq id and the order.
 Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all AbstractSubject specified by the Faq id
 Collection<? extends AbstractSubject> findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all AbstractSubject specified by the parent id
 AbstractSubject findByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find a abstractSubject with the parent id and the order.
 int getMaxOrder(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the max order of a parent abstractSubject
 void insert(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insertLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 AbstractSubject load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of AbstractSubject from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Calculate a new primary key to add a new AbstractSubject
 void store(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new AbstractSubject

Parameters:
plugin - The Plugin using this data access service
Returns:
The new key.

insert

void insert(AbstractSubject abstractSubject,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
abstractSubject - The Instance of the object AbstractSubject
plugin - The Plugin using this data access service

delete

void delete(int nId,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nId - The indentifier of the object AbstractSubject
plugin - The Plugin using this data access service

load

AbstractSubject load(int nId,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of AbstractSubject from the table

Parameters:
nId - The indentifier of the object AbstractSubject
plugin - The Plugin using this data access service
Returns:
The Instance of the object AbstractSubject

store

void store(AbstractSubject abstractSubject,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
abstractSubject - The instance of the AbstractSubject to update
plugin - The Plugin using this data access service

findAll

List<? extends AbstractSubject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Parameters:
plugin - The Plugin using this data access service
Returns:
A collection of objects

findByIdParent

Collection<? extends AbstractSubject> findByIdParent(int nIdParent,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all AbstractSubject specified by the parent id

Parameters:
nIdParent - The parent abstractSubject id
plugin - The Plugin using this data access service
Returns:
A collection of AbstractSubject

getMaxOrder

int getMaxOrder(int nIdParent,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max order of a parent abstractSubject

Parameters:
nIdParent - The id of the parent abstractSubject
plugin - The Plugin
Returns:
the max order

findByOrder

AbstractSubject findByOrder(int nIdParent,
                            int nOrder,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a abstractSubject with the parent id and the order.

Parameters:
nIdParent - The parent Id
nOrder - The order
plugin - The Plugin
Returns:
the AbstractSubject

findByFaqOrder

AbstractSubject findByFaqOrder(int nIdFaq,
                               int nOrder,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a abstractSubject with the faq id and the order.

Parameters:
nIdFaq - The faq Id
nOrder - The order
plugin - The Plugin
Returns:
the AbstractSubject

findByIdFaq

Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all AbstractSubject specified by the Faq id

Parameters:
nIdFaq - The Faq abstractSubject id
plugin - The Plugin using this data access service
Returns:
A collection of AbstractSubject

insertLinkToFaq

void insertLinkToFaq(int nIdAbstractSubject,
                     int nIdFaq,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
nIdAbstractSubject - The id of the object Subject
nIdFaq - The parent id of the object Faq
plugin - The Plugin using this data access service

deleteLinkToFaq

void deleteLinkToFaq(int nIdAbstractSubject,
                     int nIdFaq,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete a record in the table.

Parameters:
nIdAbstractSubject - The id of the object Subject
nIdFaq - The parent id of the object Faq
plugin - The Plugin using this data access service

deleteAllLinksToFaq

void deleteAllLinksToFaq(int nIdAbstractSubject,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete a record in the table.

Parameters:
nIdAbstractSubject - The id of the object Subject
plugin - The Plugin using this data access service


Copyright © 2013 Mairie de Paris. All Rights Reserved.