Interface SQLiteCursorDriver

  • All Implemented Interfaces:

    
    public interface SQLiteCursorDriver
    
                        

    A driver for SQLiteCursors that is used to create them and gets notified by the cursors it creates on significant events in their lifetimes.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Cursor query(SQLiteDatabase.CursorFactory factory, Array<String> bindArgs) Executes the query returning a Cursor over the result set.
      abstract void cursorDeactivated() Called by a SQLiteCursor when it is released.
      abstract void cursorRequeried(Cursor cursor) Called by a SQLiteCursor when it is requeried.
      abstract void cursorClosed() Called by a SQLiteCursor when it it closed to destroy this object as well.
      abstract void setBindArguments(Array<String> bindArgs) Set new bind arguments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • query

         abstract Cursor query(SQLiteDatabase.CursorFactory factory, Array<String> bindArgs)

        Executes the query returning a Cursor over the result set.

        Parameters:
        factory - The CursorFactory to use when creating the Cursors, or null if standard SQLiteCursors should be returned.
        Returns:

        a Cursor over the result set

      • cursorDeactivated

         abstract void cursorDeactivated()

        Called by a SQLiteCursor when it is released.

      • cursorRequeried

         abstract void cursorRequeried(Cursor cursor)

        Called by a SQLiteCursor when it is requeried.

      • cursorClosed

         abstract void cursorClosed()

        Called by a SQLiteCursor when it it closed to destroy this object as well.

      • setBindArguments

         abstract void setBindArguments(Array<String> bindArgs)

        Set new bind arguments. These will take effect in cursorRequeried().

        Parameters:
        bindArgs - the new arguments