Class AttachmentRequestDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.attachmentrequest.business.AttachmentRequestDAO
-
- All Implemented Interfaces:
IAttachmentRequestDAO
public final class AttachmentRequestDAO extends java.lang.Object implements IAttachmentRequestDAO
This class provides Data Access methods for AttachmentRequest objects
-
-
Constructor Summary
Constructors Constructor Description AttachmentRequestDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nAttachmentRequestId)Delete a record from the tablevoidinsert(AttachmentRequest attachmentRequest)Insert a new record in the table.AttachmentRequestload(int nId)Load the data from the tablejava.util.List<AttachmentRequest>loadByCuid(java.lang.String strCuid)Load the data from the tablejava.util.List<AttachmentRequest>selectAttachmentRequestsList()Load the data of all the attachmentRequest objects and returns them as a Listvoidstore(AttachmentRequest attachmentRequest)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(AttachmentRequest attachmentRequest)
Insert a new record in the table.- Specified by:
insertin interfaceIAttachmentRequestDAO- Parameters:
attachmentRequest- instance of the AttachmentRequest object to inssert
-
load
public AttachmentRequest load(int nId)
Load the data from the table- Specified by:
loadin interfaceIAttachmentRequestDAO- Returns:
- The instance of the attachmentRequest
-
loadByCuid
public java.util.List<AttachmentRequest> loadByCuid(java.lang.String strCuid)
Load the data from the table- Specified by:
loadByCuidin interfaceIAttachmentRequestDAO- Parameters:
strCuid- The cuid of the attachmentRequest- Returns:
- The instance of the attachmentRequest
-
delete
public void delete(int nAttachmentRequestId)
Delete a record from the table- Specified by:
deletein interfaceIAttachmentRequestDAO- Parameters:
nAttachmentRequestId- int identifier of the AttachmentRequest to delete
-
store
public void store(AttachmentRequest attachmentRequest)
Update the record in the table- Specified by:
storein interfaceIAttachmentRequestDAO- Parameters:
attachmentRequest- the reference of the AttachmentRequest
-
selectAttachmentRequestsList
public java.util.List<AttachmentRequest> selectAttachmentRequestsList()
Load the data of all the attachmentRequest objects and returns them as a List- Specified by:
selectAttachmentRequestsListin interfaceIAttachmentRequestDAO- Returns:
- The List which contains the data of all the attachmentRequest objects
-
-