|
||||||||||
| 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 IAbstractSubjectDAOplugin - The Plugin using this data access service
public 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 service
public 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 service
public 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 service
public 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 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 IAbstractSubjectDAOnIdParent - 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 IAbstractSubjectDAOnIdFaq - 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 IThemeDAOnIdTheme - 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 IAbstractSubjectDAOnIdParent - 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 IAbstractSubjectDAOnIdParent - 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 IAbstractSubjectDAOnIdFaq - 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 IAbstractSubjectDAOnIdAbstractSubject - The id of the object ThemenIdFaq - The parent id of the object Faqplugin - The Plugin using this data access service
public 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 service
public 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 service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||