int updateCount = autoGeneratedKeyStrategy.executeUpdate(statement, query.getQueryTemplate());
if (autoGeneratedKeyStrategy.returnsAutoGeneratedKeys())
{
ResultSet generatedKeys = statement.getGeneratedKeys();
ListResultSetHandler listResultSetHandler = new ListResultSetHandler(new InsensitiveMapRowHandler());
return listResultSetHandler.processResultSet(dbConnection, generatedKeys);
}
else
{
return updateCount;
}