This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringArrayFieldConverter implements FieldConverter<String[]> { | |
@Override | |
public String[] fromCursorValue(Cursor cursor, int columnIndex) { | |
return cursor.getString(columnIndex).split(","); | |
} | |
@Override | |
public void toContentValue(String[] value, String key, ContentValues values) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.qbusict.cupboard; | |
import android.content.ContentValues; | |
import android.database.Cursor; | |
import android.database.MatrixCursor; | |
import android.test.AndroidTestCase; | |
import nl.qbusict.cupboard.convert.EntityConverter.ColumnType; | |
import nl.qbusict.cupboard.convert.FieldConverter; |
NewerOlder