\r
**%VERSION%** ([zip](http://code.google.com/p/iciql/downloads/detail?name=%ZIP%)|[jar](http://code.google.com/p/iciql/downloads/detail?name=%JAR%)) *released %BUILDDATE%*\r
\r
+- Added list alternatives to the varargs methods because it was too easy to forget list.toArray() for the varargs methods \r
+List<T> Db.executeQuery(Class<? extends T> modelClass, String sql, List<?> args)\r
+ResultSet executeQuery(String sql, List<?> args)\r
+\r
+### Older Releases\r
+\r
+**0.7.3** *released 2011-12-06*\r
+\r
- api change release (API v8)\r
- Fixed JOIN ON primitives\r
- Fixed GROUP BY primitives\r
- Fixed primitive references when selecting into a custom type with primitives\r
- Improved fluent/type-safety of joins\r
\r
-### Older Releases\r
-\r
**0.7.2** *released 2011-11-30*\r
\r
- generated models are now serializable with a default serial version id of 1\r
\r
// The build script extracts this exact line so be careful editing it\r
// and only use A-Z a-z 0-9 .-_ in the string.\r
- public static final String VERSION = "0.7.3";\r
+ public static final String VERSION = "0.7.4-SNAPSHOT";\r
\r
// The build script extracts this exact line so be careful editing it\r
// and only use A-Z a-z 0-9 .-_ in the string.\r
- public static final String VERSION_DATE = "2011-12-06";\r
+ public static final String VERSION_DATE = "PENDING";\r
\r
// The build script extracts this exact line so be careful editing it\r
// and only use A-Z a-z 0-9 .-_ in the string.\r
return (TableDefinition<T>) classMap.get(clazz);\r
}\r
\r
+\r
+ /**\r
+ * Run a SQL query directly against the database.\r
+ * \r
+ * Be sure to close the ResultSet with\r
+ * \r
+ * <pre>\r
+ * JdbcUtils.closeSilently(rs, true);\r
+ * </pre>\r
+ * \r
+ * @param sql\r
+ * the SQL statement\r
+ * @param args\r
+ * optional object arguments for x=? tokens in query\r
+ * @return the result set\r
+ */\r
+ public ResultSet executeQuery(String sql, List<?> args) {\r
+ return executeQuery(sql, args.toArray());\r
+ }\r
+ \r
/**\r
* Run a SQL query directly against the database.\r
* \r
}\r
}\r
\r
+ /**\r
+ * Run a SQL query directly against the database and map the results to the\r
+ * model class.\r
+ * \r
+ * @param modelClass\r
+ * the model class to bind the query ResultSet rows into.\r
+ * @param sql\r
+ * the SQL statement\r
+ * @return the result set\r
+ */\r
+ public <T> List<T> executeQuery(Class<? extends T> modelClass, String sql, List<?> args) {\r
+ return executeQuery(modelClass, sql, args.toArray());\r
+ }\r
+ \r
/**\r
* Run a SQL query directly against the database and map the results to the\r
* model class.\r