Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b079e7d4 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am c91e4673: am bbd212d7: Merge "Document per-implementation behaviors of native get* methods"

* commit 'c91e4673':
  Document per-implementation behaviors of native get* methods
parents ae60b8a1 c91e4673
Loading
Loading
Loading
Loading
+44 −0
Original line number Original line Diff line number Diff line
@@ -240,6 +240,15 @@ public class CursorWindow extends SQLiteClosable implements Parcelable {
        }
        }
    }
    }


    /**
     * Returns the value at (<code>row</code>, <code>col</code>) as a <code>byte</code> array.
     *
     * <p>If the value is null, then <code>null</code> is returned. If the
     * type of column <code>col</code> is a string type, then the result
     * is the array of bytes that make up the internal representation of the
     * string value. If the type of column <code>col</code> is integral or floating-point,
     * then an {@link SQLiteException} is thrown.
     */
    private native byte[] getBlob_native(int row, int col);
    private native byte[] getBlob_native(int row, int col);


    /**
    /**
@@ -340,6 +349,19 @@ public class CursorWindow extends SQLiteClosable implements Parcelable {
        }
        }
    }
    }
    
    
    /**
     * Returns the value at (<code>row</code>, <code>col</code>) as a <code>String</code>.
     *
     * <p>If the value is null, then <code>null</code> is returned. If the
     * type of column <code>col</code> is integral, then the result is the string
     * that is obtained by formatting the integer value with the <code>printf</code>
     * family of functions using format specifier <code>%lld</code>. If the
     * type of column <code>col</code> is floating-point, then the result is the string
     * that is obtained by formatting the floating-point value with the
     * <code>printf</code> family of functions using format specifier <code>%g</code>.
     * If the type of column <code>col</code> is a blob type, then an
     * {@link SQLiteException} is thrown.
     */
    private native String getString_native(int row, int col);
    private native String getString_native(int row, int col);


    /**
    /**
@@ -391,6 +413,17 @@ public class CursorWindow extends SQLiteClosable implements Parcelable {
        }
        }
    }
    }
    
    
    /**
     * Returns the value at (<code>row</code>, <code>col</code>) as a <code>long</code>.
     *
     * <p>If the value is null, then <code>0L</code> is returned. If the
     * type of column <code>col</code> is a string type, then the result
     * is the <code>long</code> that is obtained by parsing the string value with
     * <code>strtoll</code>. If the type of column <code>col</code> is
     * floating-point, then the result is the floating-point value casted to a <code>long</code>.
     * If the type of column <code>col</code> is a blob type, then an
     * {@link SQLiteException} is thrown.
     */
    private native long getLong_native(int row, int col);
    private native long getLong_native(int row, int col);


    /**
    /**
@@ -410,6 +443,17 @@ public class CursorWindow extends SQLiteClosable implements Parcelable {
        }
        }
    }
    }
    
    
    /**
     * Returns the value at (<code>row</code>, <code>col</code>) as a <code>double</code>.
     *
     * <p>If the value is null, then <code>0.0</code> is returned. If the
     * type of column <code>col</code> is a string type, then the result
     * is the <code>double</code> that is obtained by parsing the string value with
     * <code>strtod</code>. If the type of column <code>col</code> is
     * integral, then the result is the integer value casted to a <code>double</code>.
     * If the type of column <code>col</code> is a blob type, then an
     * {@link SQLiteException} is thrown.
     */
    private native double getDouble_native(int row, int col);
    private native double getDouble_native(int row, int col);


    /**
    /**