Skip to content

Commit 616e1fb

Browse files
committed
Add documentation for updatedName and updatedPosition fields in LikeBinding
Closes spring-projects#1929
1 parent 3574034 commit 616e1fb

File tree

1 file changed

+14
-0
lines changed
  • spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query

1 file changed

+14
-0
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/StringQuery.java

+14
Original file line numberDiff line numberDiff line change
@@ -812,14 +812,28 @@ public Type getType() {
812812
return type;
813813
}
814814

815+
/**
816+
* Returns the Updated Position of the binding in the query.
817+
*
818+
* @return the updated position
819+
*/
815820
public Integer getUpdatedPosition() {
816821
return updatedPosition;
817822
}
818823

824+
/**
825+
* Returns the Updated Name of the binding in the query.
826+
*
827+
* @return the updated name
828+
*/
819829
public String getUpdatedName() {
820830
return updatedName;
821831
}
822832

833+
/**
834+
* Check if the bindings updated name is equal to the provided name.
835+
*
836+
*/
823837
boolean hasUpdatedName(@Nullable String name) {
824838
return this.updatedPosition == null && this.updatedName != null && this.updatedName.equals(name);
825839
}

0 commit comments

Comments
 (0)