Interface RowCursor

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
ValidatingRowCursor

public interface RowCursor extends AutoCloseable

單次、只能往前讀的列游標

由 RowSource.open() 取得;開啟者負責關閉,關閉後不得再讀取。

Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    釋放游標持有的資源;可重複呼叫
    boolean
     
    讀取下一列
  • Method Details

    • hasNext

      boolean hasNext()
      Returns:
      是否還有下一列
    • next

      TableRow next()
      讀取下一列
      Returns:
      下一列
      Throws:
      NoSuchElementException - 已無下一列
    • close

      void close()
      釋放游標持有的資源;可重複呼叫
      Specified by:
      close in interface AutoCloseable