All Downloads are FREE. Search and download functionalities are using the official Maven repository.

storm.parser.converter.StormConverter Maven / Gradle / Ivy

package storm.parser.converter;

import android.content.ContentValues;
import android.database.Cursor;

import java.util.Collection;
import java.util.List;

import storm.parser.StormParserItem;

/**
 * Created by Dimitry Ivanov on 02.01.2016.
 */
public interface StormConverter extends StormParserItem {

    T fromCursor(Cursor cursor);
    List fromCursorList(Cursor cursor);

    // if this ContentValues would be used to update existing row
    // and if primary key would be included in this ContentValues
    // there will be an exception
    ContentValues toContentValues(T value, boolean putPrimaryKey);
    List toContentValuesList(Collection values, boolean putPrimaryKey);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy