Package com.avoka.fc.core.dao
Class SubmissionMilestoneDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.SubmissionMilestoneDao
Provides a DAO for the SubmissionMilestone entity.
- Since:
- 17.10.0
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMilestone
(Submission submission, String milestone, RequestLog requestLog) Add a submission milestone and registers it with the data context.getMostRecentMilestone
(Submission submission) Return the most recent milestone logged against the submission, if any.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
-
SubmissionMilestoneDao
public SubmissionMilestoneDao()
-
-
Method Details
-
addMilestone
public SubmissionMilestone addMilestone(Submission submission, String milestone, RequestLog requestLog) Add a submission milestone and registers it with the data context.- Parameters:
submission
- the submission (required)milestone
- the milestone string (required)requestLog
- the request log (optional)- Returns:
- the SubmissionMilestone instance
-
getMostRecentMilestone
Return the most recent milestone logged against the submission, if any.- Parameters:
submission
- the submission (required)- Returns:
- the most recent milestone (by creation time, then ID)
-