From f180db676f67dc3279c3a2823e88325295fd8681 Mon Sep 17 00:00:00 2001 From: bernd Date: Thu, 4 Aug 2011 02:11:37 +0200 Subject: [PATCH 03/16] Make javadoc of QueryTool.update() methods more readable and add @since tag. --- eodsql/src/net/lemnik/eodsql/QueryTool.java | 44 ++++++++++++++------------ 1 files changed, 24 insertions(+), 20 deletions(-) diff --git a/eodsql/src/net/lemnik/eodsql/QueryTool.java b/eodsql/src/net/lemnik/eodsql/QueryTool.java index 6766bc6..f6e4f8e 100644 --- a/eodsql/src/net/lemnik/eodsql/QueryTool.java +++ b/eodsql/src/net/lemnik/eodsql/QueryTool.java @@ -600,13 +600,14 @@ public class QueryTool { /** *

- * Sometimes you need to perform a less structured "UPDATE", "INSERT" or "DELETE" than a Query interface allows. Although this method - * is significantly slower than building a Query interface, it provides needed functionality that a Query - * interface cannot. + * Sometimes you need to perform a less structured "UPDATE", "INSERT" or "DELETE" than a Query + * interface allows. Although this method is significantly slower than building a Query interface, + * it provides needed functionality that a Query interface cannot. *

- * This method does no caching of any sort, and the query will be re-parsed each time it is executed. It however - * provides the same primitive-type abstraction that a Query interface provides you with. The query string is - * parsed in the same way as a query string passed to an {@link Select @Select} annotation. + * This method does no caching of any sort, and the query will be re-parsed each time it is executed. + * It however provides the same primitive-type abstraction that a Query interface provides you with. + * The query string is parsed in the same way as a query string passed to an {@link Select @Select} + * annotation. *

* * @param connection the Connection to use to perform the query @@ -622,6 +623,7 @@ public class QueryTool { * be parsed, or doesn't match the given parameters * @throws IllegalArgumentException is the DataSource * provided is null + * @since 2.2 */ public static int update( final Connection connection, @@ -657,13 +659,14 @@ public class QueryTool { /** *

- * Sometimes you need to perform a less structured "UPDATE", "INSERT" or "DELETE" than a Query interface allows. Although this method - * is significantly slower than building a Query interface, it provides needed functionality that a Query - * interface cannot. + * Sometimes you need to perform a less structured "UPDATE", "INSERT" or "DELETE" than a Query + * interface allows. Although this method is significantly slower than building a Query interface, + * it provides needed functionality that a Query interface cannot. *

- * This method does no caching of any sort, and the query will be re-parsed each time it is executed. It however - * provides the same primitive-type abstraction that a Query interface provides you with. The query string is - * parsed in the same way as a query string passed to an {@link Select @Select} annotation. + * This method does no caching of any sort, and the query will be re-parsed each time it is executed. + * It however provides the same primitive-type abstraction that a Query interface provides you with. + * The query string is parsed in the same way as a query string passed to an {@link Select @Select} + * annotation. *

* * @param dataSource the DataSource to use get the connection from to perform the query @@ -679,6 +682,7 @@ public class QueryTool { * be parsed, or doesn't match the given parameters * @throws IllegalArgumentException is the DataSource * provided is null + * @since 2.2 */ public static int update( final DataSource dataSource, @@ -714,15 +718,14 @@ public class QueryTool { /** *

- * Sometimes you need to perform a less structured "UPDATE", "INSERT" or "DELETE" than a Query interface allows. Although this method - * is significantly slower than building a Query interface, it provides needed functionality that a Query - * interface cannot. - *

- * This method does no caching of any sort, and the query will be re-parsed each time it is executed. It however - * provides the same primitive-type abstraction that a Query interface provides you with. The query string is - * parsed in the same way as a query string passed to an {@link Select @Select} annotation. + * Sometimes you need to perform a less structured "UPDATE", "INSERT" or "DELETE" than a Query + * interface allows. Although this method is significantly slower than building a Query interface, + * it provides needed functionality that a Query interface cannot. *

- * This method is the same as calling update(getDefaultDataSource(), query, parameters). + * This method does no caching of any sort, and the query will be re-parsed each time it is executed. + * It however provides the same primitive-type abstraction that a Query interface provides you with. + * The query string is parsed in the same way as a query string passed to an {@link Select @Select} + * annotation. *

* * @param query the SQL query to be executed @@ -737,6 +740,7 @@ public class QueryTool { * be parsed, or doesn't match the given parameters * @throws IllegalArgumentException is the DataSource * provided is null + * @since 2.2 */ public static int update( final String query, -- 1.7.6