CursorWindow

Class of android.database · CursorWindow.java · Android's reference

public class CursorWindow extends SQLiteClosable implements Parcelable

CursorWindow ← SQLiteClosable

A block of cursor rows, held in Java: each row an array of its values. The size limit counts the bytes that the values take, as Android's shared memory window does.

Fields

public static final Parcelable.Creator<CursorWindow> CREATOR source

Constructors

public CursorWindow(String name) source
public CursorWindow(String name, long windowSizeBytes) source
public CursorWindow(boolean localWindow) deprecated source

Methods

public String getName() source
public int getStartPosition() source
public void setStartPosition(int pos) source
public int getNumRows() source
public void clear() source
public boolean setNumColumns(int columnNum) source
public boolean allocRow() source
public void freeLastRow() source
public int getType(int row, int column) source
public boolean isNull(int row, int column) source
public byte[] getBlob(int row, int column) source
public String getString(int row, int column) source
public void copyStringToBuffer(int row, int column, CharArrayBuffer buffer) source
public long getLong(int row, int column) source
public double getDouble(int row, int column) source
public short getShort(int row, int column) source
public int getInt(int row, int column) source
public float getFloat(int row, int column) source
public boolean putBlob(byte[] value, int row, int column) source
public boolean putString(String value, int row, int column) source
public boolean putLong(long value, int row, int column) source
public boolean putDouble(double value, int row, int column) source
public boolean putNull(int row, int column) source
protected void onAllReferencesReleased() source
public String toString() source
public int describeContents() source
public void writeToParcel(Parcel dest, int flags) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.