T - the type of instance to map.public class JSONRowMapper<T> extends RowMapper<T>
Cursor or a JSONObject object to an instance of T.| Constructor and Description |
|---|
JSONRowMapper(java.lang.Class<T> clazz)
Creates a new instance of
RowMapper with the given class type. |
public final T mapRow(org.json.JSONObject json) throws java.lang.IllegalAccessException, java.lang.InstantiationException, org.json.JSONException
JSONObject object to an instance of T.json - the JSONObject object to map.T.org.json.JSONException - if no such mapping exists.java.lang.IllegalAccessException - if the if the default constructor of T is not visible,
or the default constructor of the TypeConverter associated with any field of T is not visible.java.lang.InstantiationException - if the instance of T can not be created,
or the instance of the TypeConverter associated with any field of T can not be created.java.lang.IllegalArgumentException - if the column name is not found from the given cursor.