Back to project page RoboBinding-gallery.
The source code is released under:
Apache License
If you think the Android project RoboBinding-gallery 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.robobinding.gallery.model.typedcursor; // w w w . j a va 2 s . c om import org.robobinding.gallery.model.Product; import org.robobinding.itempresentationmodel.RowMapper; import android.database.Cursor; /** * * @since 1.0 * @version $Revision: 1.0 $ * @author Cheng Wei */ public class ProductRowMapper implements RowMapper<Product> { @Override public Product mapRow(Cursor cursor) { String name = cursor.getString(cursor.getColumnIndex(ProductTable.NAME)); String description = cursor.getString(cursor.getColumnIndex(ProductTable.DESCRIPTION)); return new Product(name, description); } }