パッケージ org.postgresql.core.v3

クラス CopyOperationImpl

java.lang.Object
org.postgresql.core.v3.CopyOperationImpl
すべての実装されたインタフェース:
CopyOperation
直系の既知のサブクラス:
CopyDualImpl, CopyInImpl, CopyOutImpl

public abstract class CopyOperationImpl extends Object implements CopyOperation
  • コンストラクタの詳細

    • CopyOperationImpl

      public CopyOperationImpl()
  • メソッドの詳細

    • getQueryExecutor

      protected QueryExecutorImpl getQueryExecutor()
    • cancelCopy

      public void cancelCopy() throws SQLException
      インタフェースからコピーされた説明: CopyOperation
      Cancels this copy operation, discarding any exchanged data.
      定義:
      cancelCopy インタフェース内 CopyOperation
      例外:
      SQLException - if cancelling fails
    • getFieldCount

      public int getFieldCount()
      定義:
      getFieldCount インタフェース内 CopyOperation
      戻り値:
      number of fields in each row for this operation
    • getFieldFormat

      public int getFieldFormat(int field)
      定義:
      getFieldFormat インタフェース内 CopyOperation
      パラメータ:
      field - number of field (0..fieldCount()-1)
      戻り値:
      format of requested field: 0 = textual, 1 = binary
    • getFormat

      public int getFormat()
      定義:
      getFormat インタフェース内 CopyOperation
      戻り値:
      overall format of each row: 0 = textual, 1 = binary
    • isActive

      public boolean isActive()
      定義:
      isActive インタフェース内 CopyOperation
      戻り値:
      is connection reserved for this Copy operation?
    • handleCommandStatus

      public void handleCommandStatus(String status) throws PSQLException
      例外:
      PSQLException
    • handleCopydata

      protected abstract void handleCopydata(byte[] data) throws PSQLException
      Consume received copy data.
      パラメータ:
      data - data that was receive by copy protocol
      例外:
      PSQLException - if some internal problem occurs
    • getHandledRowCount

      public long getHandledRowCount()
      インタフェースからコピーされた説明: CopyOperation
      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.
      定義:
      getHandledRowCount インタフェース内 CopyOperation
      戻り値:
      number of handled rows or -1