|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.QuestionTypeDAO
public final class QuestionTypeDAO
This class provides Data Access methods for QuestionType objects
Constructor Summary | |
---|---|
QuestionTypeDAO()
|
Method Summary | |
---|---|
void |
delete(int nIdQuestionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
fr.paris.lutece.util.ReferenceList |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects |
java.util.List<VisitorQuestion> |
getQuestions(int nIdQuestionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the questions of a given type. |
java.util.List<QuestionType> |
getQuestionTypeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects |
void |
insert(QuestionType questionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
QuestionType |
load(int nIdQuestionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of QuestionType from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new QuestionType |
void |
store(QuestionType questionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuestionTypeDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey
in interface IQuestionTypeDAO
plugin
- The Plugin using this data access service
public void insert(QuestionType questionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IQuestionTypeDAO
questionType
- The Instance of the object QuestionTypeplugin
- The Plugin using this data access servicepublic void delete(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IQuestionTypeDAO
nIdQuestionType
- The indentifier of the object QuestionTypeplugin
- The Plugin using this data access servicepublic QuestionType load(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IQuestionTypeDAO
nIdQuestionType
- The indentifier of the object QuestionTypeplugin
- The Plugin using this data access service
public void store(QuestionType questionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IQuestionTypeDAO
questionType
- The instance of the QuestionType to updateplugin
- The Plugin using this data access servicepublic fr.paris.lutece.util.ReferenceList findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll
in interface IQuestionTypeDAO
plugin
- The Plugin using this data access service
public java.util.List<QuestionType> getQuestionTypeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getQuestionTypeList
in interface IQuestionTypeDAO
plugin
- The Plugin using this data access service
public java.util.List<VisitorQuestion> getQuestions(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getQuestions
in interface IQuestionTypeDAO
nIdQuestionType
- The identifier of the question typeplugin
- The Plugin using this data access service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |