Skip to content

Commit f86d11d

Browse files
committed
Spelling corrections
1 parent 2e2d564 commit f86d11d

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/site/markdown/docs/complexQueries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Complex Queries
2-
Enhancements in version 1.1.2 make it easier to code complex queries. The Select DSL is implemented as a set of related objects. As the select statement is built, intermediate objects of various types are returned from the various methods that implement the DSL. The select statement can be completed by calling the `build()` method many of the intermediate objects. Prior to version 1.1.2, it was necessary to call `build()` on the **last** intermediate object. This restriction has been removed and it is now possible to call `build()` on **any** intermedtae object. This, along with several other enhancements, has simplified the coding of complex queries.
2+
Enhancements in version 1.1.2 make it easier to code complex queries. The Select DSL is implemented as a set of related objects. As the select statement is built, intermediate objects of various types are returned from the various methods that implement the DSL. The select statement can be completed by calling the `build()` method many of the intermediate objects. Prior to version 1.1.2, it was necessary to call `build()` on the **last** intermediate object. This restriction has been removed and it is now possible to call `build()` on **any** intermediate object. This, along with several other enhancements, has simplified the coding of complex queries.
33

44
For example, suppose you want to code a complex search on a Person table. The search parameters are id, first name, and last name. The rules are:
55

src/site/markdown/docs/conditions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ For example, you could code a search like this:
8484

8585
In this example, the three conditions will only be rendered if the values passed to them are not null. If all three values are null, then no where clause will be generated.
8686

87-
Each of the conditions accepts a lamba expression that can be used to determine if the condition should render or not. The lambas will all be of standard JDK types (either `java.util.function.BooleanSupplier`, `java.util.function.Predicate`, or `java.util.function.BiPredicate` depending on the type of condition). The following table lists the optional conditions and shows how to use them:
87+
Each of the conditions accepts a lambda expression that can be used to determine if the condition should render or not. The lambdas will all be of standard JDK types (either `java.util.function.BooleanSupplier`, `java.util.function.Predicate`, or `java.util.function.BiPredicate` depending on the type of condition). The following table lists the optional conditions and shows how to use them:
8888

8989
| Condition | Example | Rendering Rules |
9090
|-----------|---------|-----------------|

src/site/markdown/docs/spring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The SQL statement objects are created in exactly the same way as for MyBatis - o
1313
```
1414

1515
## Executing Select Statements
16-
The Spring Named Parameter JDBC template expects an SQL statement with parameter markers in the Spring format, and a set of matched parameters. MyBatis Dynamic SQL will generate both. The parameters returned from the generated SQL statement can be wrapped in a Spring `MapSqlParameterSource`. Spring also expects you to provide a row mapper for creating the returned objects. The followin code shows a complete example:
16+
The Spring Named Parameter JDBC template expects an SQL statement with parameter markers in the Spring format, and a set of matched parameters. MyBatis Dynamic SQL will generate both. The parameters returned from the generated SQL statement can be wrapped in a Spring `MapSqlParameterSource`. Spring also expects you to provide a row mapper for creating the returned objects. The following code shows a complete example:
1717

1818
```java
1919
NamedParameterJdbcTemplate template = getTemplate();

src/site/markdown/docs/update.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For example:
3636
.set(animalName).equalToNull()
3737
.build()
3838
.render(RenderingStrategy.MYBATIS3);
39-
```
39+
```
4040

4141
## Annotated Mapper for Update Statements
4242

@@ -52,7 +52,6 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
5252
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
5353
int update(UpdateStatementProvider updateStatement);
5454
...
55-
5655
```
5756

5857
## XML Mapper for Update Statements

src/site/markdown/docs/whereClauses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ In this mapper method there are three parameters. So in this case it will be ne
142142
```
143143
Notice that the string `whereClauseProvider` is used both as the parameter name in the mapper `@Param` annotation and the parameter name in the `render` method.
144144

145-
The render method also has an override that accepts a TableAliasCalculator and a parameter name.
145+
The render method also has an override that accepts a TableAliasCalculator and a parameter name.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy