|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.ThemeDAO
public final class ThemeDAO
This class provides Data Access methods for Theme objects
Constructor Summary | |
---|---|
ThemeDAO()
|
Method Summary | |
---|---|
void |
delete(int nIdTheme,
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 |
Theme |
findByFaqOrder(int nIdFaq,
int nOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a theme with the faq id and the order. |
Collection<? extends AbstractSubject> |
findByIdFaq(int nIdFaq,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all Theme specified by the Faq id |
Collection<? extends AbstractSubject> |
findByIdParent(int nIdParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all Theme specified by the parent id |
Theme |
findByOrder(int nIdParent,
int nOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a theme with the parent id and the order. |
Collection<VisitorQuestion> |
findQuestions(int nIdTheme,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all questions on a Theme |
int |
getMaxOrder(int nIdParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max order of a parent theme |
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. |
Theme |
load(int nIdTheme,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of Theme from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new Theme |
void |
store(AbstractSubject abstractSubject,
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 ThemeDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey
in interface IAbstractSubjectDAO
plugin
- The Plugin using this data access service
public void insert(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IAbstractSubjectDAO
abstractSubject
- The Instance of the object themeplugin
- The Plugin using this data access servicepublic void delete(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IAbstractSubjectDAO
nIdTheme
- The indentifier of the object Themeplugin
- The Plugin using this data access servicepublic Theme load(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IAbstractSubjectDAO
nIdTheme
- The indentifier of the object Themeplugin
- The Plugin using this data access service
public void store(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IAbstractSubjectDAO
abstractSubject
- The instance of the Theme to updateplugin
- The Plugin using this data access servicepublic List<? extends AbstractSubject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll
in interface IAbstractSubjectDAO
plugin
- The Plugin using this data access service
public Collection<? extends AbstractSubject> findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Theme
specified by the parent id
findByIdParent
in interface IAbstractSubjectDAO
nIdParent
- The parent Theme idplugin
- The Plugin using this data access service
Theme
public Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Theme
specified by the Faq id
findByIdFaq
in interface IAbstractSubjectDAO
nIdFaq
- The faq idplugin
- The Plugin using this data access service
Theme
public Collection<VisitorQuestion> findQuestions(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findQuestions
in interface IThemeDAO
nIdTheme
- The identifier of the Themeplugin
- The Plugin using this data access service
public int getMaxOrder(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxOrder
in interface IAbstractSubjectDAO
nIdParent
- The id of the parent themeplugin
- The Plugin
public Theme findByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByOrder
in interface IAbstractSubjectDAO
nIdParent
- The parent IdnOrder
- The orderplugin
- The Plugin
Theme
public Theme findByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByFaqOrder
in interface IAbstractSubjectDAO
nIdFaq
- The faq IdnOrder
- The orderplugin
- The Plugin
Theme
public void insertLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertLinkToFaq
in interface IAbstractSubjectDAO
nIdAbstractSubject
- The id of the object ThemenIdFaq
- The parent id of the object Faqplugin
- The Plugin using this data access servicepublic void deleteLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteLinkToFaq
in interface IAbstractSubjectDAO
nIdAbstractSubject
- The id of the object ThemenIdFaq
- The parent id of the object Faqplugin
- The Plugin using this data access servicepublic void deleteAllLinksToFaq(int nIdAbstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllLinksToFaq
in interface IAbstractSubjectDAO
nIdAbstractSubject
- The id of the object Themeplugin
- The Plugin using this data access service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |