Interface Result

  • All Known Subinterfaces:
    UserCoreResult<TColumn,​TTable,​TRow>

    public interface Result
    Database result interface
    Since:
    3.1.0
    Author:
    osbornb
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Close the result
      byte[] getBlob​(int columnIndex)
      Returns the value of the requested column as a byte array.
      int getColumnCount()
      Get the number of columns
      int getColumnIndex​(String columnName)
      Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
      double getDouble​(int columnIndex)
      Returns the value of the requested column as an double.
      float getFloat​(int columnIndex)
      Returns the value of the requested column as an float.
      int getInt​(int columnIndex)
      Returns the value of the requested column as an int.
      long getLong​(int columnIndex)
      Returns the value of the requested column as an long.
      int getPosition()
      Get the current position
      short getShort​(int columnIndex)
      Returns the value of the requested column as an short.
      String getString​(int columnIndex)
      Returns the value of the requested column as a String.
      int getType​(int columnIndex)
      Returns data type of the given column's value
      Object getValue​(int index)
      Get the value for the column
      Object getValue​(int index, GeoPackageDataType dataType)
      Get the value for the column
      boolean moveToFirst()
      Move the cursor to the first row.
      boolean moveToNext()
      Move the cursor to the next row.
      boolean moveToPosition​(int position)
      Move the cursor to an absolute position
      boolean wasNull()
      Was the last value retrieved null
    • Method Detail

      • getValue

        Object getValue​(int index)
        Get the value for the column
        Parameters:
        index - index
        Returns:
        value
      • getValue

        Object getValue​(int index,
                        GeoPackageDataType dataType)
        Get the value for the column
        Parameters:
        index - index
        dataType - data type
        Returns:
        value
      • moveToNext

        boolean moveToNext()
        Move the cursor to the next row.
        Returns:
        true if another row
      • getPosition

        int getPosition()
        Get the current position
        Returns:
        position
      • moveToFirst

        boolean moveToFirst()
        Move the cursor to the first row.
        Returns:
        true if moved to first
      • moveToPosition

        boolean moveToPosition​(int position)
        Move the cursor to an absolute position
        Parameters:
        position - position
        Returns:
        true if moved to position
      • getColumnCount

        int getColumnCount()
        Get the number of columns
        Returns:
        column count
      • getType

        int getType​(int columnIndex)
        Returns data type of the given column's value
        Parameters:
        columnIndex - column index
        Returns:
        type
      • getColumnIndex

        int getColumnIndex​(String columnName)
        Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
        Parameters:
        columnName - column name
        Returns:
        column index
      • getString

        String getString​(int columnIndex)
        Returns the value of the requested column as a String.
        Parameters:
        columnIndex - column index
        Returns:
        string value
      • getLong

        long getLong​(int columnIndex)
        Returns the value of the requested column as an long.
        Parameters:
        columnIndex - column index
        Returns:
        long value
      • getInt

        int getInt​(int columnIndex)
        Returns the value of the requested column as an int.
        Parameters:
        columnIndex - column index
        Returns:
        int value
      • getShort

        short getShort​(int columnIndex)
        Returns the value of the requested column as an short.
        Parameters:
        columnIndex - column index
        Returns:
        short value
      • getDouble

        double getDouble​(int columnIndex)
        Returns the value of the requested column as an double.
        Parameters:
        columnIndex - column index
        Returns:
        double value
      • getFloat

        float getFloat​(int columnIndex)
        Returns the value of the requested column as an float.
        Parameters:
        columnIndex - column index
        Returns:
        float value
      • getBlob

        byte[] getBlob​(int columnIndex)
        Returns the value of the requested column as a byte array.
        Parameters:
        columnIndex - column index
        Returns:
        bytes value
      • wasNull

        boolean wasNull()
        Was the last value retrieved null
        Returns:
        true if was null
      • close

        void close()
        Close the result