urbanairship-core/src/main/java/com/urbanairship/automation/AutomationDataManager.java
void saveSchedules(@NonNull Collection<ScheduleEntry> scheduleEntries) {
        if (scheduleEntries.isEmpty()) {
            return;
        }

        final SQLiteDatabase db = getWritableDatabase();
        if (db == null) {
            Logger.error("AutomationDataManager - Unable to update automation rules.");
            return;
        }

        db.beginTransaction();

        for (ScheduleEntry scheduleEntry : scheduleEntries) {
            if (!scheduleEntry.save(db)) {
                db.endTransaction();
                return;
            }
        }

        db.setTransactionSuccessful();
        db.endTransaction();
    }
/**
     * Saves schedules.
     *
     * @param scheduleEntries Collection of schedule entries.
     */
Saves schedules.
@param scheduleEntries Collection of schedule entries.
Saves schedules . @param scheduleEntries Collection of schedule entries .
void saveSchedules(@NonNull Collection<ScheduleEntry> scheduleEntries) {
        if (scheduleEntries.isEmpty()) {
            return;
        }
        final SQLiteDatabase db = getWritableDatabase();
        if (db == null) {
            Logger.error("AutomationDataManager - Unable to update automation rules.");
            return;
        }
        db.beginTransaction();
        for (ScheduleEntry scheduleEntry : scheduleEntries) {
            if (!scheduleEntry.save(db)) {
                db.endTransaction();
                return;
            }
        }
        db.setTransactionSuccessful();
        db.endTransaction();
    }
void saveSchedules ( @ NonNull Collection < ScheduleEntry > scheduleEntries ) { if ( scheduleEntries . isEmpty ( ) ) { return ; } final SQLiteDatabase db = getWritableDatabase ( ) ; if ( db == null ) { Logger . error ( "AutomationDataManager - Unable to update automation rules." ) ; return ; } db . beginTransaction ( ) ; for ( ScheduleEntry scheduleEntry : scheduleEntries ) { if ( ! scheduleEntry . save ( db ) ) { db . endTransaction ( ) ; return ; } } db . setTransactionSuccessful ( ) ; db . endTransaction ( ) ; }
Saves schedules.
Saves schedules .