@@ -717,7 +717,7 @@ For example, with positional parameters:
717
717
718
718
public int countOfActorsByFirstName(String firstName) {
719
719
return this.jdbcClient.sql("select count(*) from t_actor where first_name = ?")
720
- .param(firstName);
720
+ .param(firstName)
721
721
.query(Integer.class).single();
722
722
}
723
723
----
@@ -730,7 +730,7 @@ For example, with named parameters:
730
730
731
731
public int countOfActorsByFirstName(String firstName) {
732
732
return this.jdbcClient.sql("select count(*) from t_actor where first_name = :firstName")
733
- .param("firstName", firstName);
733
+ .param("firstName", firstName)
734
734
.query(Integer.class).single();
735
735
}
736
736
----
@@ -760,7 +760,7 @@ With a required single object result:
760
760
[source,java,indent=0,subs="verbatim,quotes"]
761
761
----
762
762
Actor actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?")
763
- .param(1212L);
763
+ .param(1212L)
764
764
.query(Actor.class)
765
765
.single();
766
766
----
@@ -770,7 +770,7 @@ With a `java.util.Optional` result:
770
770
[source,java,indent=0,subs="verbatim,quotes"]
771
771
----
772
772
Optional<Actor> actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?")
773
- .param(1212L);
773
+ .param(1212L)
774
774
.query(Actor.class)
775
775
.optional();
776
776
----
@@ -780,7 +780,7 @@ And for an update statement:
780
780
[source,java,indent=0,subs="verbatim,quotes"]
781
781
----
782
782
this.jdbcClient.sql("insert into t_actor (first_name, last_name) values (?, ?)")
783
- .param("Leonor").param("Watling");
783
+ .param("Leonor").param("Watling")
784
784
.update();
785
785
----
786
786
@@ -789,7 +789,7 @@ Or an update statement with named parameters:
789
789
[source,java,indent=0,subs="verbatim,quotes"]
790
790
----
791
791
this.jdbcClient.sql("insert into t_actor (first_name, last_name) values (:firstName, :lastName)")
792
- .param("firstName", "Leonor").param("lastName", "Watling");
792
+ .param("firstName", "Leonor").param("lastName", "Watling")
793
793
.update();
794
794
----
795
795
@@ -800,7 +800,7 @@ provides `firstName` and `lastName` properties, such as the `Actor` class from a
800
800
[source,java,indent=0,subs="verbatim,quotes"]
801
801
----
802
802
this.jdbcClient.sql("insert into t_actor (first_name, last_name) values (:firstName, :lastName)")
803
- .paramSource(new Actor("Leonor", "Watling");
803
+ .paramSource(new Actor("Leonor", "Watling")
804
804
.update();
805
805
----
806
806
0 commit comments