com.groupdocs.assembly.system.data

Interface IDataRecord

  • All Known Subinterfaces:
    IDataReader
    All Known Implementing Classes:
    DataTableReader, DbDataReader


    public interface IDataRecord
    Provides access to the column values within each row for a DataReader, and is implemented by .NET Framework data providers that access relational databases.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Object get(int i)
      Gets the column located at the specified index.
      int getFieldCount()
      Gets the number of columns in the current row.
      java.lang.Class getFieldType(int i)
      Gets the Class information corresponding to the type of Object that would be returned from getValue(int).
      java.lang.String getName(int i)
      Gets the name for the field to find.
      java.lang.Object getValue(int i)
      Return the value of the specified field.
    • Method Detail

      • getFieldCount

        int getFieldCount()
        Gets the number of columns in the current row.
        Returns:
        When not positioned in a valid recordset, 0; otherwise, the number of columns in the current record. The default is -1.
      • get

        java.lang.Object get(int i)
        Gets the column located at the specified index.
        Parameters:
        i - The zero-based index of the column to get.
        Returns:
        The column located at the specified index as an Object.
      • getName

        java.lang.String getName(int i)
        Gets the name for the field to find.
        Parameters:
        i - The index of the field to find.
        Returns:
        The name of the field or the empty string (""), if there is no value to return.
      • getFieldType

        java.lang.Class getFieldType(int i)
        Gets the Class information corresponding to the type of Object that would be returned from getValue(int).
        Parameters:
        i - The index of the field to find.
        Returns:
        The Class information corresponding to the type of Object that would be returned from getValue(int).
      • getValue

        java.lang.Object getValue(int i)
        Return the value of the specified field.
        Parameters:
        i - The index of the field to find.
        Returns:
        The Object which will contain the field value upon return.