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

All Known Implementing Classes:
QuestionAnswerDAO

public interface IQuestionAnswerDAO

This interface represents the business object of the answer


Method Summary
 int countbySubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 void delete(int nIdQuestionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all records from the table
 void deleteBySubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 List<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects.
 Collection<QuestionAnswer> findByIdSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find questions specified by id subject
 List<QuestionAnswer> findByKeywords(String strKeywords, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of QuestionAnswer from the table
 int getMaxOrder(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the max order of a given subject
 void insert(QuestionAnswer questionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 QuestionAnswer load(int nIdQuestionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of QuestionAnswer from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Calculate a new primary key to add a new QuestionAnswer
 void store(QuestionAnswer questionAnswer, 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 QuestionAnswer

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

insert

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

Parameters:
questionAnswer - The Instance of the object QuestionAnswer
plugin - The Plugin using this data access service

delete

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

Parameters:
nIdQuestionAnswer - The indentifier of the object QuestionAnswer
plugin - The Plugin using this data access service

deleteAll

void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all records from the table

Parameters:
plugin - The Plugin using this data access service

deleteBySubject

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

Parameters:
nIdSubject - The indentifier of the object QuestionAnswer
plugin - The Plugin using this data access service

load

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

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

store

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

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

findAll

List<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects.

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

findByKeywords

List<QuestionAnswer> findByKeywords(String strKeywords,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of QuestionAnswer from the table

Parameters:
strKeywords - The keywords which are searched in question/answer
plugin - The Plugin using this data access service
Returns:
The collection of QuestionAnswer object

findByIdSubject

Collection<QuestionAnswer> findByIdSubject(int nIdSubject,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find questions specified by id subject

Parameters:
nIdSubject - The Id of the subject
plugin - The current plugin using this method
Returns:
A Collection containing the results

countbySubject

int countbySubject(int nIdSubject,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
plugin - The Plugin using this data access service
nIdSubject - The Subject ID
Returns:
count

getMaxOrder

int getMaxOrder(int nIdSubject,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max order of a given subject

Parameters:
nIdSubject - The id of the Subject
plugin - The Plugin
Returns:
the max order


Copyright © 2013 Mairie de Paris. All Rights Reserved.