Reporting API Documentation
|
ffr.CronSpecglobal class CronSpec This class is used to represent a cron expression. Read http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm and http://en.wikipedia.org/wiki/Cron. New crons can be generated from scratch, or can be generated from a given cron string. Each cron will be of a given type, known as a frequency type, e.g Hourly, daily, weekly. Date2014 Methods
createHourlyCronglobal static ffr.CronSpec createHourlyCron(String interval, String offset) Create a ffr.CronSpec with an hourly schedule. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createDailyCronglobal static ffr.CronSpec createDailyCron(String hour) Create a ffr.CronSpec with a daily schedule. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createWeeklyCronglobal static ffr.CronSpec createWeeklyCron(String hour, String[] weekDays) Create a ffr.CronSpec with a weekly schedule. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createMonthlyByDayOfTheMonthCronglobal static ffr.CronSpec createMonthlyByDayOfTheMonthCron(String hour, String monthDay) Create a ffr.CronSpec with a monthly schedule via a specific day of the month. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createMonthlyByDayOfTheWeekCronglobal static ffr.CronSpec createMonthlyByDayOfTheWeekCron(String hour, String dayOccurrence, String weekday) Create a ffr.CronSpec with a monthly schedule via a specific week day. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createByDateglobal static ffr.CronSpec createByDate(String seconds, String minutes, String hour, String monthDay, String month, String year) Create a ffr.CronSpec to schedule on a specific date. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createByDateglobal static ffr.CronSpec createByDate(String seconds, String minutes, String hour, Date theDate) Create a ffr.CronSpec to schedule on a specific date. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createByDateglobal static ffr.CronSpec createByDate(Datetime theDate) Create a ffr.CronSpec to schedule on a specific date. Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code parseglobal static ffr.CronSpec parse(String cronString) Parse the given cron string into a ffr.CronSpec Input Parameters
Return ValueThis method returns a CronSpec object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code |