CursorMapper


abstract class CursorMapper


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

Summary

Public constructors

Public functions

Any!
convert(cursor: Cursor!)

Convert a Cursor at its current position to an Object.

Protected functions

abstract Any!
bind(cursor: Cursor!)

A subclass should implement this method to create a single object using binding information.

abstract Unit
bindColumns(cursor: Cursor!)

Called once when the associated Cursor is changed.

Public constructors

CursorMapper

Added in 1.1.0
CursorMapper()

Public functions

convert

Added in 1.1.0
fun convert(cursor: Cursor!): Any!

Convert a Cursor at its current position to an Object.

Protected functions

bind

Added in 1.1.0
protected abstract fun bind(cursor: Cursor!): Any!

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.

bindColumns

Added in 1.1.0
protected abstract fun bindColumns(cursor: Cursor!): Unit

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.