mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Add debug logging on executeQuery to mirror that on executeCountQuery
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29842 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -139,15 +139,28 @@ public class CannedQueryDAOImpl extends AbstractCannedQueryDAOImpl
|
||||
String query = makeQueryName(sqlNamespace, queryName);
|
||||
try
|
||||
{
|
||||
List<R> result;
|
||||
if ((offset == 0) && (limit == Integer.MAX_VALUE))
|
||||
{
|
||||
return (List<R>) template.selectList(query, parameterObj);
|
||||
result = (List<R>) template.selectList(query, parameterObj);
|
||||
}
|
||||
else
|
||||
{
|
||||
RowBounds bounds = new RowBounds(offset, limit);
|
||||
return (List<R>) template.selectList(query, parameterObj, bounds);
|
||||
result = (List<R>) template.selectList(query, parameterObj, bounds);
|
||||
}
|
||||
|
||||
|
||||
// Done
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug(
|
||||
"Executed query: \n" +
|
||||
" Query: " + query + "\n" +
|
||||
" Params: " + parameterObj + "\n" +
|
||||
" Result: " + result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
catch (ClassCastException e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user