Uses of Interface
org.postgresql.copy.CopyIn

Packages that use CopyIn
org.postgresql.copy   
org.postgresql.core.v3   
 

Uses of CopyIn in org.postgresql.copy
 

Classes in org.postgresql.copy that implement CopyIn
 class PGCopyOutputStream
          OutputStream for buffered input into a PostgreSQL COPY FROM STDIN operation
 

Methods in org.postgresql.copy that return CopyIn
 CopyIn CopyManager.copyIn(String sql)
           
 

Constructors in org.postgresql.copy with parameters of type CopyIn
PGCopyOutputStream(CopyIn op)
          Use given CopyIn operation for writing
PGCopyOutputStream(CopyIn op, int bufferSize)
          Use given CopyIn operation for writing
 

Uses of CopyIn in org.postgresql.core.v3
 

Classes in org.postgresql.core.v3 that implement CopyIn
 class CopyInImpl
          Anticipated flow of a COPY FROM STDIN operation: CopyManager.copyIn() ->QueryExecutor.startCopy() - sends given query to server ->processCopyResults(): - receives CopyInResponse from Server - creates new CopyInImpl ->initCopy(): - receives copy metadata from server ->CopyInImpl.init() ->lock() connection for this operation - if query fails an exception is thrown - if query returns wrong CopyOperation, copyIn() cancels it before throwing exception <-return: new CopyInImpl holding lock on connection repeat CopyIn.writeToCopy() for all data ->CopyInImpl.writeToCopy() ->QueryExecutorImpl.writeToCopy() - sends given data ->processCopyResults() - parameterized not to block, just peek for new messages from server - on ErrorResponse, waits until protocol is restored and unlocks connection CopyIn.endCopy() ->CopyInImpl.endCopy() ->QueryExecutorImpl.endCopy() - sends CopyDone - processCopyResults() - on CommandComplete ->CopyOperationImpl.handleCommandComplete() - sets updatedRowCount when applicable - on ReadyForQuery unlock() connection for use by other operations <-return: CopyInImpl.getUpdatedRowCount()
 



Copyright © 2013. All Rights Reserved.