Class SubmissionMilestoneDao


  • public class SubmissionMilestoneDao
    extends BaseDao
    Provides a DAO for the SubmissionMilestone entity.
    Since:
    17.10.0
    • Constructor Detail

      • SubmissionMilestoneDao

        public SubmissionMilestoneDao()
    • Method Detail

      • 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

        public SubmissionMilestone getMostRecentMilestone​(Submission submission)
        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)