Class FileStorageTransferErrorDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.filestoragetransfer.business.FileStorageTransferErrorDAO
-
- All Implemented Interfaces:
IFileStorageTransferErrorDAO
public final class FileStorageTransferErrorDAO extends java.lang.Object implements IFileStorageTransferErrorDAO
This class provides Data Access methods for Error objects
-
-
Constructor Summary
Constructors Constructor Description FileStorageTransferErrorDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(FileStorageTransferError error, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<FileStorageTransferError>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<FileStorageTransferError>selectErrorsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the error objects and returns them as a listjava.util.List<FileStorageTransferError>selectErrorsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a listjava.util.List<FileStorageTransferError>selectErrorsListByRequestId(fr.paris.lutece.portal.service.plugin.Plugin plugin, int RequestId)Load the data of all the error objects and returns them as a listfr.paris.lutece.util.ReferenceListselectErrorsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the error objects and returns them as a referenceListjava.util.List<java.lang.Integer>selectIdErrorsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the error objects and returns them as a listvoidstore(FileStorageTransferError error, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(FileStorageTransferError error, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFileStorageTransferErrorDAO- Parameters:
error- instance of the Error object to insertplugin- the Plugin
-
load
public java.util.Optional<FileStorageTransferError> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIFileStorageTransferErrorDAO- Parameters:
nKey- The identifier of the errorplugin- the Plugin- Returns:
- The instance of the error
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIFileStorageTransferErrorDAO- Parameters:
nKey- The identifier of the Error to deleteplugin- the Plugin
-
store
public void store(FileStorageTransferError error, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFileStorageTransferErrorDAO- Parameters:
error- the reference of the Errorplugin- the Plugin
-
selectErrorsList
public java.util.List<FileStorageTransferError> selectErrorsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the error objects and returns them as a list- Specified by:
selectErrorsListin interfaceIFileStorageTransferErrorDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the error objects
-
selectIdErrorsList
public java.util.List<java.lang.Integer> selectIdErrorsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the error objects and returns them as a list- Specified by:
selectIdErrorsListin interfaceIFileStorageTransferErrorDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the error objects
-
selectErrorsReferenceList
public fr.paris.lutece.util.ReferenceList selectErrorsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the error objects and returns them as a referenceList- Specified by:
selectErrorsReferenceListin interfaceIFileStorageTransferErrorDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the error objects
-
selectErrorsListByIds
public java.util.List<FileStorageTransferError> selectErrorsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)
Load the data of all the avant objects and returns them as a list- Specified by:
selectErrorsListByIdsin interfaceIFileStorageTransferErrorDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectErrorsListByRequestId
public java.util.List<FileStorageTransferError> selectErrorsListByRequestId(fr.paris.lutece.portal.service.plugin.Plugin plugin, int RequestId)
Load the data of all the error objects and returns them as a list- Specified by:
selectErrorsListByRequestIdin interfaceIFileStorageTransferErrorDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the error objects
-
-