Class ReferenceDAO
java.lang.Object
fr.paris.lutece.plugins.referencelist.business.ReferenceDAO
- All Implemented Interfaces:
IReferenceDAO
This class provides Data Access methods for Reference objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableintloadByName(String referenceName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectIdReferencesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the reference objects and returns them as a listselectReferencesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the reference objects and returns them as a listfr.paris.lutece.util.ReferenceListselectReferencesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the reference objects and returns them as a referenceListvoidUpdate the record in the table
-
Constructor Details
-
ReferenceDAO
public ReferenceDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIReferenceDAO- Parameters:
reference- instance of the Reference object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIReferenceDAO- Parameters:
nKey- The identifier of the referenceplugin- the Plugin- Returns:
- The instance of the reference
-
loadByName
Load the data from the table- Specified by:
loadByNamein interfaceIReferenceDAO- Parameters:
referenceName- The name of the referenceplugin- the Plugin- Returns:
- The instance of the reference
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIReferenceDAO- Parameters:
nKey- The identifier of the Reference to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIReferenceDAO- Parameters:
reference- the reference of the Referenceplugin- the Plugin
-
selectReferencesList
Load the data of all the reference objects and returns them as a list- Specified by:
selectReferencesListin interfaceIReferenceDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the reference objects
-
selectIdReferencesList
Load the id of all the reference objects and returns them as a list- Specified by:
selectIdReferencesListin interfaceIReferenceDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the reference objects
-
selectReferencesReferenceList
public fr.paris.lutece.util.ReferenceList selectReferencesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the reference objects and returns them as a referenceList- Specified by:
selectReferencesReferenceListin interfaceIReferenceDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the reference objects
-