Class ScheduleObject

java.lang.Object
quadbase.scheduler.ScheduleObject
All Implemented Interfaces:
Serializable

public class ScheduleObject extends Object implements Serializable
Represent a schedule task to be performed by the scheduler. A typical use of this class involves the following:

 
      // first connect to Espress Manager
      ScheduleModifier.connectServer(null);
 
      // allocate the ScheduleObject
 ScheduleObject sObj = new ScheduleObject("SCH_OBJ1", ScheduleObject.REPORTOBJ);
      // set the desired settings for this schedule task
 sObj.setFileLocation("Templates/SAMPLE.rpt");
 String exportLoc = sObj.pickDefaultExportLocation(); * 
 sObj.setReportType(IExportConstants.DHTML);
 sObj.setTaskOption(ScheduleObject.ONE_TIME);
 Calendar calendar = Calendar.getInstance();
 calendar.add(Calendar.MINUTE, 5);
 sObj.setStartDate(calendar.getTimeInMillis());
 sObj.setSendEmail(false);
 
      // add the task (ScheduleObject) to the scheduler
 ScheduleModifier.addScheduleTask(sObj);
 
 
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
     
    static final int
    One of the constants returned by the method getEmailType() that specifies an email type.
    static final int
    One of the constants returned by the method getEmailType() that specifies an email type.
    static final int
    One of the constants returned by the method getEmailType() that specifies an email type.
    static final int
    internal use only
    static final int
    One of the constants that specifies a type of schedule job
    static final int
    One of the constants returned by the method getIntervalType() that specifies export time interval.
    static final int
    One of the constants returned by the method getTaskOption() that specifies a type of task.
    static int
     
    static final int
    One of the constants returned by the method getIntervalType() that specifies export time interval.
    static int
     
    static final int
    One of the constants returned by the method getTaskOption() that specifies a type of task.
    protected int
     
    static final int
    internal use only
    static final int
    internal use only
    static final int
    internal use only
    static final int
    internal use only
    static final int
     
    static final int
    One of the constants that specifies a type of schedule job
    static final int
    One of the constants returned by the method getIntervalType() that specifies export time interval.
    static final int
    One of the constants returned by the method getTaskOption() that specifies a type of task.
    static final String[]
    internal use only
  • Constructor Summary

    Constructors
    Constructor
    Description
    internal use only
    ScheduleObject(String name, boolean isChartObject)
    internal use only
    ScheduleObject(String name, int type)
    Creates ScheduleObject by providing schedule name and object type
    internal use only
  • Method Summary

    Modifier and Type
    Method
    Description
    static quadbase.reportdesigner.report.Report
    createReport(String urlPath, String filePath)
    internal use only
    boolean
    remove schedule job from the queue
    boolean
    deleteJobPermanently(long curTime)
     
    boolean
    internal use only
    boolean
    exportNow(long curTime)
    internal use only
    For Email feature: Returns the body text of the email
    internal use only
    int
    returns what type of bursting has been applied (Burst All or Burst Group)
    internal use only
    Returns schedule command
    int
    If task option is TIME_INTERVAL: Returns day interval in days
    int
    returns the column index whose data provides the email addresses to send the exported reports to
    int
    For Email feature: Returns email type: ASATTACHMENT/ ASLINK/ ASHTML
    long
    If task option is TIME_INTERVAL / FIXEDDAYS: if endDate = -1, it runs indefinitely Returns end date for scheduled event
    int
    If task option is FIXEDDAYS Returns end time (in minutes) for scheduled event.
    Returns export file location
    long
    internal use only
    int
    internal use only
    For DHTML export: Returns the external style sheet file used for DHTML export.
    For Fail Job Email feature: returns the body text of the email
    For Fail Job Email feature: returns the subject of the email
    For Fail Job Email feature: returns recievers' email addresses
    Returns report file location
    For Email feature: Returns sender email address
    internal use only
    int
    internal use only
    int
    internal use only
    int
    internal use only
    int
    If task option is TIME_INTERVAL: Returns export time interval: TIME/ DAYS/ MONTHS
    int
    internal use only
    int
    If task option is TIME_INTERVAL: Returns month interval in months
    Returns schedule job name
    int
    For TXT export: Returns the newline delimiter: IDelimiterConstants.WINDOWS_NEWLINE, IDelimiterConstants.MAC_NEWLINE, IDelimiterConstants.OTHERS_NEWLINE...
    int
    getNextExportDay(int curDay, int[] specifyDays)
    internal use only
    long
    Returns next export time in milliseconds
    int
    internal use only
    For Param report/ chart Email feature: get hashtable for param set name (key), and email addresses (value) for example, "Param Set 1", new String[]{"peterL@quadbase.com", "HenryP@quadbase.com"}
    Returns all the parameter set that have been defined for a schedule job that using param report.
    For PDF export: Returns the PDF owner password
    For PDF export: Returns the PDF user password
    int
    internal use only
    int
    If it's a drilldown report, user has to enter port number for viewing sub-level report.
    internal use only
    int
    Returns exported report type: IExportConstants.PDF, IExportConstants.DHTML, IExportConstants.HTML...
    Returns the report security level.
    If it's a drilldown report, user has to enter server name for viewing sub-level report.
    If it's a drilldown report, user has to enter servlet directory for viewing sub-level report.
    int[]
    If task option is FIXEDDAYS: Returns export file dates.
    int[]
    If task option is FIXEDDAYS: Returns export file days
    int[]
    If task option is FIXEDDAYS: Returns export file time (in minutes)
    long
    Returns start date for scheduled event in POSIX time.
    int
    If task option is FIXEDDAYS Returns start time (in minutes) for scheduled event.
    For Email feature: Returns the subject of the email
    int
    Returns task option:
    ONE_TIME - export once
    TIME_INTERVAL - export report after certain time interval
    FIXEDDAYS - only export report in certain fixed days/ dates
    int
    For TXT and CSV export: Returns the text delimiter: IDelimiterConstants.TAB, IDelimiterConstants.SPACE, IDelimiterConstants.COMMA...
    int
    If task option is TIME_INTERVAL: Returns time interval in mins
    For Email feature: Returns receivers' email addresses
    For Email feature: If you elect to send a link to the generated report, you will need to specify an http path to the directory in which the report is generated.
    internal use only
    boolean
    internal use only
    boolean
    Returns whether it is schedule command object
    boolean
    For PDF export: Returns whether use encoding for DFT export
    boolean
    isExportDay(int curDay, int[] specifyDays)
    internal use only
    boolean
    DHTML/ HTML option: Returns whether export report to multi-pages
    boolean
    For DHTML/ HTML export: Exports return in one single page with pagination.
    boolean
    internal use only
    boolean
     
    boolean
    PDF / DHTML / HTML / CSV / TXT option: Returns whether using optimize memory export
    boolean
    Returns whether it is schedule report object
    static boolean
    internal use only
    boolean
    For Email feature: Returns whether email notification/delivery is used for the exported report
    boolean
    This method will attach timestamp at the end of a file name in order to create new file everytime (instead of overwriting the file) It's useful feature for TIME_INTERVAL / FIXED_DAYS Returns whether attaching timestamp at the end of a file name
    boolean
    For DHTML export: Returns whether use external style sheet for DHTML export
    boolean
    Should HTTPS protocol be used for drill-down links (in PDF or DHTML format)?
    boolean
    For DHTML export: Returns whether use internal style sheet for DHTML export
    scheduler will pick default export file location Returns chosen file location
    void
    internal use only
    read(DataInput orgIn, int version)
    internal use only
    readComplete(DataInput orgIn, int version)
    internal use only
    void
    internal use only
    void
    setBodyText(String bodyText)
    For Email feature: specifies the body text of the email
    void
    internal use only
    void
    sets the type of bursting to be applied (QbScheduleObject.ALLBURSTING or QbScheduleObject.GROUPBURSTING)
    void
    setChart(boolean b)
    internal use only
    void
    internal use only
    void
    Specifies schedule command
    void
    setDayInterval(int dayInt)
    if task option is TIME_INTERVAL: specifies day interval in mins
    void
    internal use only
    void
    sets the column index whose data provides the email addresses to send the exported reports to
    void
    setEmailType(int type)
    For Email feature: specifies email type: ASATTACHMENT/ ASLINK/ ASHTML
    void
    setEncodePDF(boolean b)
    For PDF export: specifies whether use encoding for DFT export
    void
    setEndDate(long eDate)
    if task option is TIME_INTERVAL / FIXEDDAYS: if endDate = -1, it runs indefinitely specifies end date in millis second for scheduled event
    void
    setEndTime(int edTime)
    if task option is FIXEDDAYS: specifies end time for daily frequency feature
    void
    specifies export file location
    void
    setExportTime(long time)
    internal use only
    void
    DHTML/ HTML option: specifies whether export report to multi-pages
    void
    For DHTML/ HTML export: export return in one single page with pagination specifies state of exporting report to single page with pagination
    void
    For DHTML export: Specifies the external style sheet file used for DHTML export
    void
    setFailBodyText(String bodyTextFail)
    For Fail Job Email feature: returns the body text of the email
    void
    setFailSubject(String subjectFail)
    For Fail Job Email feature: returns the subject of the email
    void
    setFailToAddress(String toAddressFail)
    For Fail Job Email feature: returns recievers' email addresses
    void
    specifies report file location
    void
    For Email feature: specifies sender email address
    void
    setGIFTransparent(boolean b)
    internal use only
    void
    setID(int id)
    internal use only
    void
    internal use only
    void
    internal use only
    void
    setIntervalType(int type)
    if task option is TIME_INTERVAL: specifies export time interval: TIME/ DAYS/ MONTHS
    void
    setJPEGQuality(int qual)
    internal use only
    void
    internal use only
    void
    setLimitExcelCellSplit(boolean limitExcelCellSplit)
     
    void
    setMemoryOptimized(boolean b)
    report export option: specifies whether using optimize memory export
    void
    setMonthInterval(int monInt)
    if task option is TIME_INTERVAL: specifies month interval in mins
    void
    Specifies schedule job name
    void
    For TXT export: specifies the newline delimiter: IDelimiterConstants.WINDOWS_NEWLINE, IDelimiterConstants.MAC_NEWLINE, IDelimiterConstants.OTHERS_NEWLINE...
    void
    setPackageID(int packageID)
    internal use only
    void
    For Param report/ chart Email feature: create hashtable for param set name (key), and email addresses (value) for example, "Param Set 1", new String[]{"peterL@quadbase.com", "HenryP@quadbase.com"}
    void
    setParamList(Vector paramList)
    Specifies all the parameter set that have been defined for a schedule job that using param report.
    void
    setParamList(Vector paramListName, Vector paramList)
    specifies all the parameter set that have been defined for a schedule job that using param report.
    void
    For PDF export: specifies the PDF owner password
    void
    For PDF export: specifies the PDF user password
    void
    internal use only
    void
    setPortNumber(int pn)
    If it's a drilldown report, user has to enter port number for viewing sub-level report specifies port number
    void
    internal use only
    void
    setReportType(int type)
    Specifies exported report type: IExportConstants.PDF, IExportConstants.DHTML, IExportConstants.HTML...
    static void
    setRunMissedJob(boolean b)
    internal use only
    void
    specifies the report security level If no security level is going to apply to the report, use a null string
    void
    setSendEmail(boolean state)
    For Email feature: specifies whether email notification/delivery is used for the exported report
    void
    If it's a drilldown report, user has to enter server name for viewing sub-level report specifies server name
    void
    If it's a drilldown report, user has to enter servlet directory for viewing sub-level report specifies servlet directory
    void
    setSpecifyDates(int[] dates)
    if task option is FIXEDDAYS: Specifies export file dates.
    void
    setSpecifyDays(int[] days)
    if task option is FIXEDDAYS: specifies export file days
    void
    setSpecifyTime(int[] time)
    if task option is FIXEDDAYS: specifies export file time
    void
    setStartDate(long sDate)
    specifies start date for scheduled event
    void
    setStartTime(int stTime)
    if task option is FIXEDDAYS: specifies start time for daily frequency feature
    void
    setSubject(String subject)
    For Email feature: specifies the subject of the email
    void
    setTaskOption(int opt)
    specifies task option: ONE_TIME - export once TIME_INTERVAL - export report after certain time interval FIXEDDAYS - only export report in certain fixed days/ dates
    void
    For TXT and CSV export: specifies the text delimiter: IDelimiterConstants.TAB, IDelimiterConstants.SPACE, IDelimiterConstants.COMMA...
    void
    setTimeInterval(int timeInt)
    if task option is TIME_INTERVAL: specifies time interval in mins
    void
    setTimestampAttached(boolean attach)
    This method will attach timestamp at the end of a file name in order to create new file everytime (instead of overwriting the file).
    void
    For Email feature: specifies receivers' email addresses
    void
    setURLMapping(String urlMapping)
    For Email feature: If you elect to send a link to the generated report, you will need to specify an http path to the directory in which the report is generated.
    void
    For DHTML export: specifies whether use external style sheet for DHTML export
    void
    setUseHTTPS(boolean useHTTPS)
    Should HTTPS protocol be used for drill-down links (in PDF or DHTML format)? True for HTTPS, false for HTTP
    void
    For DHTML export: specifies whether use internal style sheet for DHTML export
    void
    internal use only
    boolean
     
    void
    write(DataOutput orgOut)
    internal use only
    void
    internal use only

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CHARTOBJ

      public static final int CHARTOBJ
      internal use only
      See Also:
    • REPORTOBJ

      public static final int REPORTOBJ
      One of the constants that specifies a type of schedule job
      See Also:
    • COMMANDOBJ

      public static final int COMMANDOBJ
      One of the constants that specifies a type of schedule job
      See Also:
    • PNG_COMPRESSSION_DEFAULT

      public static final int PNG_COMPRESSSION_DEFAULT
      internal use only
      See Also:
    • PNG_COMPRESSSION_FAST

      public static final int PNG_COMPRESSSION_FAST
      internal use only
      See Also:
    • PNG_COMPRESSSION_MAX

      public static final int PNG_COMPRESSSION_MAX
      internal use only
      See Also:
    • PNG_COMPRESSSION_NONE

      public static final int PNG_COMPRESSSION_NONE
      internal use only
      See Also:
    • removeScheduleIconInterval

      public static final int removeScheduleIconInterval
      See Also:
    • ASATTACHMENT

      public static final int ASATTACHMENT
      One of the constants returned by the method getEmailType() that specifies an email type.
      See Also:
    • ASHTML

      public static final int ASHTML
      One of the constants returned by the method getEmailType() that specifies an email type.
      See Also:
    • ONE_TIME

      public static final int ONE_TIME
      One of the constants returned by the method getTaskOption() that specifies a type of task.
      See Also:
    • TIME_INTERVAL

      public static final int TIME_INTERVAL
      One of the constants returned by the method getTaskOption() that specifies a type of task.
      See Also:
    • FIXED_DAYS

      public static final int FIXED_DAYS
      One of the constants returned by the method getTaskOption() that specifies a type of task.
      See Also:
    • TYPE

      public static final String[] TYPE
      internal use only
    • TIME

      public static final int TIME
      One of the constants returned by the method getIntervalType() that specifies export time interval.
      See Also:
    • DAYS

      public static final int DAYS
      One of the constants returned by the method getIntervalType() that specifies export time interval.
      See Also:
    • MONTHS

      public static final int MONTHS
      One of the constants returned by the method getIntervalType() that specifies export time interval.
      See Also:
    • NOBURSTING

      public static int NOBURSTING
    • GROUPBURSTING

      public static int GROUPBURSTING
    • ALLBURSTING

      public static int ALLBURSTING
    • packageID

      protected int packageID
  • Constructor Details

    • ScheduleObject

      public ScheduleObject(String name)
      internal use only
    • ScheduleObject

      public ScheduleObject(String name, boolean isChartObject)
      internal use only
    • ScheduleObject

      public ScheduleObject(ScheduleObject src)
      internal use only
    • ScheduleObject

      public ScheduleObject(String name, int type)
      Creates ScheduleObject by providing schedule name and object type
      Parameters:
      name - schedule job name
      type - object type: REPORTOBJ / COMMANDOBJ
  • Method Details

    • isRunMissedJob

      public static boolean isRunMissedJob()
      internal use only
    • setRunMissedJob

      public static void setRunMissedJob(boolean b)
      internal use only
    • createReport

      public static quadbase.reportdesigner.report.Report createReport(String urlPath, String filePath)
      internal use only
    • read

      public static ScheduleObject read(DataInput orgIn, int version) throws Exception
      internal use only
      Throws:
      Exception
    • readComplete

      public static ScheduleObject readComplete(DataInput orgIn, int version) throws Exception
      internal use only
      Throws:
      Exception
    • print

      public void print()
      internal use only
    • isChart

      public boolean isChart()
      internal use only
    • setChart

      public void setChart(boolean b)
      internal use only
    • isReport

      public boolean isReport()
      Returns whether it is schedule report object
    • isCommand

      public boolean isCommand()
      Returns whether it is schedule command object
    • getName

      public String getName()
      Returns schedule job name
    • setName

      public void setName(String name)
      Specifies schedule job name
    • getID

      public int getID()
      internal use only
    • setID

      public void setID(int id)
      internal use only
    • getPackageID

      public int getPackageID()
      internal use only
    • setPackageID

      public void setPackageID(int packageID)
      internal use only
    • getFullID

      public String getFullID()
      internal use only
    • getReportType

      public int getReportType()
      Returns exported report type: IExportConstants.PDF, IExportConstants.DHTML, IExportConstants.HTML...
      See Also:
    • setReportType

      public void setReportType(int type)
      Specifies exported report type: IExportConstants.PDF, IExportConstants.DHTML, IExportConstants.HTML...
      See Also:
    • getExportType

      public int getExportType()
      internal use only
    • getJPEGQuality

      public int getJPEGQuality()
      internal use only
    • setJPEGQuality

      public void setJPEGQuality(int qual)
      internal use only
    • isGIFTransparent

      public boolean isGIFTransparent()
      internal use only
    • setGIFTransparent

      public void setGIFTransparent(boolean b)
      internal use only
    • getPNGCompression

      public int getPNGCompression()
      internal use only
    • setPNGCompression

      public void setPNGCompression(int c)
      internal use only
    • getImageWidth

      public int getImageWidth()
      internal use only
    • setImageWidth

      public void setImageWidth(int w)
      internal use only
    • getImageHeight

      public int getImageHeight()
      internal use only
    • setImageHeight

      public void setImageHeight(int h)
      internal use only
    • getFileLocation

      public String getFileLocation()
      Returns report file location
    • setFileLocation

      public void setFileLocation(String loc)
      specifies report file location
    • getChartLocation

      public String getChartLocation()
      internal use only
    • setChartLocation

      public void setChartLocation(String loc)
      internal use only
    • getReportLocation

      public String getReportLocation()
      internal use only
    • setReportLocation

      public void setReportLocation(String loc)
      internal use only
    • getExportLocation

      public String getExportLocation()
      Returns export file location
    • setExportLocation

      public void setExportLocation(String loc)
      specifies export file location
    • getCommand

      public String getCommand()
      Returns schedule command
    • setCommand

      public void setCommand(String cmd)
      Specifies schedule command
    • getTaskOption

      public int getTaskOption()
      Returns task option:
      ONE_TIME - export once
      TIME_INTERVAL - export report after certain time interval
      FIXEDDAYS - only export report in certain fixed days/ dates
    • setTaskOption

      public void setTaskOption(int opt)
      specifies task option: ONE_TIME - export once TIME_INTERVAL - export report after certain time interval FIXEDDAYS - only export report in certain fixed days/ dates
    • getSpecifyDates

      public int[] getSpecifyDates()
      If task option is FIXEDDAYS: Returns export file dates. The dates are in the format of integers representing the dates of the month.
      For example, {1,10,20} would run on the 1st, 10th, and 20th of the month.
    • setSpecifyDates

      public void setSpecifyDates(int[] dates)
      if task option is FIXEDDAYS: Specifies export file dates. The dates are in the format of integers representing the dates of the month.
      For example, {1,10,20} would run on the 1st, 10th, and 20th of the month.
    • getSpecifyDays

      public int[] getSpecifyDays()
      If task option is FIXEDDAYS: Returns export file days
    • setSpecifyDays

      public void setSpecifyDays(int[] days)
      if task option is FIXEDDAYS: specifies export file days
    • getSpecifyTime

      public int[] getSpecifyTime()
      If task option is FIXEDDAYS: Returns export file time (in minutes)
    • setSpecifyTime

      public void setSpecifyTime(int[] time)
      if task option is FIXEDDAYS: specifies export file time
    • getStartDate

      public long getStartDate()
      Returns start date for scheduled event in POSIX time.
    • setStartDate

      public void setStartDate(long sDate)
      specifies start date for scheduled event
    • getEndDate

      public long getEndDate()
      If task option is TIME_INTERVAL / FIXEDDAYS: if endDate = -1, it runs indefinitely Returns end date for scheduled event
    • setEndDate

      public void setEndDate(long eDate)
      if task option is TIME_INTERVAL / FIXEDDAYS: if endDate = -1, it runs indefinitely specifies end date in millis second for scheduled event
    • getIntervalType

      public int getIntervalType()
      If task option is TIME_INTERVAL: Returns export time interval: TIME/ DAYS/ MONTHS
    • setIntervalType

      public void setIntervalType(int type)
      if task option is TIME_INTERVAL: specifies export time interval: TIME/ DAYS/ MONTHS
    • getStartTime

      public int getStartTime()
      If task option is FIXEDDAYS Returns start time (in minutes) for scheduled event.
    • setStartTime

      public void setStartTime(int stTime)
      if task option is FIXEDDAYS: specifies start time for daily frequency feature
    • getEndTime

      public int getEndTime()
      If task option is FIXEDDAYS Returns end time (in minutes) for scheduled event.
    • setEndTime

      public void setEndTime(int edTime)
      if task option is FIXEDDAYS: specifies end time for daily frequency feature
    • getTimeInterval

      public int getTimeInterval()
      If task option is TIME_INTERVAL: Returns time interval in mins
    • setTimeInterval

      public void setTimeInterval(int timeInt)
      if task option is TIME_INTERVAL: specifies time interval in mins
    • getMonthInterval

      public int getMonthInterval()
      If task option is TIME_INTERVAL: Returns month interval in months
    • setMonthInterval

      public void setMonthInterval(int monInt)
      if task option is TIME_INTERVAL: specifies month interval in mins
    • getDayInterval

      public int getDayInterval()
      If task option is TIME_INTERVAL: Returns day interval in days
    • setDayInterval

      public void setDayInterval(int dayInt)
      if task option is TIME_INTERVAL: specifies day interval in mins
    • getUserName

      public String getUserName()
      internal use only
    • setUserName

      public void setUserName(String name)
      internal use only
    • getBurstReport

      public int getBurstReport()
      returns what type of bursting has been applied (Burst All or Burst Group)
    • setBurstReport

      public void setBurstReport(int i)
      sets the type of bursting to be applied (QbScheduleObject.ALLBURSTING or QbScheduleObject.GROUPBURSTING)
    • isExportToMultiPages

      public boolean isExportToMultiPages()
      DHTML/ HTML option: Returns whether export report to multi-pages
    • setExportToMultiPages

      public void setExportToMultiPages(boolean b)
      DHTML/ HTML option: specifies whether export report to multi-pages
    • isMemoryOptimized

      public boolean isMemoryOptimized()
      PDF / DHTML / HTML / CSV / TXT option: Returns whether using optimize memory export
    • setMemoryOptimized

      public void setMemoryOptimized(boolean b)
      report export option: specifies whether using optimize memory export
    • getParamList

      public Vector<Object[]> getParamList()
      Returns all the parameter set that have been defined for a schedule job that using param report. Each element of Vector is an Object[] which contains the query/formula parameter value. For example,
      If report contains 3 parameters: STATE(String), DRINK(String - MULTI-PARAM), QUANTITY (Integer)
      And there's 2 parameter set:
      [CA], [Coffee, Water], 50
      [NY], [Juice, Soda, Tea], 100

      The param list should be:
      Vector set0_Param1 = new Vector();
      set0_Param1.addELement("Coffee");
      set0_Param1.addELement("Water");
      Object[] set0 = new Object[]{"CA", set0_Param1, Integer.valueOf(50)};
      Vector set1_Param1 = new Vector();
      set1_Param1.addELement("Juice");
      set1_Param1.addELement("Soda");
      set1_Param1.addELement("Tea");
      Object[] set1 = new Object[]{"NY", set1_Param1, Integer.valueOf(100)};
      Vector paramList = new Vector();
      paramList.addElement(set0);
      paramList.addElement(set1);

    • setParamList

      public void setParamList(Vector paramList)
      Specifies all the parameter set that have been defined for a schedule job that using param report. Each element of Vector is an Object[] which contains the query/formula parameter value.
       For example,
       if report contains 3 parameters: STATE(String), DRINK(String - MULTI-PARAM), QUANTITY (Integer)
      
        And there's 2 parameter set:
       [CA], [Coffee, Water], 50
        [NY], [Juice, Soda, Tea], 100
      
        The param list should be:
        Vector set0_Param1 = new Vector();
        set0_Param1.addELement("Coffee");
        set0_Param1.addELement("Water");
        Object[] set0 = new Object[]{"CA", set0_Param1, Integer.valueOf(50)};
        Vector set1_Param1 = new Vector();
        set1_Param1.addELement("Juice");
        set1_Param1.addELement("Soda");
        set1_Param1.addELement("Tea");
        Object[] set1 = new Object[]{"NY", set1_Param1, Integer.valueOf(100)};
        Vector paramList = new Vector();
        paramList.addElement(set0);
        paramList.addElement(set1);
       
      Parameters:
      paramList - a list of parameter values according to the above structure. Pass in null to "Select All" possible values if and only if the parameters have been set to map to a database column.
    • isSendEmail

      public boolean isSendEmail()
      For Email feature: Returns whether email notification/delivery is used for the exported report
    • setSendEmail

      public void setSendEmail(boolean state)
      For Email feature: specifies whether email notification/delivery is used for the exported report
    • getFromAddress

      public String getFromAddress()
      For Email feature: Returns sender email address
    • setFromAddress

      public void setFromAddress(String from)
      For Email feature: specifies sender email address
    • getToAddresses

      public String[] getToAddresses()
      For Email feature: Returns receivers' email addresses
    • setToAddresses

      public void setToAddresses(String[] to)
      For Email feature: specifies receivers' email addresses
    • getSubject

      public String getSubject()
      For Email feature: Returns the subject of the email
    • setSubject

      public void setSubject(String subject)
      For Email feature: specifies the subject of the email
    • getBodyText

      public String getBodyText()
      For Email feature: Returns the body text of the email
    • setBodyText

      public void setBodyText(String bodyText)
      For Email feature: specifies the body text of the email
    • getFailSubject

      public String getFailSubject()
      For Fail Job Email feature: returns the subject of the email
    • setFailSubject

      public void setFailSubject(String subjectFail)
      For Fail Job Email feature: returns the subject of the email
    • getFailBodyText

      public String getFailBodyText()
      For Fail Job Email feature: returns the body text of the email
    • setFailBodyText

      public void setFailBodyText(String bodyTextFail)
      For Fail Job Email feature: returns the body text of the email
    • getFailToAddress

      public String getFailToAddress()
      For Fail Job Email feature: returns recievers' email addresses
    • setFailToAddress

      public void setFailToAddress(String toAddressFail)
      For Fail Job Email feature: returns recievers' email addresses
    • getEmailType

      public int getEmailType()
      For Email feature: Returns email type: ASATTACHMENT/ ASLINK/ ASHTML
    • setEmailType

      public void setEmailType(int type)
      For Email feature: specifies email type: ASATTACHMENT/ ASLINK/ ASHTML
    • getURLMapping

      public String getURLMapping()
      For Email feature: If you elect to send a link to the generated report, you will need to specify an http path to the directory in which the report is generated. Otherwise, the link will not form correctly. Returns the url mapping
    • setURLMapping

      public void setURLMapping(String urlMapping)
      For Email feature: If you elect to send a link to the generated report, you will need to specify an http path to the directory in which the report is generated. Otherwise, the link will not form correctly. specifies the url mapping
    • getSecurityLevel

      public String getSecurityLevel()
      Returns the report security level. If no security level is going to apply to the report, it'll returns null
    • setSecurityLevel

      public void setSecurityLevel(String sl)
      specifies the report security level If no security level is going to apply to the report, use a null string
    • getServerName

      public String getServerName()
      If it's a drilldown report, user has to enter server name for viewing sub-level report. Returns server name
    • setServerName

      public void setServerName(String sn)
      If it's a drilldown report, user has to enter server name for viewing sub-level report specifies server name
    • getPortNumber

      public int getPortNumber()
      If it's a drilldown report, user has to enter port number for viewing sub-level report. Returns port number
    • setPortNumber

      public void setPortNumber(int pn)
      If it's a drilldown report, user has to enter port number for viewing sub-level report specifies port number
    • getServletDirectory

      public String getServletDirectory()
      If it's a drilldown report, user has to enter servlet directory for viewing sub-level report. Returns servlet directory
    • setServletDirectory

      public void setServletDirectory(String sd)
      If it's a drilldown report, user has to enter servlet directory for viewing sub-level report specifies servlet directory
    • isUseHTTPS

      public boolean isUseHTTPS()
      Should HTTPS protocol be used for drill-down links (in PDF or DHTML format)?
      Returns:
      True for HTTPS, false for HTTP
    • setUseHTTPS

      public void setUseHTTPS(boolean useHTTPS)
      Should HTTPS protocol be used for drill-down links (in PDF or DHTML format)? True for HTTPS, false for HTTP
    • isExportToSingleWPagination

      public boolean isExportToSingleWPagination()
      For DHTML/ HTML export: Exports return in one single page with pagination. Returns state of exporting report to single page with pagination.
    • setExportToSingleWPagination

      public void setExportToSingleWPagination(boolean b)
      For DHTML/ HTML export: export return in one single page with pagination specifies state of exporting report to single page with pagination
    • isUseInternalStyleSheet

      public boolean isUseInternalStyleSheet()
      For DHTML export: Returns whether use internal style sheet for DHTML export
    • setUseInternalStyleSheet

      public void setUseInternalStyleSheet(boolean b)
      For DHTML export: specifies whether use internal style sheet for DHTML export
    • isUseExternalStyleSheet

      public boolean isUseExternalStyleSheet()
      For DHTML export: Returns whether use external style sheet for DHTML export
    • setUseExternalStyleSheet

      public void setUseExternalStyleSheet(boolean b)
      For DHTML export: specifies whether use external style sheet for DHTML export
    • getExternalStyleSheetName

      public String getExternalStyleSheetName()
      For DHTML export: Returns the external style sheet file used for DHTML export. Returns the name of the external style sheet
    • setExternalStyleSheetName

      public void setExternalStyleSheetName(String s)
      For DHTML export: Specifies the external style sheet file used for DHTML export
      Parameters:
      s - the name of the external style sheet
    • isEncodePDF

      public boolean isEncodePDF()
      For PDF export: Returns whether use encoding for DFT export
    • setEncodePDF

      public void setEncodePDF(boolean b)
      For PDF export: specifies whether use encoding for DFT export
    • getPDFUserPassword

      public String getPDFUserPassword()
      For PDF export: Returns the PDF user password
    • setPDFUserPassword

      public void setPDFUserPassword(String s)
      For PDF export: specifies the PDF user password
    • getPDFOwnerPassword

      public String getPDFOwnerPassword()
      For PDF export: Returns the PDF owner password
    • setPDFOwnerPassword

      public void setPDFOwnerPassword(String s)
      For PDF export: specifies the PDF owner password
    • getTextDelimiter

      public int getTextDelimiter()
      For TXT and CSV export: Returns the text delimiter: IDelimiterConstants.TAB, IDelimiterConstants.SPACE, IDelimiterConstants.COMMA...
      See Also:
    • setTextDelimiter

      public void setTextDelimiter(int i)
      For TXT and CSV export: specifies the text delimiter: IDelimiterConstants.TAB, IDelimiterConstants.SPACE, IDelimiterConstants.COMMA...
      See Also:
    • getNewLineDelimiter

      public int getNewLineDelimiter()
      For TXT export: Returns the newline delimiter: IDelimiterConstants.WINDOWS_NEWLINE, IDelimiterConstants.MAC_NEWLINE, IDelimiterConstants.OTHERS_NEWLINE...
      See Also:
    • setNewLineDelimiter

      public void setNewLineDelimiter(int i)
      For TXT export: specifies the newline delimiter: IDelimiterConstants.WINDOWS_NEWLINE, IDelimiterConstants.MAC_NEWLINE, IDelimiterConstants.OTHERS_NEWLINE...
      See Also:
    • isTimestampAttached

      public boolean isTimestampAttached()
      This method will attach timestamp at the end of a file name in order to create new file everytime (instead of overwriting the file) It's useful feature for TIME_INTERVAL / FIXED_DAYS Returns whether attaching timestamp at the end of a file name
    • setTimestampAttached

      public void setTimestampAttached(boolean attach)
      This method will attach timestamp at the end of a file name in order to create new file everytime (instead of overwriting the file). It's useful feature for TIME_INTERVAL / FIXED_DAYS specifies attaching timestamp at the end of a file name
    • getParamAddresses

      public Hashtable getParamAddresses()
      For Param report/ chart Email feature: get hashtable for param set name (key), and email addresses (value) for example, "Param Set 1", new String[]{"peterL@quadbase.com", "HenryP@quadbase.com"}
    • setParamAddresses

      public void setParamAddresses(Hashtable table)
      For Param report/ chart Email feature: create hashtable for param set name (key), and email addresses (value) for example, "Param Set 1", new String[]{"peterL@quadbase.com", "HenryP@quadbase.com"}
    • getBurstEmail

      public Hashtable getBurstEmail()
      internal use only
    • setBurstEmail

      public void setBurstEmail(Hashtable table)
      internal use only
    • getEmailColumnIndex

      public int getEmailColumnIndex()
      returns the column index whose data provides the email addresses to send the exported reports to
    • setEmailColumnIndex

      public void setEmailColumnIndex(int i)
      sets the column index whose data provides the email addresses to send the exported reports to
    • pickDefaultExportLocation

      public String pickDefaultExportLocation() throws Exception
      scheduler will pick default export file location Returns chosen file location
      Throws:
      Exception
    • setParamList

      public void setParamList(Vector paramListName, Vector paramList)
       specifies all the parameter set that have been defined for a schedule job
       that using param report.  Each element of Vector is an Object[] which
       contains the query/formula parameter value.
       For example,
       if report contains 3 parameters: STATE(String), DRINK(String - MULTI-PARAM),
       QUANTITY (Integer)
       And there's 2 parameter set:
       [CA], [Coffee, Water], 50
       [NY], [Juice, Soda, Tea], 100
       

      The param list should be: Vector set0_Param1 = new Vector(); set0_Param1.addELement("Coffee"); set0_Param1.addELement("Water"); Object[] set0 = new Object[]{"CA", set0_Param1, Integer.valueOf(50)}; Vector set1_Param1 = new Vector(); set1_Param1.addELement("Juice"); set1_Param1.addELement("Soda"); set1_Param1.addELement("Tea"); Object[] set1 = new Object[]{"NY", set1_Param1, Integer.valueOf(100)}; Vector paramList = new Vector(); paramList.addElement(set0); paramList.addElement(set1);

      Parameters:
      paramList - a list of parameter values according to the above structure. Pass in null to "Select All" possible values if and only if the parameters have been set to map to a database column.
    • setLastExportFile

      public void setLastExportFile(String str)
      internal use only
    • setDeleted

      public void setDeleted()
      internal use only
    • getExportTime

      public long getExportTime()
      internal use only
    • setExportTime

      public void setExportTime(long time)
      internal use only
    • resetExportTime

      public void resetExportTime()
      internal use only
    • getNextExportTime

      public long getNextExportTime()
      Returns next export time in milliseconds
    • exportNow

      public boolean exportNow(long curTime)
      internal use only
    • deleteJob

      public boolean deleteJob()
      remove schedule job from the queue
    • deleteJobPermanently

      public boolean deleteJobPermanently(long curTime)
    • updateTime

      public boolean updateTime()
    • isExportDay

      public boolean isExportDay(int curDay, int[] specifyDays)
      internal use only
    • getNextExportDay

      public int getNextExportDay(int curDay, int[] specifyDays)
      internal use only
    • equals

      public boolean equals(ScheduleObject obj)
      internal use only
    • write

      public void write(DataOutput orgOut) throws Exception
      internal use only
      Throws:
      Exception
    • writeComplete

      public void writeComplete(DataOutput orgOut) throws Exception
      internal use only
      Throws:
      Exception
    • isLimitExcelCellSplit

      public boolean isLimitExcelCellSplit()
    • setLimitExcelCellSplit

      public void setLimitExcelCellSplit(boolean limitExcelCellSplit)