FileDocCategorySizeDatePackage
CursorWrapper.javaAPI DocAndroid 5.1 API5230Thu Mar 12 22:22:10 GMT 2015android.database

CursorWrapper

public class CursorWrapper extends Object implements Cursor
Wrapper class for Cursor that delegates all calls to the actual cursor object. The primary use for this class is to extend a cursor while overriding only a subset of its methods.

Fields Summary
protected final Cursor
mCursor
Constructors Summary
public CursorWrapper(Cursor cursor)
Creates a cursor wrapper.

param
cursor The underlying cursor to wrap.

        mCursor = cursor;
    
Methods Summary
public voidclose()

        mCursor.close(); 
    
public voidcopyStringToBuffer(int columnIndex, CharArrayBuffer buffer)

        mCursor.copyStringToBuffer(columnIndex, buffer);
    
public voiddeactivate()

        mCursor.deactivate();
    
public byte[]getBlob(int columnIndex)

        return mCursor.getBlob(columnIndex);
    
public intgetColumnCount()

        return mCursor.getColumnCount();
    
public intgetColumnIndex(java.lang.String columnName)

        return mCursor.getColumnIndex(columnName);
    
public intgetColumnIndexOrThrow(java.lang.String columnName)

        return mCursor.getColumnIndexOrThrow(columnName);
    
public java.lang.StringgetColumnName(int columnIndex)

         return mCursor.getColumnName(columnIndex);
    
public java.lang.String[]getColumnNames()

        return mCursor.getColumnNames();
    
public intgetCount()

        return mCursor.getCount();
    
public doublegetDouble(int columnIndex)

        return mCursor.getDouble(columnIndex);
    
public android.os.BundlegetExtras()

        return mCursor.getExtras();
    
public floatgetFloat(int columnIndex)

        return mCursor.getFloat(columnIndex);
    
public intgetInt(int columnIndex)

        return mCursor.getInt(columnIndex);
    
public longgetLong(int columnIndex)

        return mCursor.getLong(columnIndex);
    
public android.net.UrigetNotificationUri()

        return mCursor.getNotificationUri();
    
public intgetPosition()

        return mCursor.getPosition();
    
public shortgetShort(int columnIndex)

        return mCursor.getShort(columnIndex);
    
public java.lang.StringgetString(int columnIndex)

        return mCursor.getString(columnIndex);
    
public intgetType(int columnIndex)

        return mCursor.getType(columnIndex);
    
public booleangetWantsAllOnMoveCalls()

        return mCursor.getWantsAllOnMoveCalls();
    
public CursorgetWrappedCursor()
Gets the underlying cursor that is wrapped by this instance.

return
The wrapped cursor.

        return mCursor;
    
public booleanisAfterLast()

        return mCursor.isAfterLast();
    
public booleanisBeforeFirst()

        return mCursor.isBeforeFirst();
    
public booleanisClosed()

        return mCursor.isClosed();
    
public booleanisFirst()

        return mCursor.isFirst();
    
public booleanisLast()

        return mCursor.isLast();
    
public booleanisNull(int columnIndex)

        return mCursor.isNull(columnIndex);
    
public booleanmove(int offset)

        return mCursor.move(offset);
    
public booleanmoveToFirst()

        return mCursor.moveToFirst();
    
public booleanmoveToLast()

        return mCursor.moveToLast();
    
public booleanmoveToNext()

        return mCursor.moveToNext();
    
public booleanmoveToPosition(int position)

        return mCursor.moveToPosition(position);
    
public booleanmoveToPrevious()

        return mCursor.moveToPrevious();
    
public voidregisterContentObserver(ContentObserver observer)

        mCursor.registerContentObserver(observer);   
    
public voidregisterDataSetObserver(DataSetObserver observer)

        mCursor.registerDataSetObserver(observer);   
    
public booleanrequery()

        return mCursor.requery();
    
public android.os.Bundlerespond(android.os.Bundle extras)

        return mCursor.respond(extras);
    
public voidsetNotificationUri(android.content.ContentResolver cr, android.net.Uri uri)

        mCursor.setNotificationUri(cr, uri);        
    
public voidunregisterContentObserver(ContentObserver observer)

        mCursor.unregisterContentObserver(observer);        
    
public voidunregisterDataSetObserver(DataSetObserver observer)

        mCursor.unregisterDataSetObserver(observer);