public class YearMonthDayCronExpression extends CronExpression
This implementation generates expression for yearly scheduling dates using month, day of month, and year. month: CronSpecialChars.FEB, CronSpecialChars.MAR, CronSpecialChars.APR, CronSpecialChars.MAY, CronSpecialChars.JUN, CronSpecialChars.JUL, CronSpecialChars.AUG, CronSpecialChars.SEP, CronSpecialChars.OCT, CronSpecialChars.NOV, CronSpecialChars.DEC day of month: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 year: 2009, 2010, etc... Note: Start date is skipped, date boundary is handled by ScheduleSequence implementation during schedule generation. e.g. Start Date : 02/24/09, Time : 10:10 (hh:mm) Format (second minute hour day month year) Generated Expression :0 10 10 6 JAN ? 2009/1 Explanation: Generate dates for 6th January of every year at 10:10 (hh:mm), starting from 2009. e.g. Start Date : 02/24/09, Time : 10:10 (hh:mm) Format (second minute hour day month year) Generated Expression :0 10 10 6 JAN ? 2009/2 Explanation: Generate dates for 6th January of every other year at 10:10 (hh:mm), starting from 2009
SECONDS| Constructor and Description |
|---|
YearMonthDayCronExpression(Date startDate,
Time24HrFmt time,
CronSpecialChars month,
Integer day,
Integer frequencyInYear) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpression()
This method implementation must provide valid Cron Expression.
|
getStartDate, getTimepublic YearMonthDayCronExpression(Date startDate, Time24HrFmt time, CronSpecialChars month, Integer day, Integer frequencyInYear) throws ParseException
ParseExceptionpublic String getExpression()
CronExpressiongetExpression in class CronExpressionCopyright © 2013 The Kuali Foundation. All Rights Reserved.