urbanairship-core/src/main/java/com/urbanairship/automation/AutomationDataManager.java
void saveTriggers(Collection<TriggerEntry> triggerEntries) {
        if (triggerEntries.isEmpty()) {
            return;
        }

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

        db.beginTransactionNonExclusive();

        for (TriggerEntry triggerEntry : triggerEntries) {
            if (!triggerEntry.save(db)) {
                db.endTransaction();
                return;
            }
        }

        db.setTransactionSuccessful();
        db.endTransaction();
    }
/**
     * Saves triggers.
     *
     * @param triggerEntries Collection of trigger entries.
     */
Saves triggers.
@param triggerEntries Collection of trigger entries.
Saves triggers . @param triggerEntries Collection of trigger entries .
void saveTriggers(Collection<TriggerEntry> triggerEntries) {
        if (triggerEntries.isEmpty()) {
            return;
        }
        final SQLiteDatabase db = getWritableDatabase();
        if (db == null) {
            Logger.error("AutomationDataManager - Unable to update automation rules.");
            return;
        }
        db.beginTransactionNonExclusive();
        for (TriggerEntry triggerEntry : triggerEntries) {
            if (!triggerEntry.save(db)) {
                db.endTransaction();
                return;
            }
        }
        db.setTransactionSuccessful();
        db.endTransaction();
    }
void saveTriggers ( Collection < TriggerEntry > triggerEntries ) { if ( triggerEntries . isEmpty ( ) ) { return ; } final SQLiteDatabase db = getWritableDatabase ( ) ; if ( db == null ) { Logger . error ( "AutomationDataManager - Unable to update automation rules." ) ; return ; } db . beginTransactionNonExclusive ( ) ; for ( TriggerEntry triggerEntry : triggerEntries ) { if ( ! triggerEntry . save ( db ) ) { db . endTransaction ( ) ; return ; } } db . setTransactionSuccessful ( ) ; db . endTransaction ( ) ; }
Saves triggers.
Saves triggers .