Package com.avoka.fc.core.dao
Class AttachmentDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.AttachmentDao
Provides a DAO for the Attachment entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttachmentForAttachmentKey
(String attachmentKey) Return the attachment for a specific attachment surrogate keygetAttachmentForAttachmentKey
(String clientKey, String attachmentKey) Return the attachment for a specific attachment surrogate key and clientReturn the attachment for the given attachment id.getAttachmentForIdAndSubmission
(Long id, Submission submission) Return the attachment for the given submission and attachment id.getAttachmentsForSubmissionKey
(String submissionId, boolean deliverSubmittedPDF) Return attachment information for a given submissiongetSubmissionElectronicAttachments
(Long submissionId) Return the data of all the electronic attachments associated with the given submission.getSubmissionElectronicAttachmentsSummary
(Long submissionId) Return summary of all the electronic attachments associated with the given submission.getSubmissionFileAttachments
(Submission submission) Return all attachments for a submission, also pre-fetching the associated file upload objectsMethods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
AttachmentDao
public AttachmentDao()
-
-
Method Details
-
getAttachmentForIdAndSubmission
Return the attachment for the given attachment id.- Parameters:
id
- the attachment id (required)- Returns:
- the attachment for the given attachment id
- Since:
- 5.0
-
getAttachmentForIdAndSubmission
Return the attachment for the given submission and attachment id.- Parameters:
id
- the attachment idsubmission
- the attachment submission- Returns:
- the attachment for the given submission and attachment id
- Since:
- 5.0
-
getAttachmentsForSubmissionKey
Return attachment information for a given submission- Parameters:
submissionId
- a valid submission OIDdeliverSubmittedPDF
- whether the submitted PDF form shall be delivered- Returns:
- a list of
DataRow
objects containing attachment information
-
getAttachmentForAttachmentKey
Return the attachment for a specific attachment surrogate key and client- Parameters:
clientKey
- the surrogate key of the client associated with the submissionattachmentKey
- the surrogate key of the attachment- Returns:
- the attachment for the given client and attachment surrogate keys
-
getAttachmentForAttachmentKey
Return the attachment for a specific attachment surrogate key- Parameters:
attachmentKey
- the surrogate key of the attachment- Returns:
- the attachment for the given surrogate key
-
getSubmissionFileAttachments
Return all attachments for a submission, also pre-fetching the associated file upload objects- Parameters:
submission
- the submission- Returns:
- the list of attachments for the submission
-
getSubmissionElectronicAttachments
Return the data of all the electronic attachments associated with the given submission.- Parameters:
submissionId
- a valid submission OID- Returns:
- a list of
DataRow
objects containing attachment information
-
getSubmissionElectronicAttachmentsSummary
Return summary of all the electronic attachments associated with the given submission.- Parameters:
submissionId
- a valid submission OID- Returns:
- a row of data containing attachment information summary
-