Back to project page ormada.
The source code is released under:
Copyright (c) 2012 Jesse Rosalia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...
If you think the Android project ormada listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.andrormeda.dialect; //w w w. j av a2s . c o m import org.ormada.dialect.ValueSet; import android.content.ContentValues; /** * An implementation of ValueSet that wraps a ContentValues object, * for storing values to be saved to the DB. * * @author Jesse Rosalia * */ public class SQLiteValueSet implements ValueSet { private ContentValues contentValues; public SQLiteValueSet() { this.contentValues = new ContentValues(); } public ContentValues getContentValues() { return contentValues; } @Override public void put(String key, byte[] value) { this.contentValues.put(key, value); } @Override public void put(String key, Integer value) { this.contentValues.put(key, value); } @Override public void put(String key, Short value) { this.contentValues.put(key, value); } @Override public void put(String key, Long value) { this.contentValues.put(key, value); } @Override public void put(String key, Float value) { this.contentValues.put(key, value); } @Override public void put(String key, Double value) { this.contentValues.put(key, value); } @Override public void put(String key, Boolean value) { this.contentValues.put(key, value); } @Override public void put(String key, Byte value) { this.contentValues.put(key, value); } @Override public void put(String key, String value) { this.contentValues.put(key, value); } }