You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vertx-sql-client-templates/src/main/asciidoc/index.adoc
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
= SQL Templates
1
+
#forUpdat= SQL Client Templates
2
2
:toc:
3
3
4
-
SQL Templates is a small library designed to facilitate the execution of SQL queries.
4
+
SQL Client Templates is a small library designed to facilitate the execution of SQL queries.
5
5
6
6
== Usage
7
7
8
-
To use SQL Templates add the following dependency to the _dependencies_ section of your build descriptor:
8
+
To use SQL Client Templates add the following dependency to the _dependencies_ section of your build descriptor:
9
9
10
10
* Maven (in your `pom.xml`):
11
11
@@ -40,7 +40,7 @@ wrapper for a `PreparedQuery`.
40
40
{@link examples.TemplateExamples#queryExample}
41
41
----
42
42
43
-
When you need to perform an insert or update operation and you do not care of the result, you can use {@link io.vertx.sqltemplates.SqlTemplate#forUpdate} instead:
43
+
When you need to perform an insert or update operation and you do not care of the result, you can use {@link io.vertx.sqlclient.templates.SqlTemplate#forUpdate} instead:
44
44
45
45
[source,$lang]
46
46
----
@@ -188,7 +188,7 @@ public class LocalDateTimePojo {
188
188
189
189
== Mapping with Vert.x data objects
190
190
191
-
The SQL Templates component can generate mapping function for Vert.x data objects.
191
+
The SQL Client Templates component can generate mapping function for Vert.x data objects.
192
192
193
193
A Vert.x data object is a simple Java bean class annotated with the `@DataObject` annotation.
194
194
@@ -199,7 +199,7 @@ A Vert.x data object is a simple Java bean class annotated with the `@DataObject
199
199
200
200
=== Code generation
201
201
202
-
Any data object annotated by {@link io.vertx.sqltemplates.annotations.RowMapped} or {@link io.vertx.sqltemplates.annotations.ParametersMapped}
202
+
Any data object annotated by {@link io.vertx.sqlclient.templates.annotations.RowMapped} or {@link io.vertx.sqlclient.templates.annotations.ParametersMapped}
203
203
will trigger the generation of a corresponding mapper class.
204
204
205
205
The _codegen_ annotation processor generates these classes at compilation time. It is a feature of the Java
@@ -255,7 +255,7 @@ explicitly, for instance in Maven:
255
255
256
256
=== Row mapping
257
257
258
-
You can generate a row mapper by annotating your data object by {@link io.vertx.sqltemplates.annotations.RowMapped}.
258
+
You can generate a row mapper by annotating your data object by {@link io.vertx.sqlclient.templates.annotations.RowMapped}.
259
259
260
260
[source,$lang]
261
261
----
@@ -265,7 +265,7 @@ You can generate a row mapper by annotating your data object by {@link io.vertx.
265
265
By default each column name is bound after the data object properties, e.g the `userName` property binds to
266
266
the `userName` column.
267
267
268
-
You can use custom names thanks to the {@link io.vertx.sqltemplates.annotations.Column}
268
+
You can use custom names thanks to the {@link io.vertx.sqlclient.templates.annotations.Column}
269
269
annotation.
270
270
271
271
[source,$lang]
@@ -284,7 +284,7 @@ The generated mapper can be used to perform row mapping like explained in <<row_
284
284
285
285
=== Parameters mapping
286
286
287
-
You can generate a parameters mapper by annotating your data object by {@link io.vertx.sqltemplates.annotations.ParametersMapped}.
287
+
You can generate a parameters mapper by annotating your data object by {@link io.vertx.sqlclient.templates.annotations.ParametersMapped}.
288
288
289
289
[source,$lang]
290
290
----
@@ -294,7 +294,7 @@ You can generate a parameters mapper by annotating your data object by {@link io
294
294
By default each parameter is bound after the data object properties, e.g the `userName` property binds to
295
295
the `userName` parameter.
296
296
297
-
You can use custom names thanks to the {@link io.vertx.sqltemplates.annotations.TemplateParameter}
297
+
You can use custom names thanks to the {@link io.vertx.sqlclient.templates.annotations.TemplateParameter}
0 commit comments