44
44
45
45
/**
46
46
* Generic utility methods for working with SQL scripts.
47
- * <p/ >
47
+ * <p>
48
48
* Mainly for internal use within the framework.
49
49
*
50
50
* @author Mark Paluch
@@ -61,14 +61,14 @@ public abstract class ScriptUtils {
61
61
62
62
/**
63
63
* Fallback statement separator within SQL scripts: {@code "\n"}.
64
- * <p/ >
64
+ * <p>
65
65
* Used if neither a custom separator nor the {@link #DEFAULT_STATEMENT_SEPARATOR} is present in a given script.
66
66
*/
67
67
public static final String FALLBACK_STATEMENT_SEPARATOR = "\n " ;
68
68
69
69
/**
70
70
* End of file (EOF) SQL statement separator: {@code "^^^ END OF SCRIPT ^^^"}.
71
- * <p/ >
71
+ * <p>
72
72
* This value may be supplied as the {@code separator} to
73
73
* {@link #executeSqlScript(Connection, EncodedResource, DataBufferFactory, boolean, boolean, String, String, String, String)}
74
74
* to denote that an SQL script contains a single statement (potentially spanning multiple lines) with no explicit
@@ -100,7 +100,7 @@ private ScriptUtils() {}
100
100
/**
101
101
* Split an SQL script into separate statements delimited by the provided separator character. Each individual
102
102
* statement will be added to the provided {@link List}.
103
- * <p/ >
103
+ * <p>
104
104
* Within the script, {@value #DEFAULT_COMMENT_PREFIX} will be used as the comment prefix; any text beginning with the
105
105
* comment prefix and extending to the end of the line will be omitted from the output. Similarly,
106
106
* {@value #DEFAULT_BLOCK_COMMENT_START_DELIMITER} and {@value #DEFAULT_BLOCK_COMMENT_END_DELIMITER} will be used as
@@ -121,7 +121,7 @@ static void splitSqlScript(String script, char separator, List<String> statement
121
121
/**
122
122
* Split an SQL script into separate statements delimited by the provided separator string. Each individual statement
123
123
* will be added to the provided {@link List}.
124
- * <p/ >
124
+ * <p>
125
125
* Within the script, {@value #DEFAULT_COMMENT_PREFIX} will be used as the comment prefix; any text beginning with the
126
126
* comment prefix and extending to the end of the line will be omitted from the output. Similarly,
127
127
* {@value #DEFAULT_BLOCK_COMMENT_START_DELIMITER} and {@value #DEFAULT_BLOCK_COMMENT_END_DELIMITER} will be used as
@@ -143,7 +143,7 @@ static void splitSqlScript(String script, String separator, List<String> stateme
143
143
/**
144
144
* Split an SQL script into separate statements delimited by the provided separator string. Each individual statement
145
145
* will be added to the provided {@link List}.
146
- * <p/ >
146
+ * <p>
147
147
* Within the script, the provided {@code commentPrefix} will be honored: any text beginning with the comment prefix
148
148
* and extending to the end of the line will be omitted from the output. Similarly, the provided
149
149
* {@code blockCommentStartDelimiter} and {@code blockCommentEndDelimiter} delimiters will be honored: any text
@@ -255,7 +255,7 @@ public static Mono<String> readScript(EncodedResource resource, DataBufferFactor
255
255
/**
256
256
* Read a script without blocking from the provided resource, using the supplied comment prefix and statement
257
257
* separator, and build a {@link String} and build a String containing the lines.
258
- * <p/ >
258
+ * <p>
259
259
* Lines <em>beginning</em> with the comment prefix are excluded from the results; however, line comments anywhere
260
260
* else — for example, within a statement — will be included in the results.
261
261
*
@@ -291,7 +291,7 @@ private static Mono<String> readScript(EncodedResource resource, DataBufferFacto
291
291
/**
292
292
* Read a script from the provided {@link LineNumberReader}, using the supplied comment prefix and statement
293
293
* separator, and build a {@link String} containing the lines.
294
- * <p/ >
294
+ * <p>
295
295
* Lines <em>beginning</em> with the comment prefix are excluded from the results; however, line comments anywhere
296
296
* else — for example, within a statement — will be included in the results.
297
297
*
@@ -372,10 +372,10 @@ static boolean containsSqlScriptDelimiters(String script, String delim) {
372
372
/**
373
373
* Execute the given SQL script using default settings for statement separators, comment delimiters, and exception
374
374
* handling flags.
375
- * <p/ >
375
+ * <p>
376
376
* Statement separators and comments will be removed before executing individual statements within the supplied
377
377
* script.
378
- * <p/ >
378
+ * <p>
379
379
* <strong>Warning</strong>: this method does <em>not</em> release the provided {@link Connection}.
380
380
*
381
381
* @param connection the R2DBC connection to use to execute the script; already configured and ready to use.
@@ -398,10 +398,10 @@ public static Mono<Void> executeSqlScript(Connection connection, Resource resour
398
398
/**
399
399
* Execute the given SQL script using default settings for statement separators, comment delimiters, and exception
400
400
* handling flags.
401
- * <p/ >
401
+ * <p>
402
402
* Statement separators and comments will be removed before executing individual statements within the supplied
403
403
* script.
404
- * <p/ >
404
+ * <p>
405
405
* <strong>Warning</strong>: this method does <em>not</em> release the provided {@link Connection}.
406
406
*
407
407
* @param connection the R2DBC connection to use to execute the script; already configured and ready to use.
@@ -424,10 +424,10 @@ public static Mono<Void> executeSqlScript(Connection connection, EncodedResource
424
424
425
425
/**
426
426
* Execute the given SQL script.
427
- * <p/ >
427
+ * <p>
428
428
* Statement separators and comments will be removed before executing individual statements within the supplied
429
429
* script.
430
- * <p/ >
430
+ * <p>
431
431
* <strong>Warning</strong>: this method does <em>not</em> release the provided {@link Connection}.
432
432
*
433
433
* @param connection the R2DBC connection to use to execute the script; already configured and ready to use.
0 commit comments