Files
alfresco-community-repo/source/java/org/alfresco/repo/node/archive/GetArchivedNodesCannedQueryParams.java
Tatyana Valkevych 96e195b9fb Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
105524: Merged 5.0.N (5.0.3) to HEAD-BUG-FIX (5.1/Cloud)
      105458: Merged V4.2-BUG-FIX (4.2.5) to 5.0.N (5.0.3)
         105368: Merged DEV to V4.2-BUG-FIX (4.2.5)
            105328: MNT-14021 : Request to optimize db query performance when retrieving the trashcan item
               - applied limit to "select_GetArchivedNodesCannedQuery" query to optimize the general performance of the trashcan


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@105587 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-06-05 11:01:39 +00:00

78 lines
2.2 KiB
Java

/*
* Copyright (C) 2005-2013 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.repo.node.archive;
/**
* Parameter object for {@link GetArchivedNodesCannedQuery}.
*
* @author Jamal Kaabi-Mofrad
* @since 4.2
*/
public class GetArchivedNodesCannedQueryParams extends ArchivedNodeEntity
{
private int limit;
/**
* @param parentNodeId
* @param assocTypeQNameId
* @param filter
* @param filterIgnoreCase
* @param nameQNameId
* @param sortOrderAscending
*/
public GetArchivedNodesCannedQueryParams(Long parentNodeId, Long assocTypeQNameId,
String filter, Boolean filterIgnoreCase, Long nameQNameId,
Boolean sortOrderAscending)
{
super(parentNodeId, nameQNameId, filter, assocTypeQNameId, sortOrderAscending,
filterIgnoreCase);
}
/**
* @param parentNodeId
* @param assocTypeQNameId
* @param filter
* @param filterIgnoreCase
* @param nameQNameId
* @param sortOrderAscending
* @param limit
*/
public GetArchivedNodesCannedQueryParams(Long parentNodeId, Long assocTypeQNameId,
String filter, Boolean filterIgnoreCase, Long nameQNameId, Boolean sortOrderAscending,
int limit)
{
this(parentNodeId, assocTypeQNameId, filter, filterIgnoreCase, nameQNameId,
sortOrderAscending);
this.setLimit(limit);
}
public int getLimit()
{
return limit;
}
public void setLimit(int limit)
{
this.limit = limit;
}
}