1
1
/*
2
- * Copyright 2018-2021 the original author or authors.
2
+ * Copyright 2018-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
7
7
*
8
- * http ://www.apache.org/licenses/LICENSE-2.0
8
+ * https ://www.apache.org/licenses/LICENSE-2.0
9
9
*
10
10
* Unless required by applicable law or agreed to in writing, software
11
11
* distributed under the License is distributed on an "AS IS" BASIS,
39
39
* The sql template engine for integrating with Thymeleaf.
40
40
*
41
41
* @author Kazuki Shimizu
42
+ *
42
43
* @version 1.0.2
43
44
*/
44
45
public class SqlGenerator {
@@ -170,6 +171,7 @@ private ITemplateEngine createDefaultTemplateEngine(SqlGeneratorConfig config) {
170
171
* a template SQL
171
172
* @param parameter
172
173
* a parameter object
174
+ *
173
175
* @return a processed SQL by template engine
174
176
*/
175
177
public String generate (CharSequence sqlTemplate , Object parameter ) {
@@ -185,6 +187,7 @@ public String generate(CharSequence sqlTemplate, Object parameter) {
185
187
* a parameter object
186
188
* @param customBindVariableBinder
187
189
* a binder for a custom bind variable that generated with {@code mb:bind} or {@code mb:param}
190
+ *
188
191
* @return a processed SQL by template engine
189
192
*/
190
193
public String generate (CharSequence sqlTemplate , Object parameter ,
@@ -201,6 +204,7 @@ public String generate(CharSequence sqlTemplate, Object parameter,
201
204
* a parameter object
202
205
* @param customVariables
203
206
* a custom variables for passing to template engine
207
+ *
204
208
* @return a processed SQL by template engine
205
209
*/
206
210
public String generate (CharSequence sqlTemplate , Object parameter , Map <String , Object > customVariables ) {
@@ -218,6 +222,7 @@ public String generate(CharSequence sqlTemplate, Object parameter, Map<String, O
218
222
* a binder for a custom bind variable that generated with {@code mb:bind} or {@code mb:param}
219
223
* @param customVariables
220
224
* a custom variables for passing to template engine
225
+ *
221
226
* @return a processed SQL by template engine
222
227
*/
223
228
public String generate (CharSequence sqlTemplate , Object parameter ,
0 commit comments