Package 

Interface ICursor


  • 
    public interface ICursor
    
                        

    The data cursor that is provided on the IDatabase.query lambda. It provides access to the data retrieved by the query.

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean moveToFirst() Move the cursor to the first record in the result set.
      abstract Boolean moveToNext() Move the cursor to the next record in the result set.
      abstract String getString(String column) Retrieve the value of the provided column from the current record.
      abstract Float getFloat(String column) Retrieve the value of the provided column from the current record.
      abstract Long getLong(String column) Retrieve the value of the provided column from the current record.
      abstract Integer getInt(String column) Retrieve the value of the provided column from the current record.
      abstract String getOptString(String column) Retrieve the value of the provided column from the current record.
      abstract Float getOptFloat(String column) Retrieve the value of the provided column from the current record.
      abstract Long getOptLong(String column) Retrieve the value of the provided column from the current record.
      abstract Integer getOptInt(String column) Retrieve the value of the provided column from the current record.
      abstract Integer getCount() The number of records this cursor can traverse.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • moveToFirst

         abstract Boolean moveToFirst()

        Move the cursor to the first record in the result set.

      • moveToNext

         abstract Boolean moveToNext()

        Move the cursor to the next record in the result set.

      • getString

         abstract String getString(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getFloat

         abstract Float getFloat(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getLong

         abstract Long getLong(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getInt

         abstract Integer getInt(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getOptString

         abstract String getOptString(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getOptFloat

         abstract Float getOptFloat(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getOptLong

         abstract Long getOptLong(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getOptInt

         abstract Integer getOptInt(String column)

        Retrieve the value of the provided column from the current record.

        Parameters:
        column - The name of the column to retrieve.
      • getCount

         abstract Integer getCount()

        The number of records this cursor can traverse.