| Modifier and Type | Field and Description |
|---|---|
| private final BaseConnection | |
| pack-priv static final int | |
| private final Encoding | |
| private final QueryExecutor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CopyDual | |
| public CopyIn | |
| public long | |
| public long | Returns: number of rows updated for server 8.2 or newer; -1 for olderCOPY FROM STDIN statement sql, Reader a CSV file or such from, int number of characters to buffer and push over network to server at once bufferSize)Use COPY FROM STDIN for very fast copying from a Reader into a database table. |
| public long | Returns: number of rows updated for server 8.2 or newer; -1 for olderCOPY FROM STDIN statement sql, InputStream a CSV file or such from)Use COPY FROM STDIN for very fast copying from an InputStream into a database table. |
| public long | Returns: number of rows updated for server 8.2 or newer; -1 for olderCOPY FROM STDIN statement sql, InputStream a CSV file or such from, int number of bytes to buffer and push over network to server at once bufferSize)Use COPY FROM STDIN for very fast copying from an InputStream into a database table. |
| public long | Returns: number of rows updated for server 8.2 or newer; -1 for olderCOPY FROM STDIN statement sql, ByteStreamWriter the source of bytes, e.g. a ByteBufferByteStreamWriter from)Use COPY FROM STDIN for very fast copying from an ByteStreamWriter into a database table. |
| public CopyOut | |
| public long | Returns: number of rows updated for server 8.2 or newer; -1 for olderCOPY TO STDOUT statement sql, Writer the Writer to write the results to (row by row).
The Writer is not closed at the end of the Copy Out operation. to)Pass results of a COPY TO STDOUT query from database into a Writer. |
| public long | Returns: number of rows updated for server 8.2 or newer; -1 for olderCOPY TO STDOUT statement sql, OutputStream the stream to write the results to (row by row)
The stream is not closed at the end of the operation. This is intentional so the
caller can continue to write to the output stream to)Pass results of a COPY TO STDOUT query from database into an OutputStream. |
| connection | back to summary |
|---|---|
| private final BaseConnection connection | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| pack-priv static final int DEFAULT_BUFFER_SIZE | |
| encoding | back to summary |
|---|---|
| private final Encoding encoding | |
| queryExecutor | back to summary |
|---|---|
| private final QueryExecutor queryExecutor | |
| CopyManager | back to summary |
|---|---|
| public CopyManager(BaseConnection connection) throws SQLException | |
| copyDual | back to summary |
|---|---|
| public CopyDual copyDual(String sql) throws SQLException | |
| copyIn | back to summary |
|---|---|
| public CopyIn copyIn(String sql) throws SQLException | |
| copyIn | back to summary |
|---|---|
| public long copyIn(final String sql, Reader from) throws SQLException, IOException Use COPY FROM STDIN for very fast copying from a Reader into a database table.
| |
| copyIn | back to summary |
|---|---|
| public long copyIn(final String sql, Reader from, int bufferSize) throws SQLException, IOException Use COPY FROM STDIN for very fast copying from a Reader into a database table.
| |
| copyIn | back to summary |
|---|---|
| public long copyIn(final String sql, InputStream from) throws SQLException, IOException Use COPY FROM STDIN for very fast copying from an InputStream into a database table.
| |
| copyIn | back to summary |
|---|---|
| public long copyIn(final String sql, InputStream from, int bufferSize) throws SQLException, IOException Use COPY FROM STDIN for very fast copying from an InputStream into a database table.
| |
| copyIn | back to summary |
|---|---|
| public long copyIn(String sql, ByteStreamWriter from) throws SQLException, IOException Use COPY FROM STDIN for very fast copying from an ByteStreamWriter into a database table.
| |
| copyOut | back to summary |
|---|---|
| public CopyOut copyOut(String sql) throws SQLException | |
| copyOut | back to summary |
|---|---|
| public long copyOut(final String sql, Writer to) throws SQLException, IOException Pass results of a COPY TO STDOUT query from database into a Writer.
| |
| copyOut | back to summary |
|---|---|
| public long copyOut(final String sql, OutputStream to) throws SQLException, IOException Pass results of a COPY TO STDOUT query from database into an OutputStream.
| |