Package com.avoka.fc.core.dao
Class RequiredAttachmentDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.RequiredAttachmentDao
-
public class RequiredAttachmentDao extends AbstractDao
Provides a DAO for the RequiredAttachmen entity.- See Also:
RequiredAttachment
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description RequiredAttachmentDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequiredAttachment
createOrUpdateManuallySubmittedRequiredAttachment(Submission submission, String attachmentName, String mandatoryStatus)
Create or update a manually submitted RequiredAttachment record for the submission with the name and mandatory status.RequiredAttachment
createOrUpdateRequiredAttachment(Submission submission, RequiredAttachmentMetadata metadata)
Create or update a RequiredAttachment record for the submission with the specified required attachment metadata.RequiredAttachment
createOrUpdateRequiredAttachment(Submission submission, String attachmentName)
Create or update a RequiredAttachment record for the submission with the specified required attachment name.RequiredAttachment
getRequiredAttachmentForPK(Object id)
Return the required attachment for the given idRequiredAttachment
getRequiredAttachmentForSubmission(Submission submission, String attachmentName)
Return the required attachment for the given submission and attachment name.-
Methods 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
-
-
-
-
Method Detail
-
getRequiredAttachmentForPK
public RequiredAttachment getRequiredAttachmentForPK(Object id)
Return the required attachment for the given id- Parameters:
id
- the required attachment id- Returns:
- the required attachment for the given id
-
createOrUpdateRequiredAttachment
public RequiredAttachment createOrUpdateRequiredAttachment(Submission submission, RequiredAttachmentMetadata metadata)
Create or update a RequiredAttachment record for the submission with the specified required attachment metadata.- Parameters:
submission
- the submission record (required)metadata
- the required attachment metadata (required)- Returns:
- the new or update required attachment record
- Since:
- 4.1.0
-
createOrUpdateRequiredAttachment
public RequiredAttachment createOrUpdateRequiredAttachment(Submission submission, String attachmentName)
Create or update a RequiredAttachment record for the submission with the specified required attachment name.- Parameters:
submission
- the submission record (required)attachmentName
- the required attachment name (required)- Returns:
- the new or update required attachment record
- Since:
- 5.0.0
-
createOrUpdateManuallySubmittedRequiredAttachment
public RequiredAttachment createOrUpdateManuallySubmittedRequiredAttachment(Submission submission, String attachmentName, String mandatoryStatus)
Create or update a manually submitted RequiredAttachment record for the submission with the name and mandatory status.- Parameters:
submission
- the submission record (required)attachmentName
- the required attachment name (required)mandatoryStatus
- the mandatory status [ Required | Optional ]- Returns:
- the new or update required attachment record
- Since:
- 4.1.0
-
getRequiredAttachmentForSubmission
public RequiredAttachment getRequiredAttachmentForSubmission(Submission submission, String attachmentName)
Return the required attachment for the given submission and attachment name.- Parameters:
submission
- the submission record (required)attachmentName
- the required attachment name (required)- Returns:
- the required attachment for the given submission and attachment name.
- Since:
- 4.1.0
-
-