|
||||||||||
| 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 | |
|---|---|
int |
CountUser(int nIdUser,
int nIdQuestionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
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 |
fr.paris.lutece.util.ReferenceList |
getQuestionTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
java.util.List<fr.paris.lutece.portal.business.user.AdminUser> |
getUsersRoles(int nIdQuestionType)
Return all the users for a given question type. |
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 IQuestionTypeDAOplugin - The Plugin using this data access service
public void insert(QuestionType questionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IQuestionTypeDAOquestionType - The Instance of the object QuestionTypeplugin - The Plugin using this data access service
public void delete(int nIdQuestionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IQuestionTypeDAOnIdQuestionType - The indentifier of the object QuestionTypeplugin - The Plugin using this data access service
public QuestionType load(int nIdQuestionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IQuestionTypeDAOnIdQuestionType - 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 IQuestionTypeDAOquestionType - 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 IQuestionTypeDAOplugin - The Plugin using this data access service
public java.util.List<QuestionType> getQuestionTypeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getQuestionTypeList in interface IQuestionTypeDAOplugin - 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 IQuestionTypeDAOnIdQuestionType - The identifier of the question typeplugin - The Plugin using this data access service
public fr.paris.lutece.util.ReferenceList getQuestionTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getQuestionTypesList in interface IQuestionTypeDAO
public int CountUser(int nIdUser,
int nIdQuestionType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
CountUser in interface IQuestionTypeDAOplugin - The current plugin using this methodnIdUser - The user IDnIdQuestionType - the question type ID
public java.util.List<fr.paris.lutece.portal.business.user.AdminUser> getUsersRoles(int nIdQuestionType)
getUsersRoles in interface IQuestionTypeDAOnIdQuestionType - 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 | |||||||||