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
 java.util.List<? extends AbstractSubject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
 java.util.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)
          Fidn 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.
 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

java.util.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

java.util.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)
Fidn a abstractSubject with the parent id and the order.

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


Copyright © 2008 Mairie de Paris. All Rights Reserved.