パッケージ org.postgresql.core.v3
クラス CopyOperationImpl
java.lang.Object
org.postgresql.core.v3.CopyOperationImpl
- すべての実装されたインタフェース:
CopyOperation
- 直系の既知のサブクラス:
CopyDualImpl
,CopyInImpl
,CopyOutImpl
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明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.protected QueryExecutorImpl
void
handleCommandStatus
(String status) protected abstract void
handleCopydata
(byte[] data) Consume received copy data.boolean
isActive()
-
コンストラクタの詳細
-
CopyOperationImpl
public CopyOperationImpl()
-
-
メソッドの詳細
-
getQueryExecutor
-
cancelCopy
インタフェースからコピーされた説明: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
- 例外:
PSQLException
-
handleCopydata
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
-