public final class CommandComplete extends Object implements BackendMessage
Constructor and Description |
---|
CommandComplete(String command,
Integer rowId,
Integer 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.
|
Integer |
getRows()
Returns the number of rows affected by the command.
|
int |
hashCode() |
String |
toString() |
public CommandComplete(String command, @Nullable Integer rowId, @Nullable Integer 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 null
public String getCommand()
@Nullable public Integer getRowId()
0
.@Nullable public Integer getRows()
Copyright © 2021. All rights reserved.