IT. Expert System.

Android Reference

MatrixCursor


android.database

Class MatrixCursor

    • Constructor Detail

      • MatrixCursor

        public MatrixCursor(String[] columnNames,
                    int initialCapacity)
        Constructs a new cursor with the given initial capacity.
        Parameters:
        columnNames - names of the columns, the ordering of which determines column ordering elsewhere in this cursor
        initialCapacity - in rows
      • MatrixCursor

        public MatrixCursor(String[] columnNames)
        Constructs a new cursor.
        Parameters:
        columnNames - names of the columns, the ordering of which determines column ordering elsewhere in this cursor
    • Method Detail

      • newRow

        public MatrixCursor.RowBuilder newRow()
        Adds a new row to the end and returns a builder for that row. Not safe for concurrent use.
        Returns:
        builder which can be used to set the column values for the new row
      • addRow

        public void addRow(Object[] columnValues)
        Adds a new row to the end with the given column values. Not safe for concurrent use.
        Parameters:
        columnValues - in the same order as the the column names specified at cursor construction time
        Throws:
        IllegalArgumentException - if columnValues.length != columnNames.length
      • addRow

        public void addRow(Iterable<?> columnValues)
        Adds a new row to the end with the given column values. Not safe for concurrent use.
        Parameters:
        columnValues - in the same order as the the column names specified at cursor construction time
        Throws:
        IllegalArgumentException - if columnValues.size() != columnNames.length
      • getCount

        public int getCount()
        Description copied from interface: Cursor
        Returns the numbers of rows in the cursor.
        Specified by:
        getCount in interface Cursor
        Specified by:
        getCount in class AbstractCursor
        Returns:
        the number of rows in the cursor.
      • getColumnNames

        public String[] getColumnNames()
        Description copied from interface: Cursor
        Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.
        Specified by:
        getColumnNames in interface Cursor
        Specified by:
        getColumnNames in class AbstractCursor
        Returns:
        the names of the columns returned in this query.
      • getString

        public String getString(int column)
        Description copied from interface: Cursor
        Returns the value of the requested column as a String.

        The result and whether this method throws an exception when the column value is null or the column type is not a string type is implementation-defined.

        Specified by:
        getString in interface Cursor
        Specified by:
        getString in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        the value of that column as a String.
      • getShort

        public short getShort(int column)
        Description copied from interface: Cursor
        Returns the value of the requested column as a short.

        The result and whether this method throws an exception when the column value is null, the column type is not an integral type, or the integer value is outside the range [Short.MIN_VALUE, Short.MAX_VALUE] is implementation-defined.

        Specified by:
        getShort in interface Cursor
        Specified by:
        getShort in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        the value of that column as a short.
      • getInt

        public int getInt(int column)
        Description copied from interface: Cursor
        Returns the value of the requested column as an int.

        The result and whether this method throws an exception when the column value is null, the column type is not an integral type, or the integer value is outside the range [Integer.MIN_VALUE, Integer.MAX_VALUE] is implementation-defined.

        Specified by:
        getInt in interface Cursor
        Specified by:
        getInt in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        the value of that column as an int.
      • getLong

        public long getLong(int column)
        Description copied from interface: Cursor
        Returns the value of the requested column as a long.

        The result and whether this method throws an exception when the column value is null, the column type is not an integral type, or the integer value is outside the range [Long.MIN_VALUE, Long.MAX_VALUE] is implementation-defined.

        Specified by:
        getLong in interface Cursor
        Specified by:
        getLong in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        the value of that column as a long.
      • getFloat

        public float getFloat(int column)
        Description copied from interface: Cursor
        Returns the value of the requested column as a float.

        The result and whether this method throws an exception when the column value is null, the column type is not a floating-point type, or the floating-point value is not representable as a float value is implementation-defined.

        Specified by:
        getFloat in interface Cursor
        Specified by:
        getFloat in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        the value of that column as a float.
      • getDouble

        public double getDouble(int column)
        Description copied from interface: Cursor
        Returns the value of the requested column as a double.

        The result and whether this method throws an exception when the column value is null, the column type is not a floating-point type, or the floating-point value is not representable as a double value is implementation-defined.

        Specified by:
        getDouble in interface Cursor
        Specified by:
        getDouble in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        the value of that column as a double.
      • getBlob

        public byte[] getBlob(int column)
        Description copied from interface: Cursor
        Returns the value of the requested column as a byte array.

        The result and whether this method throws an exception when the column value is null or the column type is not a blob type is implementation-defined.

        Specified by:
        getBlob in interface Cursor
        Overrides:
        getBlob in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        the value of that column as a byte array.
      • isNull

        public boolean isNull(int column)
        Description copied from interface: Cursor
        Returns true if the value in the indicated column is null.
        Specified by:
        isNull in interface Cursor
        Specified by:
        isNull in class AbstractCursor
        Parameters:
        column - the zero-based index of the target column.
        Returns:
        whether the column value is null.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 206 / 158680665. Delta: 0.23149 с