/**@class android.database.CursorWindow implements android.os.Parcelable @extends android.database.sqlite.SQLiteClosable A buffer containing multiple cursor rows. <p> A {@link android.database.CursorWindow} is read-write when initially created and used locally. When sent to a remote process (by writing it to a {@link Parcel}), the remote process receives a read-only view of the cursor window. Typically the cursor window will be allocated by the producer, filled with data, and then sent to the consumer for reading. </p> */ var CursorWindow = { /** The native CursorWindow object pointer. (FOR INTERNAL USE ONLY) @hide */ mWindowPtr : "null", /***/ CREATOR : "null", /**Gets the name of this cursor window, never null. @hide */ getName : function( ) {}, /**Clears out the existing contents of the window, making it safe to reuse for new data. <p> The start position ({@link #getStartPosition}()), number of rows ({@link #getNumRows}()), and number of columns in the cursor are all reset to zero. </p> */ clear : function( ) {}, /**Gets the start position of this cursor window. <p> The start position is the zero-based index of the first row that this window contains relative to the entire result set of the {@link android.database.Cursor}. </p> @return {Number} The zero-based start position. */ getStartPosition : function( ) {}, /**Sets the start position of this cursor window. <p> The start position is the zero-based index of the first row that this window contains relative to the entire result set of the {@link android.database.Cursor}. </p> @param {Number} pos The new zero-based start position. */ setStartPosition : function( ) {}, /**Gets the number of rows in this window. @return {Number} The number of rows in this cursor window. */ getNumRows : function( ) {}, /**Sets the number of columns in this window. <p> This method must be called before any rows are added to the window, otherwise it will fail to set the number of columns if it differs from the current number of columns. </p> @param {Number} columnNum The new number of columns. @return {Boolean} True if successful. */ setNumColumns : function( ) {}, /**Allocates a new row at the end of this cursor window. @return {Boolean} True if successful, false if the cursor window is out of memory. */ allocRow : function( ) {}, /**Frees the last row in this cursor window. */ freeLastRow : function( ) {}, /**Returns true if the field at the specified row and column index has type {@link android.database.Cursor#FIELD_TYPE_NULL}. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if the field has type {@link Cursor#FIELD_TYPE_NULL}. @deprecated Use {@link #getType(int, int)} instead. */ isNull : function( ) {}, /**Returns true if the field at the specified row and column index has type {@link android.database.Cursor#FIELD_TYPE_BLOB} or {@link android.database.Cursor#FIELD_TYPE_NULL}. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if the field has type {@link Cursor#FIELD_TYPE_BLOB} or {@link Cursor#FIELD_TYPE_NULL}. @deprecated Use {@link #getType(int, int)} instead. */ isBlob : function( ) {}, /**Returns true if the field at the specified row and column index has type {@link android.database.Cursor#FIELD_TYPE_INTEGER}. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if the field has type {@link Cursor#FIELD_TYPE_INTEGER}. @deprecated Use {@link #getType(int, int)} instead. */ isLong : function( ) {}, /**Returns true if the field at the specified row and column index has type {@link android.database.Cursor#FIELD_TYPE_FLOAT}. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if the field has type {@link Cursor#FIELD_TYPE_FLOAT}. @deprecated Use {@link #getType(int, int)} instead. */ isFloat : function( ) {}, /**Returns true if the field at the specified row and column index has type {@link android.database.Cursor#FIELD_TYPE_STRING} or {@link android.database.Cursor#FIELD_TYPE_NULL}. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if the field has type {@link Cursor#FIELD_TYPE_STRING} or {@link Cursor#FIELD_TYPE_NULL}. @deprecated Use {@link #getType(int, int)} instead. */ isString : function( ) {}, /**Returns the type of the field at the specified row and column index. <p> The returned field types are: <ul> <li>{@link android.database.Cursor#FIELD_TYPE_NULL}</li> <li>{@link android.database.Cursor#FIELD_TYPE_INTEGER}</li> <li>{@link android.database.Cursor#FIELD_TYPE_FLOAT}</li> <li>{@link android.database.Cursor#FIELD_TYPE_STRING}</li> <li>{@link android.database.Cursor#FIELD_TYPE_BLOB}</li> </ul> </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Number} The field type. */ getType : function( ) {}, /**Gets the value of the field at the specified row and column index as a byte array. <p> The result is determined as follows: <ul> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_NULL}, then the result is <code>null</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_BLOB}, then the result is the blob value.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_STRING}, then the result is the array of bytes that make up the internal representation of the string value.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_INTEGER} or {@link android.database.Cursor#FIELD_TYPE_FLOAT}, then a {@link SQLiteException} is thrown.</li> </ul> </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Number} The value of the field as a byte array. */ getBlob : function( ) {}, /**Gets the value of the field at the specified row and column index as a string. <p> The result is determined as follows: <ul> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_NULL}, then the result is <code>null</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_STRING}, then the result is the string value.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_INTEGER}, then the result is a string representation of the integer in decimal, obtained by formatting the value with the <code>printf</code> family of functions using format specifier <code>%lld</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_FLOAT}, then the result is a string representation of the floating-point value in decimal, obtained by formatting the value with the <code>printf</code> family of functions using format specifier <code>%g</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_BLOB}, then a {@link SQLiteException} is thrown.</li> </ul> </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {String} The value of the field as a string. */ getString : function( ) {}, /**Copies the text of the field at the specified row and column index into a {@link android.database.CharArrayBuffer}. <p> The buffer is populated as follows: <ul> <li>If the buffer is too small for the value to be copied, then it is automatically resized.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_NULL}, then the buffer is set to an empty string.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_STRING}, then the buffer is set to the contents of the string.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_INTEGER}, then the buffer is set to a string representation of the integer in decimal, obtained by formatting the value with the <code>printf</code> family of functions using format specifier <code>%lld</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_FLOAT}, then the buffer is set to a string representation of the floating-point value in decimal, obtained by formatting the value with the <code>printf</code> family of functions using format specifier <code>%g</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_BLOB}, then a {@link SQLiteException} is thrown.</li> </ul> </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @param {Object {CharArrayBuffer}} buffer The {@link CharArrayBuffer} to hold the string. It is automatically resized if the requested string is larger than the buffer's current capacity. */ copyStringToBuffer : function( ) {}, /**Gets the value of the field at the specified row and column index as a <code>long</code>. <p> The result is determined as follows: <ul> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_NULL}, then the result is <code>0L</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_STRING}, then the result is the value obtained by parsing the string value with <code>strtoll</code>. <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_INTEGER}, then the result is the <code>long</code> value.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_FLOAT}, then the result is the floating-point value converted to a <code>long</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_BLOB}, then a {@link SQLiteException} is thrown.</li> </ul> </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Number} The value of the field as a <code>long</code>. */ getLong : function( ) {}, /**Gets the value of the field at the specified row and column index as a <code>double</code>. <p> The result is determined as follows: <ul> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_NULL}, then the result is <code>0.0</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_STRING}, then the result is the value obtained by parsing the string value with <code>strtod</code>. <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_INTEGER}, then the result is the integer value converted to a <code>double</code>.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_FLOAT}, then the result is the <code>double</code> value.</li> <li>If the field is of type {@link android.database.Cursor#FIELD_TYPE_BLOB}, then a {@link SQLiteException} is thrown.</li> </ul> </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Number} The value of the field as a <code>double</code>. */ getDouble : function( ) {}, /**Gets the value of the field at the specified row and column index as a <code>short</code>. <p> The result is determined by invoking {@link #getLong} and converting the result to <code>short</code>. </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Number} The value of the field as a <code>short</code>. */ getShort : function( ) {}, /**Gets the value of the field at the specified row and column index as an <code>int</code>. <p> The result is determined by invoking {@link #getLong} and converting the result to <code>int</code>. </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Number} The value of the field as an <code>int</code>. */ getInt : function( ) {}, /**Gets the value of the field at the specified row and column index as a <code>float</code>. <p> The result is determined by invoking {@link #getDouble} and converting the result to <code>float</code>. </p> @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Number} The value of the field as an <code>float</code>. */ getFloat : function( ) {}, /**Copies a byte array into the field at the specified row and column index. @param {Object {byte[]}} value The value to store. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if successful. */ putBlob : function( ) {}, /**Copies a string into the field at the specified row and column index. @param {String} value The value to store. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if successful. */ putString : function( ) {}, /**Puts a long integer into the field at the specified row and column index. @param {Number} value The value to store. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if successful. */ putLong : function( ) {}, /**Puts a double-precision floating point value into the field at the specified row and column index. @param {Number} value The value to store. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if successful. */ putDouble : function( ) {}, /**Puts a null value into the field at the specified row and column index. @param {Number} row The zero-based row index. @param {Number} column The zero-based column index. @return {Boolean} True if successful. */ putNull : function( ) {}, /** */ newFromParcel : function( ) {}, /** */ describeContents : function( ) {}, /** */ writeToParcel : function( ) {}, /** */ toString : function( ) {}, };