android.database
Class CursorWrapper

java.lang.Object
  extended by android.database.CursorWrapper
All Implemented Interfaces:
Cursor

public class CursorWrapper
extends Object
implements Cursor


Field Summary
 
Fields inherited from interface android.database.Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING
 
Constructor Summary
CursorWrapper(Cursor cursor)
           
 
Method Summary
 void close()
           
 void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
           
 void deactivate()
           
 byte[] getBlob(int columnIndex)
           
 int getColumnCount()
           
 int getColumnIndex(String columnName)
           
 int getColumnIndexOrThrow(String columnName)
           
 String getColumnName(int columnIndex)
           
 String[] getColumnNames()
           
 int getCount()
           
 double getDouble(int columnIndex)
           
 Bundle getExtras()
           
 float getFloat(int columnIndex)
           
 int getInt(int columnIndex)
           
 long getLong(int columnIndex)
           
 int getPosition()
           
 short getShort(int columnIndex)
           
 String getString(int columnIndex)
           
 int getType(int columnIndex)
           
 boolean getWantsAllOnMoveCalls()
           
 Cursor getWrappedCursor()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isClosed()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean isNull(int columnIndex)
           
 boolean move(int offset)
           
 boolean moveToFirst()
           
 boolean moveToLast()
           
 boolean moveToNext()
           
 boolean moveToPosition(int position)
           
 boolean moveToPrevious()
           
 void registerContentObserver(ContentObserver observer)
           
 void registerDataSetObserver(DataSetObserver observer)
           
 boolean requery()
           
 Bundle respond(Bundle extras)
           
 void setNotificationUri(ContentResolver cr, Uri uri)
           
 void unregisterContentObserver(ContentObserver observer)
           
 void unregisterDataSetObserver(DataSetObserver observer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursorWrapper

public CursorWrapper(Cursor cursor)
Method Detail

getWrappedCursor

public Cursor getWrappedCursor()

close

public void close()
Specified by:
close in interface Cursor

isClosed

public boolean isClosed()
Specified by:
isClosed in interface Cursor

getCount

public int getCount()
Specified by:
getCount in interface Cursor

deactivate

public void deactivate()
Specified by:
deactivate in interface Cursor

moveToFirst

public boolean moveToFirst()
Specified by:
moveToFirst in interface Cursor

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface Cursor

getColumnIndex

public int getColumnIndex(String columnName)
Specified by:
getColumnIndex in interface Cursor

getColumnIndexOrThrow

public int getColumnIndexOrThrow(String columnName)
                          throws IllegalArgumentException
Specified by:
getColumnIndexOrThrow in interface Cursor
Throws:
IllegalArgumentException

getColumnName

public String getColumnName(int columnIndex)
Specified by:
getColumnName in interface Cursor

getColumnNames

public String[] getColumnNames()
Specified by:
getColumnNames in interface Cursor

getDouble

public double getDouble(int columnIndex)
Specified by:
getDouble in interface Cursor

getExtras

public Bundle getExtras()
Specified by:
getExtras in interface Cursor

getFloat

public float getFloat(int columnIndex)
Specified by:
getFloat in interface Cursor

getInt

public int getInt(int columnIndex)
Specified by:
getInt in interface Cursor

getLong

public long getLong(int columnIndex)
Specified by:
getLong in interface Cursor

getShort

public short getShort(int columnIndex)
Specified by:
getShort in interface Cursor

getString

public String getString(int columnIndex)
Specified by:
getString in interface Cursor

copyStringToBuffer

public void copyStringToBuffer(int columnIndex,
                               CharArrayBuffer buffer)
Specified by:
copyStringToBuffer in interface Cursor

getBlob

public byte[] getBlob(int columnIndex)
Specified by:
getBlob in interface Cursor

getWantsAllOnMoveCalls

public boolean getWantsAllOnMoveCalls()
Specified by:
getWantsAllOnMoveCalls in interface Cursor

isAfterLast

public boolean isAfterLast()
Specified by:
isAfterLast in interface Cursor

isBeforeFirst

public boolean isBeforeFirst()
Specified by:
isBeforeFirst in interface Cursor

isFirst

public boolean isFirst()
Specified by:
isFirst in interface Cursor

isLast

public boolean isLast()
Specified by:
isLast in interface Cursor

getType

public int getType(int columnIndex)
Specified by:
getType in interface Cursor

isNull

public boolean isNull(int columnIndex)
Specified by:
isNull in interface Cursor

moveToLast

public boolean moveToLast()
Specified by:
moveToLast in interface Cursor

move

public boolean move(int offset)
Specified by:
move in interface Cursor

moveToPosition

public boolean moveToPosition(int position)
Specified by:
moveToPosition in interface Cursor

moveToNext

public boolean moveToNext()
Specified by:
moveToNext in interface Cursor

getPosition

public int getPosition()
Specified by:
getPosition in interface Cursor

moveToPrevious

public boolean moveToPrevious()
Specified by:
moveToPrevious in interface Cursor

registerContentObserver

public void registerContentObserver(ContentObserver observer)
Specified by:
registerContentObserver in interface Cursor

registerDataSetObserver

public void registerDataSetObserver(DataSetObserver observer)
Specified by:
registerDataSetObserver in interface Cursor

requery

public boolean requery()
Specified by:
requery in interface Cursor

respond

public Bundle respond(Bundle extras)
Specified by:
respond in interface Cursor

setNotificationUri

public void setNotificationUri(ContentResolver cr,
                               Uri uri)
Specified by:
setNotificationUri in interface Cursor

unregisterContentObserver

public void unregisterContentObserver(ContentObserver observer)
Specified by:
unregisterContentObserver in interface Cursor

unregisterDataSetObserver

public void unregisterDataSetObserver(DataSetObserver observer)
Specified by:
unregisterDataSetObserver in interface Cursor


Copyright © 2008-2012. All Rights Reserved.