public final class ThemeDAO extends Object implements IThemeDAO
| Constructor and Description |
|---|
ThemeDAO() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface IAbstractSubjectDAOplugin - The Plugin using this data access servicepublic void insert(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAbstractSubjectDAOabstractSubject - 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 IAbstractSubjectDAOnIdTheme - 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 IAbstractSubjectDAOnIdTheme - The indentifier of the object Themeplugin - The Plugin using this data access servicepublic void store(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAbstractSubjectDAOabstractSubject - 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 IAbstractSubjectDAOplugin - The Plugin using this data access servicepublic Collection<? extends AbstractSubject> findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Theme specified by the parent idfindByIdParent in interface IAbstractSubjectDAOnIdParent - The parent Theme idplugin - The Plugin using this data access serviceThemepublic Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Theme specified by the Faq idfindByIdFaq in interface IAbstractSubjectDAOnIdFaq - The faq idplugin - The Plugin using this data access serviceThemepublic Collection<VisitorQuestion> findQuestions(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findQuestions in interface IThemeDAOnIdTheme - The identifier of the Themeplugin - The Plugin using this data access servicepublic int getMaxOrder(int nIdParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxOrder in interface IAbstractSubjectDAOnIdParent - The id of the parent themeplugin - The Pluginpublic Theme findByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByOrder in interface IAbstractSubjectDAOnIdParent - The parent IdnOrder - The orderplugin - The PluginThemepublic Theme findByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByFaqOrder in interface IAbstractSubjectDAOnIdFaq - The faq IdnOrder - The orderplugin - The PluginThemepublic void insertLinkToFaq(int nIdAbstractSubject,
int nIdFaq,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertLinkToFaq in interface IAbstractSubjectDAOnIdAbstractSubject - 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 IAbstractSubjectDAOnIdAbstractSubject - 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 IAbstractSubjectDAOnIdAbstractSubject - The id of the object Themeplugin - The Plugin using this data access serviceCopyright © 2017 City of Paris. All rights reserved.