Interface IAbstractSubjectDAO
- All Known Subinterfaces:
ISubjectDAO,IThemeDAO
- All Known Implementing Classes:
SubjectDAO,ThemeDAO
public interface IAbstractSubjectDAO
This interface represents the business object of the
AbstractSubject-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteAllLinksToFaq(int nIdAbstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin) delete a record in the table.voiddeleteLinkToFaq(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 typefindByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a abstractSubject with the faq id and the order.Collection<? extends AbstractSubject>findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allAbstractSubjectspecified by the Faq idCollection<? extends AbstractSubject>findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allAbstractSubjectspecified by the parent idfindByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a abstractSubject with the parent id and the order.intgetMaxOrder(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the max order of a parent abstractSubjectvoidinsert(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.voidinsertLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) load the data of AbstractSubject from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a new AbstractSubjectvoidstore(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Method Details
-
newPrimaryKey
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a new AbstractSubject- Parameters:
plugin- The Plugin using this data access service- Returns:
- The new key.
-
insert
Insert a new record in the table.- Parameters:
abstractSubject- The Instance of the object AbstractSubjectplugin- The Plugin using this data access service
-
delete
void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nId- The indentifier of the object AbstractSubjectplugin- The Plugin using this data access service
-
load
load the data of AbstractSubject from the table- Parameters:
nId- The indentifier of the object AbstractSubjectplugin- The Plugin using this data access service- Returns:
- The Instance of the object AbstractSubject
-
store
Update the record in the table- Parameters:
abstractSubject- The instance of the AbstractSubject to updateplugin- The Plugin using this data access service
-
findAll
Finds all objects of this type- Parameters:
plugin- The Plugin using this data access service- Returns:
- A collection of objects
-
findByIdParent
Collection<? extends AbstractSubject> findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allAbstractSubjectspecified by the parent id- Parameters:
nIdParent- The parent abstractSubject idplugin- The Plugin using this data access service- Returns:
- A collection of
AbstractSubject
-
getMaxOrder
int getMaxOrder(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the max order of a parent abstractSubject- Parameters:
nIdParent- The id of the parent abstractSubjectplugin- ThePlugin- Returns:
- the max order
-
findByOrder
AbstractSubject findByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a abstractSubject with the parent id and the order.- Parameters:
nIdParent- The parent IdnOrder- The orderplugin- ThePlugin- Returns:
- the
AbstractSubject
-
findByFaqOrder
AbstractSubject findByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a abstractSubject with the faq id and the order.- Parameters:
nIdFaq- The faq IdnOrder- The orderplugin- ThePlugin- Returns:
- the
AbstractSubject
-
findByIdFaq
Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds allAbstractSubjectspecified by the Faq id- Parameters:
nIdFaq- The Faq abstractSubject idplugin- The Plugin using this data access service- Returns:
- A collection of
AbstractSubject
-
insertLinkToFaq
void insertLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Parameters:
nIdAbstractSubject- The id of the object SubjectnIdFaq- The parent id of the object Faqplugin- The Plugin using this data access service
-
deleteLinkToFaq
void deleteLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin) delete a record in the table.- Parameters:
nIdAbstractSubject- The id of the object SubjectnIdFaq- The parent id of the object Faqplugin- The Plugin using this data access service
-
deleteAllLinksToFaq
void deleteAllLinksToFaq(int nIdAbstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin) delete a record in the table.- Parameters:
nIdAbstractSubject- The id of the object Subjectplugin- The Plugin using this data access service
-