From 1343be5f6a899a426551ae0ed29d2c1432098607 Mon Sep 17 00:00:00 2001 From: bernd Date: Sat, 30 Jul 2011 14:46:02 +0200 Subject: [PATCH 02/12] 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