Package org.h2.command
Class CommandContainer.GeneratedKeysCollector
java.lang.Object
org.h2.command.CommandContainer.GeneratedKeysCollector
- All Implemented Interfaces:
ResultTarget
- Enclosing class:
CommandContainer
private static final class CommandContainer.GeneratedKeysCollector
extends Object
implements ResultTarget
Collector of generated keys.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the row to the result set.longGet the number of rows.voidA hint that sorting, offset and limit may be ignored by this result because they were applied during the query.
-
Field Details
-
indexes
private final int[] indexes -
result
-
-
Constructor Details
-
GeneratedKeysCollector
GeneratedKeysCollector(int[] indexes, LocalResult result)
-
-
Method Details
-
limitsWereApplied
public void limitsWereApplied()Description copied from interface:ResultTargetA hint that sorting, offset and limit may be ignored by this result because they were applied during the query. This is useful for WITH TIES clause because result may contain tied rows above limit.- Specified by:
limitsWereAppliedin interfaceResultTarget
-
getRowCount
public long getRowCount()Description copied from interface:ResultTargetGet the number of rows.- Specified by:
getRowCountin interfaceResultTarget- Returns:
- the number of rows
-
addRow
Description copied from interface:ResultTargetAdd the row to the result set.- Specified by:
addRowin interfaceResultTarget- Parameters:
values- the values
-