Class FileStorageTransferRequestDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.filestoragetransfer.business.FileStorageTransferRequestDAO
-
- All Implemented Interfaces:
IFileStorageTransferRequestDAO
public final class FileStorageTransferRequestDAO extends java.lang.Object implements IFileStorageTransferRequestDAO
This class provides Data Access methods for Request objects
-
-
Constructor Summary
Constructors Constructor Description FileStorageTransferRequestDAO()
-
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(FileStorageTransferRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<FileStorageTransferRequest>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<java.lang.Integer>selectIdRequestsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the request objects and returns them as a listjava.util.List<java.lang.Integer>selectIdRequestsListByStatus(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.lang.String RequestStatus)Load the id of all the request objects with a specific status and returns them as a listjava.util.List<FileStorageTransferRequest>selectRequestsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the request objects and returns them as a listjava.util.List<FileStorageTransferRequest>selectRequestsListByIds(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<FileStorageTransferRequest>selectRequestsListByStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String RequestStatus)Load the data of all the avant objects and returns them as a listjava.util.List<FileStorageTransferRequest>selectRequestsListToExecute(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.sql.Timestamp executionTime, int limit)Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectRequestsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the request objects and returns them as a referenceListvoidstore(FileStorageTransferRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(FileStorageTransferRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFileStorageTransferRequestDAO- Parameters:
request- instance of the Request object to insertplugin- the Plugin
-
load
public java.util.Optional<FileStorageTransferRequest> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIFileStorageTransferRequestDAO- Parameters:
nKey- The identifier of the requestplugin- the Plugin- Returns:
- The instance of the request
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIFileStorageTransferRequestDAO- Parameters:
nKey- The identifier of the Request to deleteplugin- the Plugin
-
store
public void store(FileStorageTransferRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFileStorageTransferRequestDAO- Parameters:
request- the reference of the Requestplugin- the Plugin
-
selectRequestsList
public java.util.List<FileStorageTransferRequest> selectRequestsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the request objects and returns them as a list- Specified by:
selectRequestsListin interfaceIFileStorageTransferRequestDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the request objects
-
selectIdRequestsList
public java.util.List<java.lang.Integer> selectIdRequestsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the request objects and returns them as a list- Specified by:
selectIdRequestsListin interfaceIFileStorageTransferRequestDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the request objects
-
selectRequestsReferenceList
public fr.paris.lutece.util.ReferenceList selectRequestsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the request objects and returns them as a referenceList- Specified by:
selectRequestsReferenceListin interfaceIFileStorageTransferRequestDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the request objects
-
selectRequestsListByIds
public java.util.List<FileStorageTransferRequest> selectRequestsListByIds(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:
selectRequestsListByIdsin interfaceIFileStorageTransferRequestDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectIdRequestsListByStatus
public java.util.List<java.lang.Integer> selectIdRequestsListByStatus(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.lang.String RequestStatus)Load the id of all the request objects with a specific status and returns them as a list- Specified by:
selectIdRequestsListByStatusin interfaceIFileStorageTransferRequestDAO- Returns:
- The list which contains the id of all the request objects
-
selectRequestsListByStatus
public java.util.List<FileStorageTransferRequest> selectRequestsListByStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String RequestStatus)
Load the data of all the avant objects and returns them as a list- Specified by:
selectRequestsListByStatusin interfaceIFileStorageTransferRequestDAO- Parameters:
plugin- the PluginRequestStatus- Status of the request- Returns:
- The list which contains the data of all the avant objects
-
selectRequestsListToExecute
public java.util.List<FileStorageTransferRequest> selectRequestsListToExecute(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.sql.Timestamp executionTime, int limit)
Load the data of all the avant objects and returns them as a list- Specified by:
selectRequestsListToExecutein interfaceIFileStorageTransferRequestDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the avant objects
-
-