public final class CommandComplete extends Object implements BackendMessage
| Constructor and Description |
|---|
CommandComplete(String command,
Integer rowId,
Long rows)
Create a new message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCommand()
Returns the command that was completed.
|
Integer |
getRowId()
Returns the object ID of the inserted row if a single row is inserted the target table has OIDs.
|
Long |
getRows()
Returns the number of rows affected by the command.
|
int |
hashCode() |
String |
toString() |
public CommandComplete(String command, @Nullable Integer rowId, @Nullable Long rows)
command - the command that was completedrowId - the object ID of the inserted rowrows - the number of rows affected by the commandIllegalArgumentException - if command is nullpublic String getCommand()
@Nullable public Integer getRowId()
0.@Nullable public Long getRows()
Copyright © 2024. All rights reserved.