Class ResultSetResult

  • All Implemented Interfaces:
    Result
    Direct Known Subclasses:
    UserResultSet

    public class ResultSetResult
    extends Object
    implements Result
    Result Set result implementation. The column index of the GeoPackage core is 0 indexed based and ResultSets are 1 indexed based.
    Since:
    3.1.0
    Author:
    osbornb
    • Field Detail

      • resultSet

        protected ResultSet resultSet
        Result Set
    • Constructor Detail

      • ResultSetResult

        public ResultSetResult​(ResultSet resultSet)
        Constructor
        Parameters:
        resultSet - result set
    • Method Detail

      • getResultSet

        public ResultSet getResultSet()
        Get the Result Set
        Returns:
        result set
      • moveToNext

        public boolean moveToNext()
        Specified by:
        moveToNext in interface Result
      • moveToFirst

        public boolean moveToFirst()
        Specified by:
        moveToFirst in interface Result
      • getPosition

        public int getPosition()
        Specified by:
        getPosition in interface Result
      • moveToPosition

        public boolean moveToPosition​(int position)
        Specified by:
        moveToPosition in interface Result
      • getType

        public int getType​(int columnIndex)
        Specified by:
        getType in interface Result
      • getInt

        public int getInt​(int columnIndex)
        Specified by:
        getInt in interface Result
      • getBlob

        public byte[] getBlob​(int columnIndex)
        Specified by:
        getBlob in interface Result
      • getLong

        public long getLong​(int columnIndex)
        Specified by:
        getLong in interface Result
      • getShort

        public short getShort​(int columnIndex)
        Specified by:
        getShort in interface Result
      • getDouble

        public double getDouble​(int columnIndex)
        Specified by:
        getDouble in interface Result
      • getFloat

        public float getFloat​(int columnIndex)
        Specified by:
        getFloat in interface Result
      • wasNull

        public boolean wasNull()
        Specified by:
        wasNull in interface Result
      • close

        public void close()
        Specified by:
        close in interface Result
      • resultIndexToResultSetIndex

        protected int resultIndexToResultSetIndex​(int resultIndex)
        Get the ResultSet index for the provided core Result index
        Parameters:
        resultIndex - result index
        Returns:
        result set index
      • resultSetIndexToResultIndex

        protected int resultSetIndexToResultIndex​(int resultSetIndex)
        Get the core Result index for the provided ResultSet index
        Parameters:
        resultSetIndex - result set index
        Returns:
        result index
      • resultSetTypeToSqlLite

        public static int resultSetTypeToSqlLite​(int columnType)
        Get the SQLite type from the ResultSetMetaData column type
        Parameters:
        columnType - column type
        Returns:
        SQLite type