Package org.jitterbit.integration.data.entity.schedule

Examples of org.jitterbit.integration.data.entity.schedule.ScheduleOccurrence


     * Gets the <tt>ScheduleOccurrence</tt> object associated with this schedule.
     *
     * @return a <tt>ScheduleOccurrence</tt> object.
     */
    public ScheduleOccurrence getOccurrence() {
        return new ScheduleOccurrence(getData());
    }
View Full Code Here


     *            a <tt>ScheduleOccurrence</tt> object; cannot be null.
     * @throws NullPointerException
     *             if <tt>occ</tt> is null.
     */
    public void setOccurrence(ScheduleOccurrence occurrance) {
        ScheduleOccurrence old = getOccurrence();
        // Always append the data, even if the new occurrance is identical
        // to the old one. This is to make sure that the key-value pairs
        // get created in the case where this is the first time this method
        // is called and occurrance is the default occurrance.
        occurrance.appendToData(getData());
        if (!old.equals(occurrance)) {
            firePropertyChange(OCCURRENCE_PROPERTY, old, occurrance);
        }
    }
View Full Code Here

     * @return a <code>ScheduleOccurrence</code> object, the properties of which are determined by
     *         the current values of this panel's input fields; or <code>null</code> if the
     *         current input fields has invalid values.
     */
    public ScheduleOccurrence getOccurrence() {
        ScheduleOccurrence occ = new ScheduleOccurrence();
        int type = typeSelectionPanel.getSelectedType();
        if (type == ScheduleOccurrence.DAILY) {
            occ.setDailyOccurrence(every_X_days_panel.getValue());
        } else if (type == ScheduleOccurrence.WEEKLY) {
            occ.setWeeklyOccurrence(every_X_weeks_panel.getValue(), dayOfTheWeekCheckBoxPanel.getSelectedDays());
        } else if (type == ScheduleOccurrence.MONTHLY) {
            if (monthlyPanel.getMonthlyType() == 0) {
                occ.setMonthlyOccurrence(monthly_A_panel.getDay(), monthly_A_panel.getMonth());
            } else {
                occ.setMonthlyOccurence(monthly_B_panel.getDayNum(), monthly_B_panel.getDay(), monthly_B_panel
                        .get_Every_X_Month());
            }
        }
        return occ;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.schedule.ScheduleOccurrence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.