パッケージ org.postgresql.copy

インタフェース CopyOperation

既知のサブインタフェースのリスト:
CopyDual, CopyIn, CopyOut
既知の実装クラスのリスト:
CopyDualImpl, CopyInImpl, CopyOperationImpl, CopyOutImpl, PGCopyInputStream, PGCopyOutputStream

public interface CopyOperation
Exchange bulk data between client and PostgreSQL database tables. See CopyIn and CopyOut for full interfaces for corresponding copy directions.
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    void
    Cancels this copy operation, discarding any exchanged data.
    int
     
    int
    getFieldFormat(int field)
     
    int
     
    long
    After successful end of copy, returns the number of database records handled in that operation.
    boolean
     
  • メソッドの詳細

    • getFieldCount

      int getFieldCount()
      戻り値:
      number of fields in each row for this operation
    • getFormat

      int getFormat()
      戻り値:
      overall format of each row: 0 = textual, 1 = binary
    • getFieldFormat

      int getFieldFormat(int field)
      パラメータ:
      field - number of field (0..fieldCount()-1)
      戻り値:
      format of requested field: 0 = textual, 1 = binary
    • isActive

      boolean isActive()
      戻り値:
      is connection reserved for this Copy operation?
    • cancelCopy

      void cancelCopy() throws SQLException
      Cancels this copy operation, discarding any exchanged data.
      例外:
      SQLException - if cancelling fails
    • getHandledRowCount

      long getHandledRowCount()
      After successful end of copy, returns the number of database records handled in that operation. Only implemented in PostgreSQL server version 8.2 and up. Otherwise, returns -1.
      戻り値:
      number of handled rows or -1