Class ReferenceItemDAO
java.lang.Object
fr.paris.lutece.plugins.referencelist.business.ReferenceItemDAO
- All Implemented Interfaces:
IReferenceItemDAO
This class provides Data Access methods for ReferenceItem objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteAll(int nIdReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes the records associated to a Referencevoidinsert(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadReferenceItemByName(int nIdReference, String sItemName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectAllReferenceItems(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the referenceItem objects and returns them as a listselectIdReferenceItemsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the referenceItem objects and returns them as a listselectReferenceItemsList(int idReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the referenceItem objects and returns them as a listfr.paris.lutece.util.ReferenceListselectReferenceItemsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the referenceItem objects and returns them as a referenceListselectReferenceItemsTranslatedList(int idReference, String strLang, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the translated referenceItem objects and returns them as a listvoidstore(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
ReferenceItemDAO
public ReferenceItemDAO()
-
-
Method Details
-
insert
public void insert(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceIReferenceItemDAO- Parameters:
referenceItem- instance of the ReferenceItem object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIReferenceItemDAO- Parameters:
nKey- The identifier of the referenceItemplugin- the Plugin- Returns:
- The instance of the referenceItem
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIReferenceItemDAO- Parameters:
nKey- The identifier of the ReferenceItem to deleteplugin- the Plugin
-
deleteAll
public void deleteAll(int nIdReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Deletes the records associated to a Reference- Specified by:
deleteAllin interfaceIReferenceItemDAO- Parameters:
nIdReference- The Reference identifier of the Reference Items to delete
-
store
Update the record in the table- Specified by:
storein interfaceIReferenceItemDAO- Parameters:
referenceItem- the reference of the ReferenceItemplugin- the Plugin
-
selectReferenceItemsList
public List<ReferenceItem> selectReferenceItemsList(int idReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the referenceItem objects and returns them as a list- Specified by:
selectReferenceItemsListin interfaceIReferenceItemDAOplugin- the Plugin- Returns:
- The list which contains the data of all the referenceItem objects
-
selectReferenceItemsTranslatedList
public List<ReferenceItem> selectReferenceItemsTranslatedList(int idReference, String strLang, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the translated referenceItem objects and returns them as a list- Specified by:
selectReferenceItemsTranslatedListin interfaceIReferenceItemDAO- Parameters:
idReference- the identifier of the referencestrLang- the languageplugin- the Plugin- Returns:
-
selectIdReferenceItemsList
public List<Integer> selectIdReferenceItemsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the referenceItem objects and returns them as a list- Specified by:
selectIdReferenceItemsListin interfaceIReferenceItemDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the referenceItem objects
-
selectReferenceItemsReferenceList
public fr.paris.lutece.util.ReferenceList selectReferenceItemsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the referenceItem objects and returns them as a referenceList- Specified by:
selectReferenceItemsReferenceListin interfaceIReferenceItemDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the referenceItem objects
-
selectAllReferenceItems
public List<ReferenceItem> selectAllReferenceItems(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the referenceItem objects and returns them as a list- Specified by:
selectAllReferenceItemsin interfaceIReferenceItemDAO- Parameters:
plugin- the plugin- Returns:
- The list which contains the data of all the referenceItem objects
-
loadReferenceItemByName
public ReferenceItem loadReferenceItemByName(int nIdReference, String sItemName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadReferenceItemByNamein interfaceIReferenceItemDAO- Parameters:
nIdReference- The identifier of the reference of referenceitemssItemName- The name of referenceitemplugin- the Plugin- Returns:
- The instance of the referenceItem
-