Skip to content

Commit

Permalink
Add documentation for updatedName and updatedPosition fields in LikeB…
Browse files Browse the repository at this point in the history
…inding

Closes spring-projects#1929
  • Loading branch information
klajdipaja committed Mar 10, 2023
1 parent 3574034 commit 616e1fb
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,14 +812,28 @@ public Type getType() {
return type;
}

/**
* Returns the Updated Position of the binding in the query.
*
* @return the updated position
*/
public Integer getUpdatedPosition() {
return updatedPosition;
}

/**
* Returns the Updated Name of the binding in the query.
*
* @return the updated name
*/
public String getUpdatedName() {
return updatedName;
}

/**
* Check if the bindings updated name is equal to the provided name.
*
*/
boolean hasUpdatedName(@Nullable String name) {
return this.updatedPosition == null && this.updatedName != null && this.updatedName.equals(name);
}
Expand Down

0 comments on commit 616e1fb

Please sign in to comment.