android.database
Class CursorWindow

java.lang.Object
  extended by android.database.sqlite.SQLiteClosable
      extended by android.database.CursorWindow
All Implemented Interfaces:
Parcelable

public class CursorWindow
extends SQLiteClosable
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<CursorWindow> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
CursorWindow(boolean localWindow)
           
 
Method Summary
 boolean allocRow()
           
 void clear()
           
 void close()
           
 void copyStringToBuffer(int row, int column, CharArrayBuffer buffer)
           
 int describeContents()
           
protected  void finalize()
           
 void freeLastRow()
           
 byte[] getBlob(int row, int column)
           
 double getDouble(int row, int column)
           
 float getFloat(int row, int column)
           
 int getInt(int row, int column)
           
 long getLong(int row, int column)
           
 int getNumRows()
           
 short getShort(int row, int column)
           
 int getStartPosition()
           
 String getString(int row, int column)
           
 int getType(int row, int column)
           
 boolean isBlob(int row, int column)
           
 boolean isFloat(int row, int column)
           
 boolean isLong(int row, int column)
           
 boolean isNull(int row, int column)
           
 boolean isString(int row, int column)
           
static CursorWindow newFromParcel(Parcel p)
           
protected  void onAllReferencesReleased()
           
 boolean putBlob(byte[] value, int row, int column)
           
 boolean putDouble(double value, int row, int column)
           
 boolean putLong(long value, int row, int column)
           
 boolean putNull(int row, int column)
           
 boolean putString(String value, int row, int column)
           
 boolean setNumColumns(int columnNum)
           
 void setStartPosition(int pos)
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class android.database.sqlite.SQLiteClosable
acquireReference, onAllReferencesReleasedFromContainer, releaseReference, releaseReferenceFromContainer
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<CursorWindow> CREATOR
Constructor Detail

CursorWindow

public CursorWindow(boolean localWindow)
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

close

public void close()

clear

public void clear()

getStartPosition

public int getStartPosition()

setStartPosition

public void setStartPosition(int pos)

getNumRows

public int getNumRows()

setNumColumns

public boolean setNumColumns(int columnNum)

allocRow

public boolean allocRow()

freeLastRow

public void freeLastRow()

isNull

public boolean isNull(int row,
                      int column)

isBlob

public boolean isBlob(int row,
                      int column)

isLong

public boolean isLong(int row,
                      int column)

isFloat

public boolean isFloat(int row,
                       int column)

isString

public boolean isString(int row,
                        int column)

getType

public int getType(int row,
                   int column)

getBlob

public byte[] getBlob(int row,
                      int column)

getString

public String getString(int row,
                        int column)

copyStringToBuffer

public void copyStringToBuffer(int row,
                               int column,
                               CharArrayBuffer buffer)

getLong

public long getLong(int row,
                    int column)

getDouble

public double getDouble(int row,
                        int column)

getShort

public short getShort(int row,
                      int column)

getInt

public int getInt(int row,
                  int column)

getFloat

public float getFloat(int row,
                      int column)

putBlob

public boolean putBlob(byte[] value,
                       int row,
                       int column)

putString

public boolean putString(String value,
                         int row,
                         int column)

putLong

public boolean putLong(long value,
                       int row,
                       int column)

putDouble

public boolean putDouble(double value,
                         int row,
                         int column)

putNull

public boolean putNull(int row,
                       int column)

newFromParcel

public static CursorWindow newFromParcel(Parcel p)

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

onAllReferencesReleased

protected void onAllReferencesReleased()
Specified by:
onAllReferencesReleased in class SQLiteClosable


Copyright © 2008-2012. All Rights Reserved.