urbanairship-core/src/main/java/com/urbanairship/remotedata/RemoteDataStore.java
public boolean savePayloads(@NonNull Set<RemoteDataPayload> payloads) {
        if (payloads.isEmpty()) {
            return true;
        }

        final SQLiteDatabase db = getWritableDatabase();
        if (db == null) {
            Logger.error("RemoteDataStore - Unable to save remote data payloads.");
            return false;
        }

        db.beginTransaction();

        for (RemoteDataPayload payload : payloads) {
            RemoteDataPayloadEntry entry = new RemoteDataPayloadEntry(payload);
            if (!entry.save(db)) {
                db.endTransaction();
                return false;
            }
        }

        db.setTransactionSuccessful();
        db.endTransaction();

        return true;
    }
/**
     * Saves a list of RemoteDataPayloads.
     *
     * @param payloads The payloads.
     * @return A boolean indicating success.
     */
Saves a list of RemoteDataPayloads.
@param payloads The payloads.
@return A boolean indicating success.
Saves a list of RemoteDataPayloads . @param payloads The payloads . @return A boolean indicating success .
public boolean savePayloads(@NonNull Set<RemoteDataPayload> payloads) {
        if (payloads.isEmpty()) {
            return true;
        }
        final SQLiteDatabase db = getWritableDatabase();
        if (db == null) {
            Logger.error("RemoteDataStore - Unable to save remote data payloads.");
            return false;
        }
        db.beginTransaction();
        for (RemoteDataPayload payload : payloads) {
            RemoteDataPayloadEntry entry = new RemoteDataPayloadEntry(payload);
            if (!entry.save(db)) {
                db.endTransaction();
                return false;
            }
        }
        db.setTransactionSuccessful();
        db.endTransaction();
        return true;
    }
public boolean savePayloads ( @ NonNull Set < RemoteDataPayload > payloads ) { if ( payloads . isEmpty ( ) ) { return true ; } final SQLiteDatabase db = getWritableDatabase ( ) ; if ( db == null ) { Logger . error ( "RemoteDataStore - Unable to save remote data payloads." ) ; return false ; } db . beginTransaction ( ) ; for ( RemoteDataPayload payload : payloads ) { RemoteDataPayloadEntry entry = new RemoteDataPayloadEntry ( payload ) ; if ( ! entry . save ( db ) ) { db . endTransaction ( ) ; return false ; } } db . setTransactionSuccessful ( ) ; db . endTransaction ( ) ; return true ; }
Saves a list of RemoteDataPayloads.
Saves a list of RemoteDataPayloads .