IT. Expert System.

Android Reference

BulkCursorToCursorAdaptor


android.database

Class BulkCursorToCursorAdaptor

    • Constructor Detail

      • BulkCursorToCursorAdaptor

        public BulkCursorToCursorAdaptor()
    • Method Detail

      • initialize

        public void initialize(BulkCursorDescriptor d)
        Initializes the adaptor. Must be called before first use.
      • getObserver

        public IContentObserver getObserver()
        Gets a SelfDataChangeOberserver that can be sent to a remote process to receive change notifications over IPC.
        Returns:
        A SelfContentObserver hooked up to this Cursor
      • getCount

        public int getCount()
        Description copied from interface: Cursor
        Returns the numbers of rows in the cursor.
        Specified by:
        getCount in interface Cursor
        Specified by:
        getCount in class AbstractCursor
        Returns:
        the number of rows in the cursor.
      • onMove

        public boolean onMove(int oldPosition,
                     int newPosition)
        Description copied from class: AbstractCursor
        This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have. If it returns false the move function will also do so and the cursor will scroll to the beforeFirst position.
        Specified by:
        onMove in interface CrossProcessCursor
        Overrides:
        onMove in class AbstractCursor
        Parameters:
        oldPosition - the position that we're moving from
        newPosition - the position that we're moving to
        Returns:
        true if the move is successful, false otherwise
      • requery

        public boolean requery()
        Description copied from interface: Cursor
        Performs the query that created the cursor again, refreshing its contents. This may be done at any time, including after a call to Cursor.deactivate(). Since this method could execute a query on the database and potentially take a while, it could cause ANR if it is called on Main (UI) thread. A warning is printed if this method is being executed on Main thread.
        Specified by:
        requery in interface Cursor
        Overrides:
        requery in class AbstractCursor
        Returns:
        true if the requery succeeded, false if not, in which case the cursor becomes invalid.
      • getColumnNames

        public String[] getColumnNames()
        Description copied from interface: Cursor
        Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.
        Specified by:
        getColumnNames in interface Cursor
        Specified by:
        getColumnNames in class AbstractCursor
        Returns:
        the names of the columns returned in this query.
      • getExtras

        public Bundle getExtras()
        Description copied from interface: Cursor
        Returns a bundle of extra values. This is an optional way for cursors to provide out-of-band metadata to their users. One use of this is for reporting on the progress of network requests that are required to fetch data for the cursor.

        These values may only change when requery is called.

        Specified by:
        getExtras in interface Cursor
        Overrides:
        getExtras in class AbstractCursor
        Returns:
        cursor-defined values, or Bundle.EMPTY if there are no values. Never null.
      • respond

        public Bundle respond(Bundle extras)
        Description copied from interface: Cursor
        This is an out-of-band way for the the user of a cursor to communicate with the cursor. The structure of each bundle is entirely defined by the cursor.

        One use of this is to tell a cursor that it should retry its network request after it reported an error.

        Specified by:
        respond in interface Cursor
        Overrides:
        respond in class AbstractCursor
        Parameters:
        extras - extra values, or Bundle.EMPTY. Never null.
        Returns:
        extra values, or Bundle.EMPTY. Never null.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 572 / 158676820. Delta: 0.04826 с