Android APIs
public abstract class

CursorMapper

extends Object
java.lang.Object
   ↳ android.support.v17.leanback.database.CursorMapper

Class Overview

Abstract class used to convert the current Cursor row to a single object.

Summary

Public Constructors
CursorMapper()
Public Methods
Object convert(Cursor cursor)
Convert a Cursor at its current position to an Object.
Protected Methods
abstract Object bind(Cursor cursor)
A subclass should implement this method to create a single object using binding information.
abstract void bindColumns(Cursor cursor)
Called once when the associated Cursor is changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CursorMapper ()

Public Methods

public Object convert (Cursor cursor)

Convert a Cursor at its current position to an Object.

Protected Methods

protected abstract Object bind (Cursor cursor)

A subclass should implement this method to create a single object using binding information. This method is not intended to be called outside of CursorMapper.

protected abstract void bindColumns (Cursor cursor)

Called once when the associated Cursor is changed. A subclass should bind column indexes to column names in this method. This method is not intended to be called outside of CursorMapper.