Back to project page androidata.
The source code is released under:
Apache License
If you think the Android project androidata 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 com.stanidesis.androidata.model; //w ww . j a va 2s . c om import android.content.ContentValues; import com.stanidesis.androidata.column.RowIDColumn; /** * Created by Stanley Idesis on 11/2/14. * @since v1.0.5 */ public class BaseModelUpdateBuilder implements IModelUpdateBuilder { ContentValues contentValues; long rowId; public BaseModelUpdateBuilder(ReadOnlyModel readOnlyModel) { contentValues = new ContentValues(); setRowId(readOnlyModel.getTable().getRowIDColumn(), readOnlyModel.getRowId()); } @Override public IModelUpdateBuilder setRowId(RowIDColumn rowIDColumn, long rowId) { this.rowId = rowId; contentValues.put(rowIDColumn.getName(), rowId); return this; } @Override public long getRowId() { return rowId; } @Override public ContentValues getValues() { return contentValues; } }