org.positronicnet.content

PositronicCursor

class PositronicCursor extends CursorWrapper

Wrapper around cursors to support foreach and map, so you can do, e.g.

    for ( c <- myQuery.select(...))
    yield new Frob( c.getString(0), c.getLong(1) )

These also implement the read-side of our Boolean conversions.

Linear Supertypes
CursorWrapper, Cursor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PositronicCursor
  2. CursorWrapper
  3. Cursor
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PositronicCursor (wrappedCursor: Cursor)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def close (): Unit

    Definition Classes
    CursorWrapper → Cursor
  9. def copyStringToBuffer (idx: Int, buf: CharArrayBuffer): Unit

    Definition Classes
    CursorWrapper → Cursor
  10. def deactivate (): Unit

    Definition Classes
    CursorWrapper → Cursor
  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def foreach (func: (PositronicCursor) ⇒ Unit): Unit

    Starting at the first row covered by the cursor, proceeding to the last, call func at each, supplying the cursor as an argument so that the values of the columns are available.

  15. def getBlob (idx: Int): Array[Byte]

    Definition Classes
    CursorWrapper → Cursor
  16. def getBoolean (colIdx: Int): Boolean

    Get the value of the colIdx'th column, as a Boolean

  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  18. def getColumnCount (): Int

    Definition Classes
    CursorWrapper → Cursor
  19. def getColumnIndex (colName: String): Int

    Definition Classes
    CursorWrapper → Cursor
  20. def getColumnIndexOrThrow (colName: String): Int

    Definition Classes
    CursorWrapper → Cursor
  21. def getColumnName (idx: Int): String

    Definition Classes
    CursorWrapper → Cursor
  22. def getColumnNames (): Array[String]

    Definition Classes
    CursorWrapper → Cursor
  23. def getCount (): Int

    Definition Classes
    CursorWrapper → Cursor
  24. def getDouble (idx: Int): Double

    Definition Classes
    CursorWrapper → Cursor
  25. def getExtras (): Bundle

    Definition Classes
    CursorWrapper → Cursor
  26. def getFloat (idx: Int): Float

    Definition Classes
    CursorWrapper → Cursor
  27. def getInt (idx: Int): Int

    Definition Classes
    CursorWrapper → Cursor
  28. def getLong (idx: Int): Long

    Definition Classes
    CursorWrapper → Cursor
  29. def getPosition (): Int

    Definition Classes
    CursorWrapper → Cursor
  30. def getShort (idx: Int): Short

    Definition Classes
    CursorWrapper → Cursor
  31. def getString (idx: Int): String

    Definition Classes
    CursorWrapper → Cursor
  32. def getWantsAllOnMoveCalls (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  33. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  34. def isAfterLast (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  35. def isBeforeFirst (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  36. def isClosed (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  37. def isFirst (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  38. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  39. def isLast (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  40. def isNull (idx: Int): Boolean

    Definition Classes
    CursorWrapper → Cursor
  41. def map [T] (func: (PositronicCursor) ⇒ T): IndexedSeq[T]

    As forEach, but returns an IndexedSeq of the results.

  42. def move (offset: Int): Boolean

    Definition Classes
    CursorWrapper → Cursor
  43. def moveToFirst (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  44. def moveToLast (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  45. def moveToNext (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  46. def moveToPosition (offset: Int): Boolean

    Definition Classes
    CursorWrapper → Cursor
  47. def moveToPrevious (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  48. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  49. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  50. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  51. def registerContentObserver (observer: ContentObserver): Unit

    Definition Classes
    CursorWrapper → Cursor
  52. def registerDataSetObserver (observer: DataSetObserver): Unit

    Definition Classes
    CursorWrapper → Cursor
  53. def requery (): Boolean

    Definition Classes
    CursorWrapper → Cursor
  54. def respond (extras: Bundle): Bundle

    Definition Classes
    CursorWrapper → Cursor
  55. def setNotificationUri (cr: ContentResolver, uri: Uri): Unit

    Definition Classes
    CursorWrapper → Cursor
  56. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  57. def toString (): String

    Definition Classes
    AnyRef → Any
  58. def unregisterContentObserver (observer: ContentObserver): Unit

    Definition Classes
    CursorWrapper → Cursor
  59. def unregisterDataSetObserver (observer: DataSetObserver): Unit

    Definition Classes
    CursorWrapper → Cursor
  60. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  61. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  62. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  63. def wrappedCursorAs [T] : T

    Provide a way to get the underlying object back, if somebody needs it .

    Provide a way to get the underlying object back, if somebody needs it ...

    Definition Classes
    CursorWrapper

Inherited from CursorWrapper

Inherited from Cursor

Inherited from AnyRef

Inherited from Any