| Modifier and Type | Field and Description |
|---|---|
| private final @Nullable List | |
| private int | |
| private final boolean | |
| private @Nullable PgResultSet | generatedKeys
References Deprecated
PgResultSet is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private @Nullable PgResultSet | latestGeneratedKeysRs
References Deprecated
PgResultSet is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private @Nullable List | |
| private final long[] | |
| private final @Nullable @Nullable ParameterList[] | |
| private final PgStatement | |
| private final Query[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | BatchResultHandler(PgStatement pgStatement, Query[] queries, @Nullable @Nullable ParameterList[] parameterLists, boolean expectGeneratedKeys)
|
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable ResultSet | |
| public long[] | |
| public int[] | |
| public void | handleCommandStatus(String
the command status string (e.g. "SELECT") returned by the backend status, long the number of rows affected by an INSERT, UPDATE, DELETE, FETCH, or MOVE
command; -1 if not available. updateCount, long for a single-row INSERT query, the OID of the newly inserted row; 0 if not
available. insertOID)Overrides org. Implements org. Called when a query that did not return a resultset completes. |
| public void | handleCompletion()
Overrides org. Implements org. Called before a QueryExecutor method returns. |
| public void | handleError(SQLException
the error that occurred newError)Overrides org. Implements org. Called when an error occurs. |
| public void | handleResultRows(Query fromQuery, Field[] fields, List<Tuple> tuples, @Nullable ResultCursor cursor)
|
| public void | handleWarning(SQLWarning
the warning that occurred. warning)Overrides org. Implements org. Called when a warning is emitted. |
| private boolean | |
| public void | secureProgress()
Overrides org. Implements org. Callback for batch statements. |
| private long[] | |
| private int[] | |
| private void |
| allGeneratedRows | back to summary |
|---|---|
| private final @Nullable List<List<Tuple>> allGeneratedRows | |
| committedRows | back to summary |
|---|---|
| private int committedRows | |
| expectGeneratedKeys | back to summary |
|---|---|
| private final boolean expectGeneratedKeys | |
| generatedKeys | back to summary |
|---|---|
| private @Nullable PgResultSet generatedKeys
References Deprecated
See corresponding docs for further information. | |
| latestGeneratedKeysRs | back to summary |
|---|---|
| private @Nullable PgResultSet latestGeneratedKeysRs
References Deprecated
See corresponding docs for further information. | |
| latestGeneratedRows | back to summary |
|---|---|
| private @Nullable List<Tuple> latestGeneratedRows | |
| longUpdateCounts | back to summary |
|---|---|
| private final long[] longUpdateCounts | |
| parameterLists | back to summary |
|---|---|
| private final @Nullable @Nullable ParameterList[] parameterLists | |
| pgStatement | back to summary |
|---|---|
| private final PgStatement pgStatement | |
| queries | back to summary |
|---|---|
| private final Query[] queries | |
| resultIndex | back to summary |
|---|---|
| private int resultIndex | |
| BatchResultHandler | back to summary |
|---|---|
| pack-priv BatchResultHandler(PgStatement pgStatement, Query[] queries, @Nullable @Nullable ParameterList[] parameterLists, boolean expectGeneratedKeys) | |
| getGeneratedKeys | back to summary |
|---|---|
| public @Nullable ResultSet getGeneratedKeys() | |
| getLargeUpdateCount | back to summary |
|---|---|
| public long[] getLargeUpdateCount() | |
| getUpdateCount | back to summary |
|---|---|
| public int[] getUpdateCount() | |
| handleCommandStatus | back to summary |
|---|---|
| public void handleCommandStatus(String status, long updateCount, long insertOID) Overrides org. Implements org. Doc from org. Called when a query that did not return a resultset completes.
| |
| handleCompletion | back to summary |
|---|---|
| public void handleCompletion() throws SQLException Overrides org. Implements org. Doc from org. Called before a QueryExecutor method returns. This method may throw a SQLException if desired; if it does, the QueryExecutor method will propagate that exception to the original caller.
| |
| handleError | back to summary |
|---|---|
| public void handleError(SQLException newError) Overrides org. Implements org. Doc from org. Called when an error occurs. Subsequent queries are abandoned; in general the only calls between a handleError call and a subsequent handleCompletion call are handleError or handleWarning.
| |
| handleResultRows | back to summary |
|---|---|
public void handleResultRows(Query fromQuery, Field[] fields, List<Tuple> tuples, @Nullable ResultCursor cursor)
| |
| handleWarning | back to summary |
|---|---|
| public void handleWarning(SQLWarning warning) Overrides org. Implements org. Doc from org. Called when a warning is emitted.
| |
| isAutoCommit | back to summary |
|---|---|
| private boolean isAutoCommit() | |
| secureProgress | back to summary |
|---|---|
| public void secureProgress() Overrides org. Implements org. Doc from org. Callback for batch statements. In case batch statement is executed in autocommit==true mode, the executor might commit "as it this it is best", so the result handler should track which statements are executed successfully and which are not.
| |
| uncompressLongUpdateCount | back to summary |
|---|---|
| private long[] uncompressLongUpdateCount() | |
| uncompressUpdateCount | back to summary |
|---|---|
| private int[] uncompressUpdateCount() | |
| updateGeneratedKeys | back to summary |
|---|---|
| private void updateGeneratedKeys() | |