Class ExtractionDAO
java.lang.Object
fr.paris.lutece.plugins.identityexport.business.ExtractionDAO
- All Implemented Interfaces:
IExtractionDAO
This class provides Data Access methods for Extraction objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteFromProfil(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(ExportAttribute extraction, 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 tableselectExtractionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the extraction objects and returns them as a listselectExtractionsListByIdProfil(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdProfil) Load the data of all the avant objects and returns them as a listselectExtractionsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectExtractionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the extraction objects and returns them as a referenceListselectIdExtractionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the extraction objects and returns them as a listselectIdExtractionsListByIdProfil(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdProfil) Load the id of all the extraction objects and returns them as a listvoidstore(ExportAttribute extraction, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
ExtractionDAO
public ExtractionDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIExtractionDAO- Parameters:
extraction- instance of the Extraction object to insertplugin- the Plugin
-
load
public Optional<ExportAttribute> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadin interfaceIExtractionDAO- Parameters:
nKey- The identifier of the extractionplugin- the Plugin- Returns:
- The instance of the extraction
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIExtractionDAO- Parameters:
nKey- The identifier of the Extraction to deleteplugin- the Plugin
-
deleteFromProfil
public void deleteFromProfil(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deleteFromProfilin interfaceIExtractionDAO- Parameters:
nKey- The identifier of the Extraction to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIExtractionDAO- Parameters:
extraction- the reference of the Extractionplugin- the Plugin
-
selectExtractionsList
public List<ExportAttribute> selectExtractionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the extraction objects and returns them as a list- Specified by:
selectExtractionsListin interfaceIExtractionDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the extraction objects
-
selectIdExtractionsList
Load the id of all the extraction objects and returns them as a list- Specified by:
selectIdExtractionsListin interfaceIExtractionDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the extraction objects
-
selectExtractionsReferenceList
public fr.paris.lutece.util.ReferenceList selectExtractionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the extraction objects and returns them as a referenceList- Specified by:
selectExtractionsReferenceListin interfaceIExtractionDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the extraction objects
-
selectExtractionsListByIds
public List<ExportAttribute> selectExtractionsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a list- Specified by:
selectExtractionsListByIdsin interfaceIExtractionDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectExtractionsListByIdProfil
public List<ExportAttribute> selectExtractionsListByIdProfil(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdProfil) Load the data of all the avant objects and returns them as a list- Specified by:
selectExtractionsListByIdProfilin interfaceIExtractionDAO- Parameters:
plugin- the PluginnIdProfil- id profil- Returns:
- The list which contains the data of all the avant objects
-
selectIdExtractionsListByIdProfil
public List<Integer> selectIdExtractionsListByIdProfil(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdProfil) Load the id of all the extraction objects and returns them as a list- Specified by:
selectIdExtractionsListByIdProfilin interfaceIExtractionDAO- Parameters:
plugin- the PluginnIdProfil- id profil- Returns:
- The list which contains the id of all the extraction objects
-